]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (11319): pxa_camera: Enforce YUV422P frame sizes to be 16 multiples
authorRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 31 Mar 2009 06:44:21 +0000 (03:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:43:44 +0000 (21:43 -0300)
commit92a8337b380f0978ac81f096d6324d3ad689f83e
tree8a09a2d450f168a16e346167dd57d06c410049f1
parentfedd73ccce8c77b677f8a9090feab8f8c6c9b03c
V4L/DVB (11319): pxa_camera: Enforce YUV422P frame sizes to be 16 multiples

Due to DMA constraints, the DMA chain always transfers bytes
from the QCI fifos to memory in 8 bytes units. In planar
formats, that could mean 0 padding between Y and U plane
(and between U and V plane), which is against YUV422P
standard.

Therefore, a frame size is required to be a multiple of 16
(so U plane size is a multiple of 8). It is enforced in
try_fmt() and set_fmt() primitives, be aligning height then
width on 4 multiples as need be, to reach a 16 multiple.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pxa_camera.c