summaryrefslogtreecommitdiff
path: root/src/android/camera_worker.h
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-09-29 19:00:27 +0530
committerUmang Jain <umang.jain@ideasonboard.com>2021-09-30 18:28:36 +0530
commit25b0216886c70122d1e9d6a0fab35bd32a19f85a (patch)
tree9281cd720116586428656ab25af7701d8de4629a /src/android/camera_worker.h
parent2eca16b674ff9e849d7681fbc670325de87ad0a2 (diff)
android: camera_worker: Use Camera3RequestDescriptor as cookie
Use Camera3RequestDescriptor as cookie for the Capture Request. The cookie is used to lookup descriptors map in CameraDevice::requestComplete(). The map will be transformed to a queue in subsequent commit. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_worker.h')
-rw-r--r--src/android/camera_worker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/camera_worker.h b/src/android/camera_worker.h
index 67ae50bd..c94f1632 100644
--- a/src/android/camera_worker.h
+++ b/src/android/camera_worker.h
@@ -8,6 +8,7 @@
#define __ANDROID_CAMERA_WORKER_H__
#include <memory>
+#include <stdint.h>
#include <libcamera/base/object.h>
#include <libcamera/base/thread.h>
@@ -22,7 +23,7 @@ class CameraDevice;
class CaptureRequest
{
public:
- CaptureRequest(libcamera::Camera *camera);
+ CaptureRequest(libcamera::Camera *camera, uint64_t cookie);
const std::vector<int> &fences() const { return acquireFences_; }
libcamera::ControlList &controls() { return request_->controls(); }