diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-09-09 17:07:58 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-08 15:38:15 +0100 |
commit | da6c0a692af5d3a21d76ce3915f8e09c454c8d66 (patch) | |
tree | d447269051f4f446ebaab80d33aa14830a72ea60 /src/android | |
parent | 6da18d1deba1f9f76ae24cd9fd70cd8aeb2304ef (diff) |
libcamera: control_ids: Introduce LensShadingEnable
Introduce a control to enable and disable LSC and replace the
draft android control.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/camera_capabilities.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/camera_capabilities.cpp b/src/android/camera_capabilities.cpp index 1bfeaea4..040ad734 100644 --- a/src/android/camera_capabilities.cpp +++ b/src/android/camera_capabilities.cpp @@ -1187,10 +1187,10 @@ int CameraCapabilities::initializeStaticMetadata() { std::vector<uint8_t> data; data.reserve(2); - const auto &infoMap = controlsInfo.find(&controls::draft::LensShadingMapMode); + const auto &infoMap = controlsInfo.find(&controls::LensShadingEnable); if (infoMap != controlsInfo.end()) { for (const auto &value : infoMap->second.values()) - data.push_back(value.get<int32_t>()); + data.push_back(value.get<bool>()); } else { data.push_back(ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF); } |