summaryrefslogtreecommitdiff
path: root/src/android/camera_worker.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-01-04 16:20:05 +0100
committerJacopo Mondi <jacopo@jmondi.org>2021-01-25 15:20:36 +0100
commitbb2b400638d290fc91953017b1a4c9eb2402f588 (patch)
treee0cea8df3c7efb953cf4c98bb8a185dafb81e5a5 /src/android/camera_worker.h
parent953403288ef17e7f332a621b9113e75564f44407 (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_worker.h')
-rw-r--r--src/android/camera_worker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_worker.h b/src/android/camera_worker.h
index 847a2fc4..6522f1d6 100644
--- a/src/android/camera_worker.h
+++ b/src/android/camera_worker.h
@@ -25,6 +25,7 @@ public:
CaptureRequest(libcamera::Camera *camera, uint64_t cookie);
const std::vector<int> &fences() const { return acquireFences_; }
+ libcamera::ControlList &controls() { return request_->controls(); }
const libcamera::ControlList &metadata() const
{
return request_->metadata();