diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-01-21 10:51:05 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-01-22 10:35:53 +0100 |
commit | dd1cd532caecc06f5e6d5b6ae4b6f4afd465ffb9 (patch) | |
tree | 82f88dea45ccd34d5631c8adc6e2f18fa86de922 /src/android/camera_device.h | |
parent | 5e2596006bc662c1e565052728cd732d8f78bf1e (diff) |
android: camera_device: Pass camera3 request to descriptor
The Camera3RequestDescriptor class can access the number of buffers
and the frame number from the camera3_capture_request_t instead of
having the caller passing them to the constructor.
This change allows to access other fields of the capture request, such
as the capture settings.
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 07d3a846..c2afc9d3 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -75,8 +75,7 @@ private: struct Camera3RequestDescriptor { Camera3RequestDescriptor(libcamera::Camera *camera, - unsigned int frameNumber, - unsigned int numBuffers); + const camera3_capture_request_t *camera3Request); ~Camera3RequestDescriptor(); uint32_t frameNumber_; |