mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Use the PQ OETF and EOTF to ensure that intermediate fragment shader operations using PQ are in linear BT.2020 rather than PQ and HLG-1 BT.2020. Also, swap the OETF and EOTF in shaders, as they were used incorrectly before Manually tested by verifying transformer demo HLG and PQ videos look the same with and without this CL, including with a BitmapOverlayProcessor enabled to test flows both with one MatrixTransformationProcessor that skips HDR TFs, and with one that doesn't. PiperOrigin-RevId: 469736067 (cherry picked from commit 2ad07e88ee39ed5f662df91dc7034bd0ce478abe)
Common module
Provides common code and utilities used by other media modules. Application code will not normally need to depend on this module directly.