C2 vp9, av1: Add support for conversion to RGBA1010102 for 10-bit decode
In Android T and above, HAL_PIXEL_FORMAT_RGBA_1010102 corresponds to actual RGBA 1010102 format which was earlier used to return YUV 1010102 data. Now when HAL_PIXEL_FORMAT_RGBA_1010102 is selected, YUV 10 bit output from decoder is converted to RGBA 1010102 format. This conversion to RGBA is done only in Android T and above to ensure that these libraries continue to work as per the old convention when running on older android versions. Bug: 229002916 Test: decode 10-bit av1 clip in gallery Test: atest android.mediav2.cts.CodecDecoderSurfaceTest \ android.mediav2.cts.AdaptivePlaybackTest \ android.mediav2.cts.CodecDecoderTest -- --module-arg \ CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.android. Change-Id: I0b7fd8b581e39df65c5984ece4a6fdbe646d18a1 (cherry picked from commit 5c467652) Merged-In: I0b7fd8b581e39df65c5984ece4a6fdbe646d18a1
Loading
Please register or sign in to comment