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

Commit 5f7a5be6 authored by Wonsik Kim's avatar Wonsik Kim Committed by Gerrit Code Review
Browse files

Revert "StagefrightMetadataRetriever: check P010 support when computing bitdepth"

This reverts commit e0b98eaa.

Bug: 316017844
Reason for revert: regression

Change-Id: Ia42a16235a0ac857e36a939c820ae4753a8206a4
parent e0b98eaa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ cc_defaults {
        "libmemunreachable",
        "libnetd_client",
        "libpowermanager",
        "libsfplugin_ccodec_utils",
        "libstagefright",
        "libstagefright_foundation",
        "libstagefright_httplive",
+0 −8
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@
#include <media/stagefright/MetaData.h>
#include <media/stagefright/Utils.h>
#include <media/CharacterEncodingDetector.h>
#include <Codec2CommonUtils.h>

namespace android {

@@ -240,13 +239,6 @@ sp<IMemory> StagefrightMetadataRetriever::getImageInternal(
            }
        }
    }
    if (bitDepth == 10) {
        static const bool isP010Supported =
            isHalPixelFormatSupported(AHARDWAREBUFFER_FORMAT_YCbCr_P010);
        if (!isP010Supported) {
            bitDepth = 8;
        }
    }

    if (metaOnly) {
        return FrameDecoder::getMetadataOnly(trackMeta, colorFormat, thumbnail, bitDepth);
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ cc_defaults {
        "libmedia",
        "libstagefright",
        "libutils",
        "libsfplugin_ccodec_utils",
        "libstagefright_foundation",
    ],
    fuzz_config: {