media3/libraries
tofunmi db6144e7dd Maintain a consistent luminance range across HDR content in effects
PQ and HLG have different luminance ranges (max 10k nits and max 1k nits resp). In GL, colors work in a normalised 0 to 1 scale, so for PQ content, 1=10k nits and and for HLG content, 1=1k nits.

This cl scales and normalises PQ content appropriately so that all HDR content works in the HLG luminance range. This fixes two things

1. Conversions between HLG and PQ are "fixed" (before the output colors looked too bright or too dark depending on which way you are converting)
2. color-altering effects will be able to work consistently across HLG and PQ content

1 is tested in this cl. 2 will be tested when ultra HDR overlays are implemented, both cases have been manually tested to ensure the output looks correct on a screen.

PiperOrigin-RevId: 636851701
2024-05-24 03:05:34 -07:00
..
2024-03-11 06:45:15 -07:00
2024-02-15 02:35:12 -08:00
2024-02-15 02:35:12 -08:00
2024-02-15 02:35:12 -08:00
2024-05-23 15:27:19 +01:00
2024-05-23 04:50:01 -07:00
2024-04-09 04:12:42 -07:00