summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_videodevice.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 2745e579..0cc622f9 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -1711,6 +1711,13 @@ FrameBuffer *V4L2VideoDevice::dequeueBuffer()
return buffer;
}
+ /*
+ * With a V4L2 single-planar format, all the data is stored in
+ * a single memory plane. The number of bytes used is conveyed
+ * through that plane when using the V4L2 multi-planar API, or
+ * set directly in the buffer when using the V4L2 single-planar
+ * API.
+ */
unsigned int bytesused = multiPlanar ? planes[0].bytesused
: buf.bytesused;
unsigned int remaining = bytesused;