android: Move buffer mapping to CameraStream
The destination buffer for the post-processing component is currently first mapped in the CameraDevice class and then passed to CameraStream which simply calls the post-processor interface. Move the mapping to CameraStream::process() to tie the buffer mapping to the lifetime of the CameraBuffer instance. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -120,7 +120,7 @@ public:
|
||||
|
||||
int configure();
|
||||
int process(const libcamera::FrameBuffer &source,
|
||||
libcamera::MappedBuffer *destination,
|
||||
buffer_handle_t camera3Dest,
|
||||
const CameraMetadata &requestMetadata,
|
||||
CameraMetadata *resultMetadata);
|
||||
libcamera::FrameBuffer *getBuffer();
|
||||
|
||||
Reference in New Issue
Block a user