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

Commit 2ebb839d authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Continue small JPEG size filtering if dynamicDepth tags fail

Due to depth related metadata tag mismatch, dynamicDepth tags may fail
to generate. In that case, conotinue with JPEG size filtering.

Test: api31test.SPerfClassTest on Pixel 5
Bug: 186046918
Change-Id: I5aab40ae423918ca2b4a9ce13f3797e28f6f2bfc
parent d9b67319
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2652,7 +2652,8 @@ status_t CameraProviderManager::ProviderInfo::DeviceInfo3::filterSmallJpegSizes(
    if (OK != res) {
    if (OK != res) {
        ALOGE("%s: Failed to append dynamic depth tags: %s (%d)", __FUNCTION__,
        ALOGE("%s: Failed to append dynamic depth tags: %s (%d)", __FUNCTION__,
                strerror(-res), res);
                strerror(-res), res);
        return res;
        // Allow filtering of small JPEG sizes to succeed even if dynamic depth
        // tags fail to generate.
    }
    }


    return OK;
    return OK;