[libcamera-devel] [PATCH 05/14] libcamera: converter: Add queueBuffer() helper
Xavier Roumegue
xavier.roumegue at oss.nxp.com
Thu Sep 8 20:48:41 CEST 2022
Signed-off-by: Xavier Roumegue <xavier.roumegue at oss.nxp.com>
---
include/libcamera/internal/converter.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/libcamera/internal/converter.h b/include/libcamera/internal/converter.h
index e2237c57..ea1deab0 100644
--- a/include/libcamera/internal/converter.h
+++ b/include/libcamera/internal/converter.h
@@ -55,6 +55,12 @@ public:
virtual int queueBuffers(FrameBuffer *input,
const std::map<unsigned int, FrameBuffer *> &outputs) = 0;
+ int queueBuffer(FrameBuffer *input, FrameBuffer *output)
+ {
+ std::map<unsigned int, FrameBuffer *> _output = { { 0, output } };
+ return queueBuffers(input, _output);
+ }
+
std::string deviceNode_;
Signal<FrameBuffer *> inputBufferReady;
Signal<FrameBuffer *> outputBufferReady;
--
2.37.3
More information about the libcamera-devel
mailing list