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

Commit f7a2c50f authored by Lajos Molnar's avatar Lajos Molnar Committed by Automerger Merge Worker
Browse files

Merge "CCodec: make HDR10/+ support detection logic work for encoders" am: 4e1eeb30

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1579466

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9fbb87379bc2033af8e5899afb9b810cf9ef101c
parents a79364cc 4e1eeb30
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -103,11 +103,16 @@ void addSupportedProfileLevels(
    c2_status_t err1 = intf->querySupportedParams(&paramDescs);
    if (err1 == C2_OK) {
        for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) {
            switch ((uint32_t)desc->index()) {
            case C2StreamHdr10PlusInfo::output::PARAM_TYPE:
            C2Param::Type type = desc->index();
            // only consider supported parameters on raw ports
            if (!(encoder ? type.forInput() : type.forOutput())) {
                continue;
            }
            switch (type.coreIndex()) {
            case C2StreamHdr10PlusInfo::CORE_INDEX:
                supportsHdr10Plus = true;
                break;
            case C2StreamHdrStaticInfo::output::PARAM_TYPE:
            case C2StreamHdrStaticInfo::CORE_INDEX:
                supportsHdr = true;
                break;
            default: