This CL contains sample code on how a developer can use the Transformer API to transcode 10-bit HDR files to 8-bit SDR files for compatibility with TextureView as well as older devices.
On devices that are API 32 and below, 10-Bit content on a TextureView will produce 'Color Washout' which shows itself as desaturated colors within a video file.
With the TransformerAPI, a developer can transcode the content to 8-bit so that it is compatible with other devices that may not be able to decode 10-bit HDR content as well as TextureView Display.
How Has This Been Tested?
This sample app was tested on 3 devices on 3 different version of android:
Test Configuration #1 - Pixel 6 Pro:
SDK Version : API 33 (Android 13)
HDR Capable screen?: Yes
Test Configuration #2 - Samsung Galaxy s22 Ultra :
SDK Version : API 31 (Android 12)
HDR Capable screen?: Yes
Test Configuration #3 - Pixel 5a With 5G:
SDK Version : API 30 (Android 11)
HDR Capable screen?: Yes
Checklist:
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
Description
This CL contains sample code on how a developer can use the Transformer API to transcode 10-bit HDR files to 8-bit SDR files for compatibility with TextureView as well as older devices.
On devices that are API 32 and below, 10-Bit content on a TextureView will produce 'Color Washout' which shows itself as desaturated colors within a video file.
With the TransformerAPI, a developer can transcode the content to 8-bit so that it is compatible with other devices that may not be able to decode 10-bit HDR content as well as TextureView Display.
How Has This Been Tested?
This sample app was tested on 3 devices on 3 different version of android:
Test Configuration #1 - Pixel 6 Pro:
Test Configuration #2 - Samsung Galaxy s22 Ultra :
Test Configuration #3 - Pixel 5a With 5G:
Checklist: