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

Commit 972c84fb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Lift the 32 pixel alignment Jpeg/R width limitation" into...

Merge "Camera: Lift the 32 pixel alignment Jpeg/R width limitation" into udc-dev am: e8b62d43 am: a50f9eef

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/21616882



Change-Id: I5564679e9d9888e572927c2f37845c60d008c520
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3045c4f5 a50f9eef
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1172,10 +1172,8 @@ status_t CameraProviderManager::ProviderInfo::DeviceInfo3::deriveJpegRTags(bool
            static_cast<android_pixel_format_t>(HAL_PIXEL_FORMAT_YCBCR_P010), &supportedP010Sizes);
    auto it = supportedP010Sizes.begin();
    while (it != supportedP010Sizes.end()) {
        // Resolutions that don't align on 32 pixels are not supported by Jpeg/R.
        // This can be removed as soon as the encoder restriction is lifted.
        if ((std::find(supportedBlobSizes.begin(), supportedBlobSizes.end(), *it) ==
                supportedBlobSizes.end()) || ((std::get<0>(*it) % 32) != 0)) {
        if (std::find(supportedBlobSizes.begin(), supportedBlobSizes.end(), *it) ==
                supportedBlobSizes.end()) {
            it = supportedP010Sizes.erase(it);
        } else {
            it++;