diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-26 23:45:04 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-03-03 00:59:00 +0200 |
commit | cc8da6b8c215d125d4a5c51a36697609f40b9362 (patch) | |
tree | 046e0251eadb5a4a2d868dab706522913e0b7db4 /src/libcamera/pipeline/simple/converter.h | |
parent | 29bd5583c4ebbd62583c12d76d5d0aceb300b649 (diff) |
libcamera: pipeline: simple: converter: Group query functions together
The SimpleConverter class has different sets of functions, related to
static queries, device configuration and runtime operation. Group the
query functions together. While at it, swap the arguments to the
strideAndFrameSize() function to match the order in which pixel format
and size are usually specified.
No functional change is included.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Phi-Bang Nguyen <pnguyen@baylibre.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/simple/converter.h')
-rw-r--r-- | src/libcamera/pipeline/simple/converter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/simple/converter.h b/src/libcamera/pipeline/simple/converter.h index 06d66f8c..dce3143c 100644 --- a/src/libcamera/pipeline/simple/converter.h +++ b/src/libcamera/pipeline/simple/converter.h @@ -36,6 +36,9 @@ public: std::vector<PixelFormat> formats(PixelFormat input); SizeRange sizes(const Size &input); + std::tuple<unsigned int, unsigned int> + strideAndFrameSize(const PixelFormat &pixelFormat, const Size &size); + int configure(PixelFormat inputFormat, const Size &inputSize, const StreamConfiguration &outputCfg); int exportBuffers(unsigned int count, @@ -46,9 +49,6 @@ public: int queueBuffers(FrameBuffer *input, FrameBuffer *output); - std::tuple<unsigned int, unsigned int> - strideAndFrameSize(const Size &size, const PixelFormat &pixelFormat); - Signal<FrameBuffer *, FrameBuffer *> bufferReady; private: |