diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-02 04:09:18 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-07 19:18:24 +0300 |
commit | c64f7eb5c038b00c875f77fef56d96f5d4e0866d (patch) | |
tree | 7ea9d24ec63fd8d3c993d97fffa08594168db45a /test/ipa/ipa_interface_test.cpp | |
parent | cc035f611f40f366c388bcc2627180349ac671f2 (diff) |
libcamera: v4l2_videodevice: Split planes when dequeuing buffer
When dequeueing a buffer from a V4L2VideoDevice, the number of planes in
the FrameBuffer may not match the number of V4L2 buffer planes if the
PixelFormat is multi-planar (has multiple colour planes) and the V4L2
format is single-planar (has a single buffer plane). In this case, we
need to split the single V4L2 buffer plane into FrameBuffer planes. Do
so, and add checks to reject invalid V4L2 buffers in case of a driver
issue.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Diffstat (limited to 'test/ipa/ipa_interface_test.cpp')
0 files changed, 0 insertions, 0 deletions