diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2021-10-26 12:51:45 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-10-26 16:11:17 +0530 |
commit | 79cdb1f19d8033cf2e291b284fe1419098d5df81 (patch) | |
tree | 64b42319999fb367fcbd0cb5cbe336dbba2732ec /src/android/camera_request.h | |
parent | 64bcbd0e2c2ac78fae7e329cec86bc4806cd5c45 (diff) |
android: post_processor: Consolidate contextual information
Save and provide the context for post-processor of a camera stream
via Camera3RequestDescriptor::StreamBuffer. We extend the structure
to include source and destination buffers for the post processor, along
with CameraStream::Type::Internal buffer pointer (if any). In addition
to that, a back pointer to Camera3RequestDescriptor is convenient to
get access to overall descriptor (status, metadata settings etc.).
Also, migrate CameraStream::process() and PostProcessor::process()
signature to use Camera3RequestDescriptor::StreamBuffer only. This
will be helpful when we move to async post-processing in subsequent
commits.
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Diffstat (limited to 'src/android/camera_request.h')
-rw-r--r-- | src/android/camera_request.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/android/camera_request.h b/src/android/camera_request.h index 4d80ef32..ebe2e89d 100644 --- a/src/android/camera_request.h +++ b/src/android/camera_request.h @@ -20,6 +20,7 @@ #include "camera_metadata.h" #include "camera_worker.h" +class CameraBuffer; class CameraStream; class Camera3RequestDescriptor @@ -36,6 +37,10 @@ public: std::unique_ptr<libcamera::FrameBuffer> frameBuffer; int fence; Status status; + libcamera::FrameBuffer *internalBuffer; + const libcamera::FrameBuffer *srcBuffer; + std::unique_ptr<CameraBuffer> dstBuffer; + Camera3RequestDescriptor *request; }; Camera3RequestDescriptor(libcamera::Camera *camera, |