summaryrefslogtreecommitdiff
path: root/src/android/camera_device.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-01-04 18:26:28 +0100
committerJacopo Mondi <jacopo@jmondi.org>2021-01-25 15:20:36 +0100
commitaf088b88f50d4b1ba0e0688c18d561becefc5bbf (patch)
tree6abfd1dc9ab82b33badf0db39e9584950981a130 /src/android/camera_device.cpp
parentbb2b400638d290fc91953017b1a4c9eb2402f588 (diff)
android: camera_device: Support AWB_AUTO
Claim support for the AWB_AUTO mode in the ANDROID_CONTROL_AWB_AVAILABLE_MODES static metadata. This fixes the CTS test error: android.hardware.camera2.cts.CaptureRequestTest#testAwbModeAndLock fail The static info key 'android.control.awbAvailableModes' All camera devices must support AUTO mode Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r--src/android/camera_device.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 9f045777..1a2e58c6 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -808,8 +808,12 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
availableStabilizationModes.data(),
availableStabilizationModes.size());
+ /*
+ * \todo Inspect the Camera capabilities to report the available
+ * AWB modes. Default to AUTO as CTS tests require it.
+ */
std::vector<uint8_t> availableAwbModes = {
- ANDROID_CONTROL_AWB_MODE_OFF,
+ ANDROID_CONTROL_AWB_MODE_AUTO,
};
staticMetadata_->addEntry(ANDROID_CONTROL_AWB_AVAILABLE_MODES,
availableAwbModes.data(),