Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdbd5ec7 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

codec2: declare 10-bit support for all AV1 codecs

CDD mandates the 10-bit support for AV1.

Bug: 236098664
Test: atest android.mediav2.cts.CodecDecoderSurfaceTest
Change-Id: Id379588ffb77bdb647ca59097925097ff641c861
parent f9591d6b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -156,9 +156,10 @@ bool addSupportedProfileLevels(
    // dynamic metadata as that needs to be frame accurate.)
    supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9);

    // HDR support implies 10-bit support.
    // HDR support implies 10-bit support. AV1 codecs are also required to
    // support 10-bit per CDD.
    // TODO: directly check this from the component interface
    supports10Bit = (supportsHdr || supportsHdr10Plus);
    supports10Bit = (supportsHdr || supportsHdr10Plus) || (mediaType == MIMETYPE_VIDEO_AV1);

    // If the device doesn't support HDR display, then no codec on the device
    // can advertise support for HDR profiles.