mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
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>
This commit is contained in:
parent
bb2b400638
commit
af088b88f5
1 changed files with 5 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue