summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/v4l2_device.h')
-rw-r--r--src/libcamera/include/v4l2_device.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libcamera/include/v4l2_device.h b/src/libcamera/include/v4l2_device.h
index 2e7bd1e7..cecafa15 100644
--- a/src/libcamera/include/v4l2_device.h
+++ b/src/libcamera/include/v4l2_device.h
@@ -59,7 +59,8 @@ struct V4L2Capability final : v4l2_capability {
bool isOutput() const
{
return device_caps() & (V4L2_CAP_VIDEO_OUTPUT |
- V4L2_CAP_VIDEO_OUTPUT_MPLANE);
+ V4L2_CAP_VIDEO_OUTPUT_MPLANE |
+ V4L2_CAP_META_OUTPUT);
}
bool isVideo() const
{
@@ -70,7 +71,8 @@ struct V4L2Capability final : v4l2_capability {
}
bool isMeta() const
{
- return device_caps() & V4L2_CAP_META_CAPTURE;
+ return device_caps() & (V4L2_CAP_META_CAPTURE |
+ V4L2_CAP_META_OUTPUT);
}
bool isVideoCapture() const
{
@@ -84,6 +86,10 @@ struct V4L2Capability final : v4l2_capability {
{
return isMeta() && isCapture();
}
+ bool isMetaOutput() const
+ {
+ return isMeta() && isOutput();
+ }
bool hasStreaming() const
{
return device_caps() & V4L2_CAP_STREAMING;