summaryrefslogtreecommitdiff
path: root/src/android/camera_stream.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-19 17:17:56 +0530
committerUmang Jain <umang.jain@ideasonboard.com>2021-10-19 19:15:33 +0530
commit640bf94d02c36cb04b4578af14e9d11ad5969ffe (patch)
tree5efb15d5d5eb41b77e4760afe69f009a2fb7def1 /src/android/camera_stream.h
parent573fcb94d6443d103ee7be84cdc8a04463692196 (diff)
android: camera_stream: Pass StreamBuffer to process()
Now that we have a proper structure to model a stream buffer, pass it to CameraStream::process() instead of the camera3_stream_buffer_t. This will allow accessing other members of StreamBuffer in subsequent commits. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/android/camera_stream.h')
-rw-r--r--src/android/camera_stream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/android/camera_stream.h b/src/android/camera_stream.h
index 405b232d..197bd995 100644
--- a/src/android/camera_stream.h
+++ b/src/android/camera_stream.h
@@ -19,7 +19,8 @@
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
-class Camera3RequestDescriptor;
+#include "camera_request.h"
+
class CameraDevice;
class PostProcessor;
@@ -119,7 +120,7 @@ public:
int configure();
int process(const libcamera::FrameBuffer &source,
- camera3_stream_buffer_t &camera3Buffer,
+ Camera3RequestDescriptor::StreamBuffer &dest,
Camera3RequestDescriptor *request);
libcamera::FrameBuffer *getBuffer();
void putBuffer(libcamera::FrameBuffer *buffer);