From a6de3f0203c5d338a2a86ff049d55907a12e04c5 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Thu, 21 Jan 2021 18:59:24 +0900 Subject: android: camera_device: Cache request metadata The settings in an android capture request may be null, in which case the settings from the most recently submitted capture request should be used. Cache the request settings to achieve this. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/android/camera_device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/android/camera_device.h') diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 4b0d8575..9cbfcad3 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -134,6 +134,8 @@ private: int orientation_; unsigned int maxJpegBufferSize_; + + CameraMetadata lastSettings_; }; #endif /* __ANDROID_CAMERA_DEVICE_H__ */ -- cgit v1.2.1