summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/simple/converter.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-19 19:48:02 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-22 04:54:03 +0300
commitfd76304e005903d6fe7ad28fa537f356b1048454 (patch)
tree831a4a133d1dc5015babc927547ac20a544a2675 /src/libcamera/pipeline/simple/converter.h
parent5331051c35fe5412901435d81b4153d307c04a49 (diff)
libcamera: pipeline: simple: converter: Add scaling support
Extend the SimpleConverter to support scaling, with reporting of the minimum and maximum output sizes supported for a given input size. 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/simple/converter.h b/src/libcamera/pipeline/simple/converter.h
index 0beb96a5..1f770eb8 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;
+class SizeRange;
struct StreamConfiguration;
class V4L2M2MDevice;
@@ -33,8 +34,10 @@ public:
void close();
std::vector<PixelFormat> formats(PixelFormat input);
+ SizeRange sizes(const Size &input);
- int configure(PixelFormat inputFormat, StreamConfiguration *cfg);
+ int configure(PixelFormat inputFormat, const Size &inputSize,
+ StreamConfiguration *cfg);
int exportBuffers(unsigned int count,
std::vector<std::unique_ptr<FrameBuffer>> *buffers);