summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/simple/simple.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-26 23:45:04 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-03 00:59:00 +0200
commitcc8da6b8c215d125d4a5c51a36697609f40b9362 (patch)
tree046e0251eadb5a4a2d868dab706522913e0b7db4 /src/libcamera/pipeline/simple/simple.cpp
parent29bd5583c4ebbd62583c12d76d5d0aceb300b649 (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/simple.cpp')
-rw-r--r--src/libcamera/pipeline/simple/simple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 1f396612..4afc5aa7 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -494,7 +494,7 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
SimpleConverter *converter = pipe->converter();
std::tie(cfg.stride, cfg.frameSize) =
- converter->strideAndFrameSize(cfg.size, cfg.pixelFormat);
+ converter->strideAndFrameSize(cfg.pixelFormat, cfg.size);
if (cfg.stride == 0)
return Invalid;