aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/v4l2-test-colors.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-03-21 11:09:07 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2015-03-21 11:09:07 +0100
commit080a2f5f7d2096e412bef945d875f814085f8718 (patch)
tree6ffa2888649ebe0b1cfc369977e3e1b3aeb6f2ef /utils/v4l2-compliance/v4l2-test-colors.cpp
parentc5d44eb766a3d8936bc8550c8c1817d0a01dd76e (diff)
v4l2-compliance: always skip compressed formats
Simplify weird check: we can't parse compressed formats, so skip them unconditionally. 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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-colors.cpp b/utils/v4l2-compliance/v4l2-test-colors.cpp
index 882f2d83..903d0a44 100644
--- a/utils/v4l2-compliance/v4l2-test-colors.cpp
+++ b/utils/v4l2-compliance/v4l2-test-colors.cpp
@@ -502,8 +502,7 @@ int testColorsAllFormats(struct node *node, unsigned component,
if (node->enum_fmt(fmtdesc, true))
return 0;
do {
- if ((fmtdesc.flags & V4L2_FMT_FLAG_COMPRESSED) &&
- (node->g_direct() || fmtdesc.pixelformat != V4L2_PIX_FMT_MJPEG))
+ if (fmtdesc.flags & V4L2_FMT_FLAG_COMPRESSED)
continue;
if (fmtdesc.pixelformat == V4L2_PIX_FMT_GREY)
continue;

Privacy Policy