diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-01-04 16:20:05 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-01-25 15:20:36 +0100 |
commit | bb2b400638d290fc91953017b1a4c9eb2402f588 (patch) | |
tree | e0cea8df3c7efb953cf4c98bb8a185dafb81e5a5 /src/android/camera_device.h | |
parent | 953403288ef17e7f332a621b9113e75564f44407 (diff) |
android: camera_device: Handle SCALER_CROP_REGION
Handle the SCALER_CROP_REGION control and dynamic metadata by
translating it from the Android format to the associated libcamera
control when processing a request, and the other way around when
handling a request completion.
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.h')
-rw-r--r-- | src/android/camera_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 96b7fd99..597d11fc 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -104,6 +104,7 @@ private: void notifyError(uint32_t frameNumber, camera3_stream_t *stream); CameraMetadata *requestTemplatePreview(); libcamera::PixelFormat toPixelFormat(int format) const; + int processControls(Camera3RequestDescriptor *descriptor); std::unique_ptr<CameraMetadata> getResultMetadata( Camera3RequestDescriptor *descriptor, int64_t timestamp); |