[PATCH] v4l2-compliance: Add handling for QC08C and QC10C format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 utils/v4l2-compliance/v4l2-compliance.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

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;
 			}
-- 
2.7.4




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux