diff options
author | 2014-11-17 09:10:33 -0300 | |
---|---|---|
committer | 2014-12-01 15:34:55 -0200 | |
commit | 11ff030c73655ecd7b153c6bd00d26d27e6cc199 (patch) | |
tree | 93043fe01401bf417a7c17d343e912034d7b4607 /include/media | |
parent | [media] videodev2.h: improve colorspace support (diff) | |
download | linux-11ff030c73655ecd7b153c6bd00d26d27e6cc199.tar.gz linux-11ff030c73655ecd7b153c6bd00d26d27e6cc199.tar.bz2 linux-11ff030c73655ecd7b153c6bd00d26d27e6cc199.zip |
[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')
-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, pix_fmt->height = mbus_fmt->height; pix_fmt->field = mbus_fmt->field; pix_fmt->colorspace = mbus_fmt->colorspace; + pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; + pix_fmt->quantization = mbus_fmt->quantization; } 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, mbus_fmt->height = pix_fmt->height; mbus_fmt->field = pix_fmt->field; mbus_fmt->colorspace = pix_fmt->colorspace; + mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; + mbus_fmt->quantization = pix_fmt->quantization; mbus_fmt->code = code; } |