History

[media] v4l2-mediabus: improve colorspace support

Add and copy the new ycbcr_enc and quantization fields.

Hans Verkuil committed 11 years ago

Commit 11ff0301 parent d5735d62 files · +9 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/v4l2-mediabus.h+5−1
@@ -22,6 +22,8 @@ · 21 unmodified lines
2222 * @code: data format code (from enum v4l2_mbus_pixelcode)
2323 * @field: used interlacing type (from enum v4l2_field)
2424 * @colorspace: colorspace of the data (from enum v4l2_colorspace)
25+ * @ycbcr_enc: YCbCr encoding of the data (from enum v4l2_ycbcr_encoding)
26+ * @quantization: quantization of the data (from enum v4l2_quantization)
2527 */
2628 struct v4l2_mbus_framefmt {
2729 __u32 width;
@@ -29,7 +31,9 @@ struct v4l2_mbus_framefmt { · 1 unmodified line
2931 __u32 code;
3032 __u32 field;
3133 __u32 colorspace;
32− __u32 reserved[7];
34+ __u32 ycbcr_enc;
35+ __u32 quantization;
36+ __u32 reserved[5];
3337 };
3438
3539 #ifndef __KERNEL__