v4l2-compliance: Add test for V4L2_FMTDESC_FLAG_ENUM_ALL flag
PATCH v2 1/1 v4l2-compliance: Add test for V4L2_FMTDESC_FLAG_ENUM_ALL flag
If V4L2_FMTDESC_FLAG_ENUM_ALL flag is supported, test if all pixel formats list with VIDIOC_ENUM_FMT without the flag been set is a subset of the list created with the flag.
Also Test that the flag is cleared after calling VIDIOC_ENUM_FMT.
---
changes in version 2:
- Completely rework how the test it done.
include/linux/videodev2.h | 3 ++ utils/common/v4l2-info.cpp | 1 + utils/v4l2-compliance/v4l2-test-formats.cpp | 36 +++++++++++++++++++++ 3 files changed, 40 insertions(+)
include/linux/videodev2.h +3 -0
@@ -864,6 +864,9 @@ struct v4l2_fmtdesc {#define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200 +/* Format description flag, to be ORed with the index */ +#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000 +/* Frame Size and frame rate enumeration */ /* * F R A M E S I Z E E N U M E R A T I O N
utils/common/v4l2-info.cpp +1 -0
@@ -383,6 +383,7 @@ static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ { V4L2_FMT_FLAG_CSC_QUANTIZATION, "csc-quantization" }, \ { V4L2_FMT_FLAG_CSC_XFER_FUNC, "csc-xfer-func" }, \ { V4L2_FMT_FLAG_META_LINE_BASED, "meta-line-based" }, \ + { V4L2_FMTDESC_FLAG_ENUM_ALL, "enum-all-format" }, \ { 0, NULL } \ };
utils/v4l2-compliance/v4l2-test-formats.cpp +36 -0
@@ -224,6 +224,7 @@ static int testEnumFrameSizes(struct node *node, __u32 pixfmt) static int testEnumFormatsType(struct node *node, unsigned type) { pixfmt_map &map = node->buftype_pixfmts[type]; + pixfmt_map enum_all; struct v4l2_fmtdesc fmtdesc; unsigned f = 0; int ret;
@@ -317,6 +318,41 @@ static int testEnumFormatsType(struct node *node, unsigned type) fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); map[fmtdesc.pixelformat] = fmtdesc.flags; } + + /* Test V4L2_FMTDESC_FLAG_ENUM_ALL if supported */ + f = 0; + for (;;) { + memset(&fmtdesc, 0xff, sizeof(fmtdesc)); + fmtdesc.type = type; + fmtdesc.index = f | V4L2_FMTDESC_FLAG_ENUM_ALL; + fmtdesc.mbus_code = 0; + + ret = doioctl(node, VIDIOC_ENUM_FMT, &fmtdesc); + if (ret == ENOTTY) + return ret; + if (f == 0 && ret == EINVAL) + return 0; + if (ret == EINVAL) + break; + if (ret) + return fail("expected EINVAL, but got %d when enumerating buftype %d\n", ret, type); + if (fmtdesc.index != f) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL hasn't been cleared from fmtdesc.index 0x%x f 0x%x\n", fmtdesc.index, f); + f++; + if (type == V4L2_BUF_TYPE_PRIVATE) + continue; + assert(type <= V4L2_BUF_TYPE_LAST); + if (enum_all.find(fmtdesc.pixelformat) != enum_all.end()) + return fail("duplicate format %08x (%s)\n", + fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); + enum_all[fmtdesc.pixelformat] = fmtdesc.flags; + } + /* if V4L2_FMTDESC_FLAG_ENUM_ALL is supported, verify that the list is a subset of VIDIOC_ENUM_FMT list */ + if (!enum_all.empty()) { + for (auto it = map.begin(); it != map.end(); it++) + if (enum_all.find(it->first) == enum_all.end()) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL failed to enumerate format %08x (%s)\n", it->first, fcc2s(it->first).c_str()); + } info("found %d formats for buftype %d\n", f, type); return 0; }
Signature · 1 line
2.43.0
Quoted 34 lines · Benjamin Gaignard
If
V4L2_FMTDESC_FLAG_ENUM_ALLflag is supported, test if all pixel formats list withVIDIOC_ENUM_FMTwithout the flag been set is a subset of the list created with the flag.
Also Test that the flag is cleared after callingVIDIOC_ENUM_FMT.Signed-off-by Benjamin Gaignard <[email protected]>---
changes in version 2:
- Completely rework how the test it done.include/linux/videodev2.h | 3 ++ utils/common/v4l2-info.cpp | 1 + utils/v4l2-compliance/v4l2-test-formats.cpp | 36 +++++++++++++++++++++ 3 files changed, 40 insertions(+)include/linux/videodev2.h +3
-0@@ -864,6 +864,9 @@ struct v4l2_fmtdesc {#define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200 +/* Format description flag, to be ORed with the index */ +#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000 +/* Frame Size and frame rate enumeration */ /* * F R A M E S I Z E E N U M E R A T I O N utils/common/v4l2-info.cpp +0
-0
utils/common/v4l2-info.cpp static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ · line 386
Quoted 4 lines
utils/common/v4l2-info.cpp +1
-0@@ -383,6 +383,7 @@ static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ { V4L2_FMT_FLAG_CSC_QUANTIZATION, "csc-quantization" }, \ { V4L2_FMT_FLAG_CSC_XFER_FUNC, "csc-xfer-func" }, \ { V4L2_FMT_FLAG_META_LINE_BASED, "meta-line-based" }, \ + { V4L2_FMTDESC_FLAG_ENUM_ALL, "enum-all-format" }, \
Ah, no. This lists the possible flag of the flags field, V4L2_FMTDESC_FLAG_ENUM_ALL doesn't belong there.
In fact, there is no need to add it at all since it is never reported.
But you do need to add support for it in v4l2-ctl: I think that the various --list-formats(-ext) options needs to check for an optional suboption 'all', which will set the new V4L2_FMTDESC_FLAG_ENUM_ALL flag. That's a separate patch for v4l2-ctl.
Quoted 21 lines
utils/common/v4l2-info.cpp +0
-0{ 0, NULL } \ };utils/v4l2-compliance/v4l2-test-formats.cpp +3
-0@@ -224,6 +224,7 @@ static int testEnumFrameSizes(struct node *node, __u32 pixfmt) static int testEnumFormatsType(struct node *node, unsigned type) { pixfmt_map &map = node->buftype_pixfmts[type]; + pixfmt_map enum_all; struct v4l2_fmtdesc fmtdesc; unsigned f = 0; int ret;@@ -317,6 +318,41 @@ static int testEnumFormatsType(struct node *node, unsigned type) fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); map[fmtdesc.pixelformat] = fmtdesc.flags; } + + /* Test V4L2_FMTDESC_FLAG_ENUM_ALL if supported */
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 332
Quoted 10 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +10
-0+ f = 0; + for (;;) { + memset(&fmtdesc, 0xff, sizeof(fmtdesc)); + fmtdesc.type = type; + fmtdesc.index = f | V4L2_FMTDESC_FLAG_ENUM_ALL; + fmtdesc.mbus_code = 0; + + ret = doioctl(node, VIDIOC_ENUM_FMT, &fmtdesc); + if (ret == ENOTTY) + return ret;
This would be a failure: it can't return ENOTTY since that was already tested in the first test without the ALL flag. You can drop this test, since it will fail later.
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 338
Quoted 6 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +6
-0+ if (f == 0 && ret == EINVAL) + return 0; + if (ret == EINVAL) + break; + if (ret) + return fail("expected EINVAL, but got %d when enumerating buftype %d\n", ret, type);
This will catch the ENOTTY.
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 351
Quoted 13 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +13
-0+ if (fmtdesc.index != f) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL hasn't been cleared from fmtdesc.index 0x%x f 0x%x\n", fmtdesc.index, f); + f++; + if (type == V4L2_BUF_TYPE_PRIVATE) + continue; + assert(type <= V4L2_BUF_TYPE_LAST); + if (enum_all.find(fmtdesc.pixelformat) != enum_all.end()) + return fail("duplicate format %08x (%s)\n", + fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); + enum_all[fmtdesc.pixelformat] = fmtdesc.flags; + } + /* if V4L2_FMTDESC_FLAG_ENUM_ALL is supported, verify that the list is a subset of VIDIOC_ENUM_FMT list */ + if (!enum_all.empty()) {
You can drop this if. If enum_all is empty, and map isn't, then it will just fail in the next for loop.
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 356
Quoted 5 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +4
-0+ for (auto it = map.begin(); it != map.end(); it++) + if (enum_all.find(it->first) == enum_all.end()) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL failed to enumerate format %08x (%s)\n", it->first, fcc2s(it->first).c_str()); + } info("found %d formats for buftype %d\n", f, type);
Note that f was reset above, so this info message should be moved up to just before the V4L2_FMTDESC_FLAG_ENUM_ALL test starts.
But perhaps keep this info message here as well, just change it to:
info("found %d formats for buftype %d (with V4L2_FMTDESC_FLAG_ENUM_ALL)\n", f, type);
Regards,
Hans
Quoted 2 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +0
-0return 0; }
Le 31/07/2024 à 12:02, Hans Verkuil a écrit :
Quoted 92 lines · Benjamin Gaignard
Quoted 34 lines
If
V4L2_FMTDESC_FLAG_ENUM_ALLflag is supported, test if all pixel formats list withVIDIOC_ENUM_FMTwithout the flag been set is a subset of the list created with the flag.
Also Test that the flag is cleared after callingVIDIOC_ENUM_FMT.Signed-off-by Benjamin Gaignard <[email protected]>---
changes in version 2:
- Completely rework how the test it done.include/linux/videodev2.h | 3 ++ utils/common/v4l2-info.cpp | 1 + utils/v4l2-compliance/v4l2-test-formats.cpp | 36 +++++++++++++++++++++ 3 files changed, 40 insertions(+)include/linux/videodev2.h +3
-0@@ -864,6 +864,9 @@ struct v4l2_fmtdesc {#define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100#define V4L2_FMT_FLAG_META_LINE_BASED 0x0200 +/* Format description flag, to be ORed with the index */ +#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000 +/* Frame Size and frame rate enumeration */ /* * F R A M E S I Z E E N U M E R A T I O N utils/common/v4l2-info.cpp +0
-0utils/common/v4l2-info.cpp static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ · line 386
Quoted 4 lines
utils/common/v4l2-info.cpp +1
-0@@ -383,6 +383,7 @@ static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ { V4L2_FMT_FLAG_CSC_QUANTIZATION, "csc-quantization" }, \ { V4L2_FMT_FLAG_CSC_XFER_FUNC, "csc-xfer-func" }, \ { V4L2_FMT_FLAG_META_LINE_BASED, "meta-line-based" }, \ + { V4L2_FMTDESC_FLAG_ENUM_ALL, "enum-all-format" }, \Ah, no. This lists the possible flag of the flags field,
V4L2_FMTDESC_FLAG_ENUM_ALLdoesn't belong there.In fact, there is no need to add it at all since it is never reported.
But you do need to add support for it in v4l2-ctl: I think that the various --list-formats(-ext) options needs to check for an optional suboption 'all', which will set the new
V4L2_FMTDESC_FLAG_ENUM_ALLflag. That's a separate patch for v4l2-ctl.Quoted 21 lines
utils/common/v4l2-info.cpp +0
-0{ 0, NULL } \ };utils/v4l2-compliance/v4l2-test-formats.cpp +3
-0@@ -224,6 +224,7 @@ static int testEnumFrameSizes(struct node *node, __u32 pixfmt) static int testEnumFormatsType(struct node *node, unsigned type) { pixfmt_map &map = node->buftype_pixfmts[type]; + pixfmt_map enum_all; struct v4l2_fmtdesc fmtdesc; unsigned f = 0; int ret;@@ -317,6 +318,41 @@ static int testEnumFormatsType(struct node *node, unsigned type) fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); map[fmtdesc.pixelformat] = fmtdesc.flags; } + + /* Test V4L2_FMTDESC_FLAG_ENUM_ALL if supported */utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 332
Quoted 10 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +10
-0+ f = 0; + for (;;) { + memset(&fmtdesc, 0xff, sizeof(fmtdesc)); + fmtdesc.type = type; + fmtdesc.index = f | V4L2_FMTDESC_FLAG_ENUM_ALL; + fmtdesc.mbus_code = 0; + + ret = doioctl(node, VIDIOC_ENUM_FMT, &fmtdesc); + if (ret == ENOTTY) + return ret;This would be a failure: it can't return ENOTTY since that was already tested in the first test without the ALL flag. You can drop this test, since it will fail later.
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 338
Quoted 6 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +6
-0+ if (f == 0 && ret == EINVAL) + return 0; + if (ret == EINVAL) + break; + if (ret) + return fail("expected EINVAL, but got %d when enumerating buftype %d\n", ret, type);This will catch the ENOTTY.
Quoted 15 lines
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 351
Quoted 13 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +13
-0+ if (fmtdesc.index != f) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL hasn't been cleared from fmtdesc.index 0x%x f 0x%x\n", fmtdesc.index, f); + f++; + if (type == V4L2_BUF_TYPE_PRIVATE) + continue; + assert(type <= V4L2_BUF_TYPE_LAST); + if (enum_all.find(fmtdesc.pixelformat) != enum_all.end()) + return fail("duplicate format %08x (%s)\n", + fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); + enum_all[fmtdesc.pixelformat] = fmtdesc.flags; + } + /* if V4L2_FMTDESC_FLAG_ENUM_ALL is supported, verify that the list is a subset of VIDIOC_ENUM_FMT list */ + if (!enum_all.empty()) {You can drop this if. If
enum_allis empty, and map isn't, then it will just fail in the next for loop.
enum_all could be empty if V4L2_FMTDESC_FLAG_ENUM_ALL isn't supported and it shouldn't fail in this case.
Quoted 19 lines
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 356
Quoted 5 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +4
-0+ for (auto it = map.begin(); it != map.end(); it++) + if (enum_all.find(it->first) == enum_all.end()) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL failed to enumerate format %08x (%s)\n", it->first, fcc2s(it->first).c_str()); + } info("found %d formats for buftype %d\n", f, type);Note that f was reset above, so this info message should be moved up to just before the
V4L2_FMTDESC_FLAG_ENUM_ALLtest starts.But perhaps keep this info message here as well, just change it to:
info("found %d formats for buftype %d (with V4L2_FMTDESC_FLAG_ENUM_ALL)\n", f, type);Regards,
Hans
Quoted 2 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +0
-0return 0; }
Quoted 105 lines · Benjamin Gaignard
Le 31/07/2024 à 12:02, Hans Verkuil a écrit :
Quoted 103 lines · Benjamin Gaignard
Quoted 33 lines
If
V4L2_FMTDESC_FLAG_ENUM_ALLflag is supported, test if all pixel formats list withVIDIOC_ENUM_FMTwithout the flag been set is a subset of the list created with the flag.
Also Test that the flag is cleared after callingVIDIOC_ENUM_FMT.Signed-off-by Benjamin Gaignard <[email protected]>---
changes in version 2:
- Completely rework how the test it done.include/linux/videodev2.h | 3 ++ utils/common/v4l2-info.cpp | 1 + utils/v4l2-compliance/v4l2-test-formats.cpp | 36 +++++++++++++++++++++
3 files changed, 40 insertions(+)include/linux/videodev2.h +0
-0@@ -864,6 +864,9 @@ struct v4l2_fmtdesc { #define V4L2_FMT_FLAG_CSC_QUANTIZATION 0x0100 #define V4L2_FMT_FLAG_META_LINE_BASED 0x0200+/* Format description flag, to be ORed with the index */
include/linux/videodev2.h +2
-0+#define V4L2_FMTDESC_FLAG_ENUM_ALL 0x80000000 +/* Frame Size and frame rate enumeration */ /*
* F R A M E S I Z E E N U M E R A T I O Nutils/common/v4l2-info.cpp +0
-0utils/common/v4l2-info.cpp static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ · line 386
Quoted 4 lines
utils/common/v4l2-info.cpp +1
-0@@ -383,6 +383,7 @@ static constexpr flag_def fmtdesc_ ## enc_type ## _def[] = { \ { V4L2_FMT_FLAG_CSC_QUANTIZATION, "csc-quantization" }, \ { V4L2_FMT_FLAG_CSC_XFER_FUNC, "csc-xfer-func" }, \ { V4L2_FMT_FLAG_META_LINE_BASED, "meta-line-based" }, \ + { V4L2_FMTDESC_FLAG_ENUM_ALL, "enum-all-format" }, \Ah, no. This lists the possible flag of the flags field,
V4L2_FMTDESC_FLAG_ENUM_ALLdoesn't belong there.In fact, there is no need to add it at all since it is never reported.
But you do need to add support for it in v4l2-ctl: I think that the various --list-formats(-ext) options needs to check for an optional suboption 'all', which will set the new
V4L2_FMTDESC_FLAG_ENUM_ALLflag. That's a separate patch for v4l2-ctl.Quoted 20 lines
utils/common/v4l2-info.cpp +0
-0{ 0, NULL } \ };diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp index
fc16ad39..2b743da5100644utils/v4l2-compliance/v4l2-test-formats.cpp +3
-0@@ -224,6 +224,7 @@ static int testEnumFrameSizes(struct node *node, __u32 pixfmt) static int testEnumFormatsType(struct node *node, unsigned type) { pixfmt_map &map = node->buftype_pixfmts[type]; + pixfmt_map enum_all; struct v4l2_fmtdesc fmtdesc; unsigned f = 0; int ret;@@ -317,6 +318,41 @@ static int testEnumFormatsType(struct node *node, unsigned type) fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); map[fmtdesc.pixelformat] = fmtdesc.flags; } + + /* Test V4L2_FMTDESC_FLAG_ENUM_ALL if supported */utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 332
Quoted 10 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +10
-0+ f = 0; + for (;;) { + memset(&fmtdesc, 0xff, sizeof(fmtdesc)); + fmtdesc.type = type; + fmtdesc.index = f | V4L2_FMTDESC_FLAG_ENUM_ALL; + fmtdesc.mbus_code = 0; + + ret = doioctl(node, VIDIOC_ENUM_FMT, &fmtdesc); + if (ret == ENOTTY) + return ret;This would be a failure: it can't return ENOTTY since that was already tested in the first test without the ALL flag. You can drop this test, since it will fail later.
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 338
Quoted 6 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +6
-0+ if (f == 0 && ret == EINVAL) + return 0; + if (ret == EINVAL) + break; + if (ret) + return fail("expected EINVAL, but got %d when enumerating buftype %d\n", ret, type);This will catch the ENOTTY.
Quoted 13 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +13
-0+ if (fmtdesc.index != f) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL hasn't been cleared from fmtdesc.index 0x%x f 0x%x\n", fmtdesc.index, f); + f++; + if (type == V4L2_BUF_TYPE_PRIVATE) + continue; + assert(type <= V4L2_BUF_TYPE_LAST); + if (enum_all.find(fmtdesc.pixelformat) != enum_all.end()) + return fail("duplicate format %08x (%s)\n", + fmtdesc.pixelformat, fcc2s(fmtdesc.pixelformat).c_str()); + enum_all[fmtdesc.pixelformat] = fmtdesc.flags; + } + /* if V4L2_FMTDESC_FLAG_ENUM_ALL is supported, verify that the list is a subset of VIDIOC_ENUM_FMT list */ + if (!enum_all.empty()) {
Quoted 5 lines
Quoted 2 lines
You can drop this if. If
enum_allis empty, and map isn't, then it will just fail in the next for loop.
enum_allcould be empty ifV4L2_FMTDESC_FLAG_ENUM_ALLisn't supported and it shouldn't fail in this case.
But that is caught by the "if (f == 0 && ret == EINVAL)" check above. In that case it just returns 0.
Regards,
Hans
Quoted 20 lines
Quoted 20 lines
utils/v4l2-compliance/v4l2-test-formats.cpp static int testEnumFormatsType(struct node *node, unsigned type) · line 356
Quoted 6 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +4
-0+ for (auto it = map.begin(); it != map.end(); it++) + if (enum_all.find(it->first) == enum_all.end()) + return fail("V4L2_FMTDESC_FLAG_ENUM_ALL failed to enumerate format %08x (%s)\n", it->first, fcc2s(it->first).c_str()); + } info("found %d formats for buftype %d\n", f, type);Note that f was reset above, so this info message should be moved up to just before the
V4L2_FMTDESC_FLAG_ENUM_ALLtest starts.But perhaps keep this info message here as well, just change it to:
info("found %d formats for buftype %d (with V4L2_FMTDESC_FLAG_ENUM_ALL)\n", f, type);Regards,
Hans
Quoted 2 lines
utils/v4l2-compliance/v4l2-test-formats.cpp +0
-0return 0; }