Skip to content

Instantly share code, notes, and snippets.

# Utility DCTLS
These are DCTLs that I have developed.
Support me at: [https://www.buymeacoffee.com/thatcherfreeman](https://www.buymeacoffee.com/thatcherfreeman)
## FAQ
**Are you selling X dctl on Y website?**
If you see these DCTLs for sale elsewhere on the internet, that is not me and I get none of that money if you choose to buy from them.
#include <CoreImage/CoreImage.h>
using namespace metal;
// Rec. 2020 luminance weights, identical to those of the other kernels.
constant float3 LumaWeights = float3(0.2627f, 0.6780f, 0.0593f);
// Chroma denoise recombination: mixes original and blurred chroma, keeping the luma
// bit-identical so film grain is preserved by construction rather than adjusted.
extern "C" float4 chromaDenoise(coreimage::sample_t src, coreimage::sample_t blurred, float force)