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

Commit ef715e2d authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Replace SDR profile constraint value

The SDR dynamic range profile constraint value will always be
initialized. Avoid emplacing it again in case the camera device
supports concurrent SDR+HDR requests.

Bug: 233283431
Test: Camera CTS
Change-Id: I8651cbd910f8b8f3178522e6ea3bacffa30d0fb9
parent a9c6db92
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -168,9 +168,8 @@ status_t CameraDeviceClient::initializeImpl(TProviderPtr providerPtr, const Stri
                                __FUNCTION__, mCameraIdStr.c_str(), entry.data.i64[i]);
                    }
                }
                mDynamicProfileMap.emplace(
                        ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD,
                        standardBitmap);
                mDynamicProfileMap[ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD] =
                        standardBitmap;
            } else {
                ALOGE("%s: Device %s supports 10-bit output but doesn't include a dynamic range"
                        " profile map!", __FUNCTION__, mCameraIdStr.c_str());