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

Commit b857cde4 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

CCodec: require static HDR info support for AV1 HDR10 profile

AV1 bitstream supports HDR static info
(https://aomediacodec.github.io/av1-spec/av1-spec.pdf sections 5.8.3.
and 5.8.4.).

Bug: 232293598
Change-Id: Ida905ff3596025a84624d05ba45e4d2c1777ba02
parent 2d222b8f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -150,9 +150,10 @@ bool addSupportedProfileLevels(
        }
    }

    // For VP9/AV1, the static info is always propagated by framework.
    // VP9 does not support HDR metadata in the bitstream and static metadata
    // can always be carried by the framework. (The framework does not propagate
    // dynamic metadata as that needs to be frame accurate.)
    supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9);
    supportsHdr |= (mediaType == MIMETYPE_VIDEO_AV1);

    // HDR support implies 10-bit support.
    // TODO: directly check this from the component interface