summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/simple/converter.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-19 19:46:15 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-22 04:54:03 +0300
commit5331051c35fe5412901435d81b4153d307c04a49 (patch)
treec157815eeb1f1ef731fac27ab954a619bc07b1d8 /src/libcamera/pipeline/simple/converter.h
parent09eeec152086158e55870d8523b862b0731abdb5 (diff)
libcamera: pipeline: simple: Add stride support
Report the stride when configuring the camera. The stride is retrieved from the capture device first, and overridden by the converter if used. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/pipeline/simple/converter.h')
-rw-r--r--src/libcamera/pipeline/simple/converter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/simple/converter.h b/src/libcamera/pipeline/simple/converter.h
index a33071fa..0beb96a5 100644
--- a/src/libcamera/pipeline/simple/converter.h
+++ b/src/libcamera/pipeline/simple/converter.h
@@ -20,6 +20,7 @@ namespace libcamera {
class FrameBuffer;
class MediaDevice;
struct Size;
+struct StreamConfiguration;
class V4L2M2MDevice;
class SimpleConverter
@@ -33,8 +34,7 @@ public:
std::vector<PixelFormat> formats(PixelFormat input);
- int configure(PixelFormat inputFormat, PixelFormat outputFormat,
- const Size &size);
+ int configure(PixelFormat inputFormat, StreamConfiguration *cfg);
int exportBuffers(unsigned int count,
std::vector<std::unique_ptr<FrameBuffer>> *buffers);