diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2021-01-21 18:59:24 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2021-01-27 12:07:17 +0900 |
commit | a6de3f0203c5d338a2a86ff049d55907a12e04c5 (patch) | |
tree | c7863b1a9609075138c13c50c7f276d97f07adc3 /src/android/camera_device.h | |
parent | 1264628d3c92dedfcee32caed776e2beaad74a2a (diff) |
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 <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r-- | src/android/camera_device.h | 2 |
1 files changed, 2 insertions, 0 deletions
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__ */ |