android: camera_stream: Plumb process() with Camera3RequestDescriptor
Data (or broader context) required for post processing of a camera request is saved via Camera3RequestDescriptor. Instead of passing individual arguments to CameraStream::process(), pass the Camera3RequestDescriptor pointer to it. All the arguments necessary to run the post-processor can be accessed from the descriptor. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
||||
class Camera3RequestDescriptor;
|
||||
class CameraDevice;
|
||||
class CameraMetadata;
|
||||
class PostProcessor;
|
||||
|
||||
class CameraStream
|
||||
@@ -120,8 +120,7 @@ public:
|
||||
int configure();
|
||||
int process(const libcamera::FrameBuffer &source,
|
||||
camera3_stream_buffer_t &camera3Buffer,
|
||||
const CameraMetadata &requestMetadata,
|
||||
CameraMetadata *resultMetadata);
|
||||
Camera3RequestDescriptor *request);
|
||||
libcamera::FrameBuffer *getBuffer();
|
||||
void putBuffer(libcamera::FrameBuffer *buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user