[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
d5735d64e1
commit
11ff030c73
@@ -22,6 +22,8 @@
|
||||
* @code: data format code (from enum v4l2_mbus_pixelcode)
|
||||
* @field: used interlacing type (from enum v4l2_field)
|
||||
* @colorspace: colorspace of the data (from enum v4l2_colorspace)
|
||||
* @ycbcr_enc: YCbCr encoding of the data (from enum v4l2_ycbcr_encoding)
|
||||
* @quantization: quantization of the data (from enum v4l2_quantization)
|
||||
*/
|
||||
struct v4l2_mbus_framefmt {
|
||||
__u32 width;
|
||||
@@ -29,7 +31,9 @@ struct v4l2_mbus_framefmt {
|
||||
__u32 code;
|
||||
__u32 field;
|
||||
__u32 colorspace;
|
||||
__u32 reserved[7];
|
||||
__u32 ycbcr_enc;
|
||||
__u32 quantization;
|
||||
__u32 reserved[5];
|
||||
};
|
||||
|
||||
#ifndef __KERNEL__
|
||||
|
Reference in New Issue
Block a user