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

Commit af4430a7 authored by Kriti Dang's avatar Kriti Dang Committed by Android (Google) Code Review
Browse files

Merge "Remove the SDR type from list returned by GetSupportedHdrOutputTypes" into udc-dev

parents 77387961 24eaef14
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -99,8 +99,11 @@ static jintArray nativeGetSupportedHdrOutputTypes(JNIEnv* env, jclass clazz) {
    // Extract unique HDR output types.
    std::set<int> hdrOutputTypes;
    for (const auto& hdrConversionCapability : hdrConversionCapabilities) {
        // Filter out the value for SDR which is 0.
        if (hdrConversionCapability.outputType > 0) {
            hdrOutputTypes.insert(hdrConversionCapability.outputType);
        }
    }
    jintArray array = env->NewIntArray(hdrOutputTypes.size());
    if (array == nullptr) {
        jniThrowException(env, "java/lang/OutOfMemoryError", nullptr);