Commit graph

8 commits

Author SHA1 Message Date
MajorPainTheCactus aca330764a Reintroduced all the standard OETF and EOTF functions for all the rec. standards
Added gamma cut off values so people can adjust the gamma switch over point between equations as the standards define
Refactored the parameters and broke out values to be more clear
2023-01-18 22:25:25 +00:00
MajorPainTheCactus f70ce8158b Removed gamma guards as they were corrupting the image as you went to the extremes of gamma - this is not what the various standard's do. I will revisit this once I figure out why they are needed and why they are corrupting the image for now they are out. 2022-11-11 22:41:24 +00:00
MajorPainTheCactus 2dddb330a7 Fixed primary transforms for wide colour gamut systems such as HDR breaking the mask and resulting in muddy colours 2022-09-21 21:27:00 +01:00
MajorPainTheCactus 2f87c8f10d Fixed DCI-P3 transform error - we now have a correct DCI-P3 space 2022-09-19 20:49:34 +01:00
MajorPainTheCactus 23f22288d0 Updates for ease of integration into Mega Bezel - changes to default gamma values and reorganisation of sdr and hdr presets 2022-05-10 22:18:30 +01:00
MajorPainTheCactus 8691daf16e Added the colour space gamuts back in after temporarily removing them to fix bugs Added gamma out as well as renaming previous gamma to gamma in 2022-04-16 22:10:47 +01:00
MajorPainTheCactus e0fa8ba1f3 Fixed colour issues when skipping phosphor gamuts Fixed gamma curves cropping dark colours (as per spec but not wanted early on in colour correction) Fixed up SDR presets to have zero values for main colour controls apart from gamma which is moved up to try and compensate for the dimmness 2022-04-15 16:19:16 +01:00
MajorPainTheCactus 372ef75e5c Fixed phosphor gamut being applied when sRGB colour space is used Reorganised shader parameters to be more intuitive Moved base crt-sony-megatron.slngp into the shader directory to edge users away from using it directly Passed in texcoord to functions Added vertical center, vertical size, horizontal center, horizontal size, pin phase, pin amp Added gamm_correct.h for easier integration 2022-04-09 21:53:37 +01:00