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

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

MediaCodecInfo: report supported color formats for non-native-window mode



Revert the change in behavior when checking for adaptive playback was
introduced.

Change-Id: I59dc2450a4299b912015f2e4c9ec018a19a20b84
Signed-off-by: default avatarLajos Molnar <lajos@google.com>
Bug: 10921537
parent 3d97e23f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -4585,12 +4585,6 @@ status_t QueryCodec(
    caps->mFlags = 0;
    caps->mComponentName = componentName;

    if (!isEncoder && !strncmp(mime, "video/", 6) &&
            omx->storeMetaDataInBuffers(
                    node, 1 /* port index */, OMX_TRUE) == OK) {
        caps->mFlags |= CodecCapabilities::kFlagSupportsAdaptivePlayback;
    }

    OMX_VIDEO_PARAM_PROFILELEVELTYPE param;
    InitOMXParams(&param);

@@ -4626,6 +4620,12 @@ status_t QueryCodec(
        caps->mColorFormats.push(portFormat.eColorFormat);
    }

    if (!isEncoder && !strncmp(mime, "video/", 6) &&
            omx->storeMetaDataInBuffers(
                    node, 1 /* port index */, OMX_TRUE) == OK) {
        caps->mFlags |= CodecCapabilities::kFlagSupportsAdaptivePlayback;
    }

    CHECK_EQ(omx->freeNode(node), (status_t)OK);

    return OK;