codec2: C2VDAComponent: support H264 color aspects
Codec2.0 component interface uses 3 parameters to cope with color aspects: coded, default, and combined. Coded color aspects is configured by component with parsed VUI parameters from SPS. Default color aspects is configured by client as specfied default formats. Combined color aspects takes values from both coded and default ones and is provided in decoded output buffer as C2Info. In C2VDAComponent, we leverage media::H264Parser to parse SPS bitstream and obtain VUI parameters. It is restricted to be done only in H264 non-secure mode. Bug: 80453997 Test: CtsMediaTestCases android.media.cts.DecoderTest#testH264ColorAspects Change-Id: I0152dcb7fed56e21f356d852bf3b6c052e2c6f4e (cherry picked from commit c714df843cb224dc9e8b1810d0dc46b89cfc2a03)
Loading
Please sign in to comment