mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
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>
This commit is contained in:
parent
2eca16b674
commit
25b0216886
3 changed files with 6 additions and 4 deletions
|
@ -244,7 +244,8 @@ CameraDevice::Camera3RequestDescriptor::Camera3RequestDescriptor(
|
|||
* Create the CaptureRequest, stored as a unique_ptr<> to tie its
|
||||
* lifetime to the descriptor.
|
||||
*/
|
||||
request_ = std::make_unique<CaptureRequest>(camera);
|
||||
request_ = std::make_unique<CaptureRequest>(camera,
|
||||
reinterpret_cast<uint64_t>(this));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue