aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/v4l2-test-colors.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-06-05 08:35:27 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2015-06-05 08:35:27 +0200
commitce866b157484771108294ec96346d442d5599c02 (patch)
tree1844bf6a3c8da3d79a97d902445b7458d27e76ef /utils/v4l2-compliance/v4l2-test-colors.cpp
parentb11a7ac323f6c30fa9eb772965880833f367c828 (diff)
v4l2-compliance: skip grayscale and other non-color formats
Don't do the color test for such formats since it does not apply. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-compliance/v4l2-test-colors.cpp')
-rw-r--r--utils/v4l2-compliance/v4l2-test-colors.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-colors.cpp b/utils/v4l2-compliance/v4l2-test-colors.cpp
index 903d0a44..4a7c1725 100644
--- a/utils/v4l2-compliance/v4l2-test-colors.cpp
+++ b/utils/v4l2-compliance/v4l2-test-colors.cpp
@@ -504,8 +504,19 @@ int testColorsAllFormats(struct node *node, unsigned component,
do {
if (fmtdesc.flags & V4L2_FMT_FLAG_COMPRESSED)
continue;
- if (fmtdesc.pixelformat == V4L2_PIX_FMT_GREY)
+ switch (fmtdesc.pixelformat) {
+ case V4L2_PIX_FMT_GREY:
+ case V4L2_PIX_FMT_Y4:
+ case V4L2_PIX_FMT_Y6:
+ case V4L2_PIX_FMT_Y10:
+ case V4L2_PIX_FMT_Y12:
+ case V4L2_PIX_FMT_Y16:
+ case V4L2_PIX_FMT_Y16_BE:
+ case V4L2_PIX_FMT_Y10BPACK:
+ case V4L2_PIX_FMT_PAL8:
+ case V4L2_PIX_FMT_UV8:
continue;
+ }
restoreFormat(node);

Privacy Policy