aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/cv4l-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common/cv4l-helpers.h')
-rw-r--r--utils/common/cv4l-helpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/common/cv4l-helpers.h b/utils/common/cv4l-helpers.h
index 6295054a..3cee372b 100644
--- a/utils/common/cv4l-helpers.h
+++ b/utils/common/cv4l-helpers.h
@@ -483,12 +483,13 @@ public:
return cv4l_ioctl(VIDIOC_ENUM_DV_TIMINGS, &timings);
}
- int enum_fmt(v4l2_fmtdesc &fmt, bool init = false, int index = 0, unsigned type = 0)
+ int enum_fmt(v4l2_fmtdesc &fmt, bool init = false, int index = 0, unsigned type = 0, __u32 mbus_code = 0)
{
if (init) {
memset(&fmt, 0, sizeof(fmt));
fmt.type = type ? type : g_type();
fmt.index = index;
+ fmt.mbus_code = mbus_code;
} else {
fmt.index++;
}

Privacy Policy