summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/rkisp1/rkisp1_path.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-24 23:27:09 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-30 14:24:42 +0200
commitc2dfdecd056247808a7cb3175df0086cac78ccb2 (patch)
treee1bcef31ddf17cc8d0acef8dae2b99c060fd1734 /src/libcamera/pipeline/rkisp1/rkisp1_path.h
parentdf64542035f7aab6f6d8eec801a9fcb9f19bed60 (diff)
libcamera: pipeline: rkisp1: Add wrappers for accessing the path video device
As a step to be able to make RkISP1Path::video_ private add simple wrappers for buffer handling. There is no functional change. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/rkisp1/rkisp1_path.h')
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1_path.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1_path.h b/src/libcamera/pipeline/rkisp1/rkisp1_path.h
index 7433ad03..377772ca 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1_path.h
+++ b/src/libcamera/pipeline/rkisp1/rkisp1_path.h
@@ -12,13 +12,15 @@
#include <libcamera/camera.h>
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
+#include <libcamera/signal.h>
#include <libcamera/span.h>
+#include "libcamera/internal/v4l2_videodevice.h"
+
namespace libcamera {
class MediaDevice;
class V4L2Subdevice;
-class V4L2VideoDevice;
struct StreamConfiguration;
struct V4L2SubdeviceFormat;
@@ -37,6 +39,15 @@ public:
int configure(const StreamConfiguration &config,
const V4L2SubdeviceFormat &inputFormat);
+ int exportBuffers(unsigned int bufferCount,
+ std::vector<std::unique_ptr<FrameBuffer>> *buffers)
+ {
+ return video_->exportBuffers(bufferCount, buffers);
+ }
+
+ int queueBuffer(FrameBuffer *buffer) { return video_->queueBuffer(buffer); }
+ Signal<FrameBuffer *> &bufferReady() { return video_->bufferReady; }
+
/* \todo Make video private. */
V4L2VideoDevice *video_;