aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-overlay.cpp
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2020-08-28 17:17:18 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-09-09 15:50:29 +0200
commitd2f76464d9cf3036aa67ca89420e8753210a4def (patch)
treef34858b3d3afd40a3c712b4f5d9dbcd462f38e93 /utils/v4l2-ctl/v4l2-ctl-overlay.cpp
parentdedeb53218d1e6b8da584a3c1aaa404f424c3647 (diff)
utils: v4l2-ctl: support V4L2_CAP_IO_MC in v4l2-ctl '--list-formats-*' commands
Add optional <mbus_code> arg to 'v4l2-ctl --list-formats-*' commands for capture, metadata and output devices. If <mbus_code> is given and the device has capability V4L2_CAP_IO_MC then list only the formats that matches the mbus code. The mbus_code is ignored for devices that don't use it or don't have the V4L2_CAP_IO_MC capability. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-overlay.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-overlay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-overlay.cpp b/utils/v4l2-ctl/v4l2-ctl-overlay.cpp
index 7809a6db..75681332 100644
--- a/utils/v4l2-ctl/v4l2-ctl-overlay.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-overlay.cpp
@@ -539,7 +539,7 @@ void overlay_list(cv4l_fd &fd)
{
if (options[OptListOverlayFormats]) {
printf("ioctl: VIDIOC_ENUM_FMT\n");
- print_video_formats(fd, V4L2_BUF_TYPE_VIDEO_OVERLAY);
+ print_video_formats(fd, V4L2_BUF_TYPE_VIDEO_OVERLAY, 0);
}
if (options[OptFindFb])
find_fb(fd.g_fd());

Privacy Policy