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

Commit 8c0967af authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Revert "StagefrightMetadataRetriever: check P010 support when computing bitdepth"" into main

parents 8203615c 5f7a5be6
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: {