diff options
author | Dafna Hirschfeld <dafna3@gmail.com> | 2019-01-21 14:46:14 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-26 00:03:05 +0300 |
commit | 9e812549883730f559cdd95d0c05419f5bfa3713 (patch) | |
tree | 81c09c9c57777759dd408f43aac43a12b77002a3 /drivers/media/platform/vicodec/codec-v4l2-fwht.h | |
parent | 8c1d02f140182fcd7cbecc77db68c2b5181c266f (diff) | |
download | linux-9e812549883730f559cdd95d0c05419f5bfa3713.tar.xz |
media: vicodec: add support for CROP and COMPOSE selection
Add support for the selection api for the crop and compose targets.
The driver rounds up the coded width and height such that
all planes dimensions are multiple of 8.
Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vicodec/codec-v4l2-fwht.h')
-rw-r--r-- | drivers/media/platform/vicodec/codec-v4l2-fwht.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/platform/vicodec/codec-v4l2-fwht.h b/drivers/media/platform/vicodec/codec-v4l2-fwht.h index 685b665590c1..203c45d98905 100644 --- a/drivers/media/platform/vicodec/codec-v4l2-fwht.h +++ b/drivers/media/platform/vicodec/codec-v4l2-fwht.h @@ -24,8 +24,11 @@ struct v4l2_fwht_pixfmt_info { struct v4l2_fwht_state { const struct v4l2_fwht_pixfmt_info *info; - unsigned int width; - unsigned int height; + unsigned int visible_width; + unsigned int visible_height; + unsigned int coded_width; + unsigned int coded_height; + unsigned int stride; unsigned int gop_size; unsigned int gop_cnt; u16 i_frame_qp; |