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>
This commit is contained in:
Laurent Pinchart
2021-10-19 17:17:56 +05:30
committed by Umang Jain
parent 573fcb94d6
commit 640bf94d02
3 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -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);