C2 Decoders: Add a function to choose hal pixel format for 10 bit decode
Added a function which will return supported hal pixel format when decoding streams with bit depth of 10 for VP9 and AV1. P010, RGBA1010102 (for specific color aspects) and YV12 is the order in which formats are tried. P010 format will be enabled once framework supports it AHardwareBuffer_isSupported() doesn't handle P010 format and hence fetchGraphicBlock() call is used to determine which are formats are supported. Bug: 178229371 Test: atest CtsMediaV2TestCases -- --module-arg \ CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.android. Change-Id: I6503ecf49934f7d0fb8d8ffcf95e3aa4905741d8
Loading
Please register or sign in to comment