diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2012-06-12 09:46:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-18 19:48:14 -0300 |
commit | 0749ae350133204c2562c69f4265842141cacf12 (patch) | |
tree | 6ced0788cb6d280100aaee2463faf91d8c45e5ec /drivers/media | |
parent | afd14f48a732758d6fbbc3a5fc5b211742102c4b (diff) | |
download | linux-3.10-0749ae350133204c2562c69f4265842141cacf12.tar.gz linux-3.10-0749ae350133204c2562c69f4265842141cacf12.tar.bz2 linux-3.10-0749ae350133204c2562c69f4265842141cacf12.zip |
[media] v4l/s5p-mfc: added image size align in VIDIOC_TRY_FMT
Image size for MFC encoder should have size between
8x4 and 1920x1080 with even width and height.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/s5p-mfc/s5p_mfc_enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c index 9c19aa8038d..03d83340e7f 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c @@ -901,6 +901,8 @@ static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f) mfc_err("failed to try output format\n"); return -EINVAL; } + v4l_bound_align_image(&pix_fmt_mp->width, 8, 1920, 1, + &pix_fmt_mp->height, 4, 1080, 1, 0); } else { mfc_err("invalid buf type\n"); return -EINVAL; |