]> asedeno.scripts.mit.edu Git - linux.git/commit
media: vivid: add vertical down sampling to imagesize calc
authorAndré Almeida <andre.almeida@collabora.com>
Mon, 4 Feb 2019 17:37:33 +0000 (12:37 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 17:24:03 +0000 (12:24 -0500)
commita442940534b77f3892dd629c12b0d01e65d4f314
treee15c155e3db1f26c20aed340117ffa42e1b79ec6
parentadc589d2a20808fb99d46a78175cd023f2040338
media: vivid: add vertical down sampling to imagesize calc

To correctly set the size of the image in a plane, it's needed
to divide the height of image by the vertical down sampling factor.
This was only happening in vivid_try_fmt_vid_cap(), but now it
applied in others sizeimage calculations as well.

Signed-off-by: André Almeida <andre.almeida@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-cap.c