libcamera: v4l2_videodevice: Support MPLANE M2M devices
M2M devices using MPLANE API will set the V4L2_CAP_VIDEO_M2M_MPLANE
capability flag.
Ensure that this is matched when checking for Multiplanar capabilities.
Fixes: 4f7625cca7 ("libcamera: v4l2_videodevice: Support M2M devices")
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -50,7 +50,8 @@ struct V4L2Capability final : v4l2_capability {
|
||||
bool isMultiplanar() const
|
||||
{
|
||||
return device_caps() & (V4L2_CAP_VIDEO_CAPTURE_MPLANE |
|
||||
V4L2_CAP_VIDEO_OUTPUT_MPLANE);
|
||||
V4L2_CAP_VIDEO_OUTPUT_MPLANE |
|
||||
V4L2_CAP_VIDEO_M2M_MPLANE);
|
||||
}
|
||||
bool isCapture() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user