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

Modify FrameProcessor and MatrixTextureProcessor interfaces to support different input and output color transfers. Does not implement conversion between color ranges (ex. HDR and SDR), but should allow for conversion between color transfers of the same color range (ex. HLG and PQ). This supports in-app tone mapping, where we need a single FrameProcessor to input HDR color transfers (ex. HLG/PQ) and output SDR (ex. gamma2.2). This also supports previewing, where we need a single FrameProcessor to be able to input HLG and output PQ. Manually tested by confirming colors still look right on SDR and HDR videos with a rotation and color affect applied. PiperOrigin-RevId: 493108678
Common module
Provides common code and utilities used by other media modules. Application code will not normally need to depend on this module directly.