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:
Umang Jain 2021-09-29 19:00:27 +05:30
parent 2eca16b674
commit 25b0216886
3 changed files with 6 additions and 4 deletions

View file

@ -27,10 +27,10 @@ LOG_DECLARE_CATEGORY(HAL)
* by the CameraWorker which queues it to the libcamera::Camera after handling
* fences.
*/
CaptureRequest::CaptureRequest(Camera *camera)
CaptureRequest::CaptureRequest(Camera *camera, uint64_t cookie)
: camera_(camera)
{
request_ = camera_->createRequest(reinterpret_cast<uint64_t>(this));
request_ = camera_->createRequest(cookie);
}
void CaptureRequest::addBuffer(Stream *stream, FrameBuffer *buffer, int fence)