diff options
| author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-17 07:10:33 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-01 12:34:55 -0500 |
| commit | 11ff030c73655ecd7b153c6bd00d26d27e6cc199 (patch) | |
| tree | 93043fe01401bf417a7c17d343e912034d7b4607 /include/uapi/linux | |
| parent | d5735d64e1cebb3748e64f926fa7c35ffabd7afa (diff) | |
[media] v4l2-mediabus: improve colorspace support
Add and copy the new ycbcr_enc and quantization fields.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/v4l2-mediabus.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/linux/v4l2-mediabus.h b/include/uapi/linux/v4l2-mediabus.h index b1934a3961e4..5a86d8ede09c 100644 --- a/include/uapi/linux/v4l2-mediabus.h +++ b/include/uapi/linux/v4l2-mediabus.h | |||
| @@ -22,6 +22,8 @@ | |||
| 22 | * @code: data format code (from enum v4l2_mbus_pixelcode) | 22 | * @code: data format code (from enum v4l2_mbus_pixelcode) |
| 23 | * @field: used interlacing type (from enum v4l2_field) | 23 | * @field: used interlacing type (from enum v4l2_field) |
| 24 | * @colorspace: colorspace of the data (from enum v4l2_colorspace) | 24 | * @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) | ||
| 25 | */ | 27 | */ |
| 26 | struct v4l2_mbus_framefmt { | 28 | struct v4l2_mbus_framefmt { |
| 27 | __u32 width; | 29 | __u32 width; |
| @@ -29,7 +31,9 @@ struct v4l2_mbus_framefmt { | |||
| 29 | __u32 code; | 31 | __u32 code; |
| 30 | __u32 field; | 32 | __u32 field; |
| 31 | __u32 colorspace; | 33 | __u32 colorspace; |
| 32 | __u32 reserved[7]; | 34 | __u32 ycbcr_enc; |
| 35 | __u32 quantization; | ||
| 36 | __u32 reserved[5]; | ||
| 33 | }; | 37 | }; |
| 34 | 38 | ||
| 35 | #ifndef __KERNEL__ | 39 | #ifndef __KERNEL__ |
