From bb2b400638d290fc91953017b1a4c9eb2402f588 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Mon, 4 Jan 2021 16:20:05 +0100 Subject: android: camera_device: Handle SCALER_CROP_REGION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- src/android/camera_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/android/camera_device.h') 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 getResultMetadata( Camera3RequestDescriptor *descriptor, int64_t timestamp); -- cgit v1.2.1