linux-kernel-test/Documentation/DocBook/media
Hans Verkuil cc7d2dfb75 [media] v4l2_plane_pix_format: use __u32 bytesperline instead of __u16
While running v4l2-compliance tests on vivid I suddenly got errors due to
a call to vmalloc_user with size 0 from vb2.

Digging deeper into the cause I discovered that this was due to the fact that
struct v4l2_plane_pix_format defines bytesperline as a __u16 instead of a __u32.

The test I was running selected a format of 4 * 4096 by 4 * 2048 with a 32
bit pixelformat.

So bytesperline was 4 * 4 * 4096 = 65536, which becomes 0 in a __u16. And
bytesperline * height is suddenly 0 as well. While the vivid driver may be
a virtual driver, it is to be expected that this limit will be hit for real
hardware as well in the near future: 8k deep-color video will already reach
it.

The solution is to change the type to __u32. The only drivers besides vivid
that use the multiplanar API are little-endian ARM and SH platforms (exynos,
ti-vpe, vsp1), so this is safe.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-02 23:54:47 -03:00
..
dvb [media] Documentation: FE_SET_PROPERTY requires R/W 2014-10-30 09:06:23 -02:00
v4l [media] v4l2_plane_pix_format: use __u32 bytesperline instead of __u16 2015-04-02 23:54:47 -03:00
bayer.png.b64
constraints.png.b64 [media] doc: v4l: add binary images for selection API 2012-01-10 23:17:55 -02:00
crop.gif.b64
dvbstb.png.b64
fieldseq_bt.gif.b64
fieldseq_tb.gif.b64
Makefile DocBook: Reduce noise from make cleandocs 2014-10-22 11:50:30 -04:00
nv12mt_example.gif.b64
nv12mt.gif.b64
pipeline.png.b64
selection.png.b64 [media] doc: v4l: add binary images for selection API 2012-01-10 23:17:55 -02:00
vbi_525.gif.b64
vbi_625.gif.b64
vbi_hsync.gif.b64