mirror of
https://github.com/spoopyghosty0/frameport.git
synced 2026-10-24 08:02:42 +02:00
The software Main 10 path narrowed HDR10 pictures to 8 bits as they were, so PQ shown as SDR looked grey and BT.2020 colours dull. hdr_tonemap.h maps brightness with BT.2390's EETF (203 cd/m2 reference white = SDR white, highlights rolled off up to MaxCLL / the mastering peak / 1000 cd/m2) and converts colour per chroma sample through linear light into BT.709, moving out-of-gamut colours toward grey of the same luminance. The component then prefers its bitstream colour aspects, so surfaces and its RGBA conversion see BT.709. Bands run in the colour helper threads (about 10 ms per 1080p picture on one big core). Decoder revision 10; artifacts rebuilt with build.py.