summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/vimc
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-01 16:10:20 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-01 17:07:33 +0200
commit4866bf6fe7e080b6b7f0842353d2383a3273f1c5 (patch)
treed5ac639159da3bec40d406310e18324c7acf4dda /src/libcamera/pipeline/vimc
parent6adb37d7194d87df2dbccb8cc88b4b59100bbcd7 (diff)
libcamera: stream: Expose stride value
Expose the image stride which may be retrieved after a video device has been configured. It may only be retrieved at that point as the assignment of video devices takes place at this point. In the future video devices should be assigned at configuration validation time and the stride value retrieved at that point. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/vimc')
-rw-r--r--src/libcamera/pipeline/vimc/vimc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp
index ccfd7f86..7019ac32 100644
--- a/src/libcamera/pipeline/vimc/vimc.cpp
+++ b/src/libcamera/pipeline/vimc/vimc.cpp
@@ -253,6 +253,7 @@ int PipelineHandlerVimc::configure(Camera *camera, CameraConfiguration *config)
return ret;
cfg.setStream(&data->stream_);
+ cfg.stride = format.planes[0].bpl;
return 0;
}