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

Commit e8b62d43 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents df94c73b bbfff9ce
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++;