hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/include/uapi/linux/v4l2-mediabus.h
....@@ -16,6 +16,8 @@
1616 #include <linux/types.h>
1717 #include <linux/videodev2.h>
1818
19
+#define V4L2_MBUS_FRAMEFMT_SET_CSC 0x0001
20
+
1921 /**
2022 * struct v4l2_mbus_framefmt - frame format on the media bus
2123 * @width: image width
....@@ -24,8 +26,11 @@
2426 * @field: used interlacing type (from enum v4l2_field)
2527 * @colorspace: colorspace of the data (from enum v4l2_colorspace)
2628 * @ycbcr_enc: YCbCr encoding of the data (from enum v4l2_ycbcr_encoding)
29
+ * @hsv_enc: HSV encoding of the data (from enum v4l2_hsv_encoding)
2730 * @quantization: quantization of the data (from enum v4l2_quantization)
2831 * @xfer_func: transfer function of the data (from enum v4l2_xfer_func)
32
+ * @flags: flags (V4L2_MBUS_FRAMEFMT_*)
33
+ * @reserved: reserved bytes that can be later used
2934 */
3035 struct v4l2_mbus_framefmt {
3136 __u32 width;
....@@ -33,10 +38,16 @@
3338 __u32 code;
3439 __u32 field;
3540 __u32 colorspace;
36
- __u16 ycbcr_enc;
41
+ union {
42
+ /* enum v4l2_ycbcr_encoding */
43
+ __u16 ycbcr_enc;
44
+ /* enum v4l2_hsv_encoding */
45
+ __u16 hsv_enc;
46
+ };
3747 __u16 quantization;
3848 __u16 xfer_func;
39
- __u16 reserved[11];
49
+ __u16 flags;
50
+ __u16 reserved[10];
4051 };
4152
4253 #ifndef __KERNEL__