summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/ipu3/cio2.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-01 23:20:48 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-26 13:32:29 +0200
commita96eb0cc8fd2bd45064bf2cd1ca9e43f80627bb3 (patch)
treec7d1394351695f08fd3b4e38750e49e892aa019e /src/libcamera/pipeline/ipu3/cio2.h
parentbb82835bc59b578d055010e4abc8e5c282a505b9 (diff)
libcamera: ipu3: cio2: Hide buffer allocation and freeing from users
The allocation and freeing of buffers for the CIO2 is handled in the IPU3 pipeline handlers start() and stop() functions. These functions also call CIO2Device start() and stop() at the appropriate times so move the CIO2 buffer allocation/freeing inside the CIO2Device and reduce the complexity of the exposed interface. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/ipu3/cio2.h')
-rw-r--r--src/libcamera/pipeline/ipu3/cio2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.h b/src/libcamera/pipeline/ipu3/cio2.h
index 8cb90c9d..47c6f010 100644
--- a/src/libcamera/pipeline/ipu3/cio2.h
+++ b/src/libcamera/pipeline/ipu3/cio2.h
@@ -37,10 +37,8 @@ public:
StreamConfiguration generateConfiguration(Size size) const;
- int allocateBuffers();
int exportBuffers(unsigned int count,
std::vector<std::unique_ptr<FrameBuffer>> *buffers);
- void freeBuffers();
FrameBuffer *getBuffer();
void putBuffer(FrameBuffer *buffer);
@@ -54,6 +52,8 @@ public:
Signal<FrameBuffer *> bufferReady;
private:
+ void freeBuffers();
+
void cio2BufferReady(FrameBuffer *buffer);
CameraSensor *sensor_;