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/media/v4l2-mediabus.h | |
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/media/v4l2-mediabus.h')
-rw-r--r-- | include/media/v4l2-mediabus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-mediabus.h b/include/media/v4l2-mediabus.h index 59d7397fb0ea..38d960d8dccd 100644 --- a/include/media/v4l2-mediabus.h +++ b/include/media/v4l2-mediabus.h | |||
@@ -94,6 +94,8 @@ static inline void v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt, | |||
94 | pix_fmt->height = mbus_fmt->height; | 94 | pix_fmt->height = mbus_fmt->height; |
95 | pix_fmt->field = mbus_fmt->field; | 95 | pix_fmt->field = mbus_fmt->field; |
96 | pix_fmt->colorspace = mbus_fmt->colorspace; | 96 | pix_fmt->colorspace = mbus_fmt->colorspace; |
97 | pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; | ||
98 | pix_fmt->quantization = mbus_fmt->quantization; | ||
97 | } | 99 | } |
98 | 100 | ||
99 | static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt, | 101 | static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt, |
@@ -104,6 +106,8 @@ static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt, | |||
104 | mbus_fmt->height = pix_fmt->height; | 106 | mbus_fmt->height = pix_fmt->height; |
105 | mbus_fmt->field = pix_fmt->field; | 107 | mbus_fmt->field = pix_fmt->field; |
106 | mbus_fmt->colorspace = pix_fmt->colorspace; | 108 | mbus_fmt->colorspace = pix_fmt->colorspace; |
109 | mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; | ||
110 | mbus_fmt->quantization = pix_fmt->quantization; | ||
107 | mbus_fmt->code = code; | 111 | mbus_fmt->code = code; |
108 | } | 112 | } |
109 | 113 | ||