This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |