diff mbox series

v4l2-compliance: Add handling for QC08C and QC10C format

Message ID 1679670278-12553-1-git-send-email-quic_dikshita@quicinc.com
State New
Headers show
Series v4l2-compliance: Add handling for QC08C and QC10C format | expand

Commit Message

Dikshita Agarwal March 24, 2023, 3:04 p.m. UTC
Add QC08C and QC10C color formats while determining the codec mask
as these two formats are defined as compressed formats.

Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
---
 utils/v4l2-compliance/v4l2-compliance.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 830c257..e3556b1 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -553,6 +553,10 @@  static void determine_codec_mask(struct node &node)
 				mask |= STATELESS_ENCODER;
 				break;
 #endif
+			case V4L2_PIX_FMT_QC08C:
+			case V4L2_PIX_FMT_QC10C:
+				num_compressed_cap_fmts--;
+				break;
 			default:
 				return;
 			}
@@ -596,6 +600,10 @@  static void determine_codec_mask(struct node &node)
 			case V4L2_PIX_FMT_FWHT_STATELESS:
 				mask |= STATELESS_DECODER;
 				break;
+			case V4L2_PIX_FMT_QC08C:
+			case V4L2_PIX_FMT_QC10C:
+				num_compressed_out_fmts--;
+				break;
 			default:
 				return;
 			}