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

Commit 4a77301a authored by Dichen Zhang's avatar Dichen Zhang
Browse files

Camera: remove a restriction for JPEG/R

Bug: b/20133417, b/252835416
Test: atest -c -d \
cts/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java#testJpegR

Change-Id: Idc78ce9c6b95839c2d83d5797748f481a2856ded
parent 35de0d51
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1153,14 +1153,6 @@ status_t CameraProviderManager::ProviderInfo::DeviceInfo3::deriveJpegRTags(bool
        return OK;
    }

    if (!isConcurrentDynamicRangeCaptureSupported(c,
                ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HLG10,
                ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD)) {
        // Advertise Jpeg/R only in case 10 and 8-bit concurrent capture is supported.
        // This can be removed when 10-bit to 8-bit tonemapping is available.
        return OK;
    }

    getSupportedSizes(c, scalerSizesTag,
            static_cast<android_pixel_format_t>(HAL_PIXEL_FORMAT_BLOB), &supportedBlobSizes);
    getSupportedSizes(c, scalerSizesTag,