
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
Effect module
Provides functionality for applying effects to video frames.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-effect:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.