diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-03-31 08:44:21 +0200 |
---|---|---|
committer | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-03-31 08:44:21 +0200 |
commit | 6392c3238a48546c25590608a5a96a48e387e0d3 (patch) | |
tree | 2c7995bcab69671eee1efe6ad6644547ed7a98c6 /v4l2-apps/test | |
parent | 868c60ab580a0b1d3939600a6b9522886982528b (diff) | |
download | mediapointer-dvb-s2-6392c3238a48546c25590608a5a96a48e387e0d3.tar.gz mediapointer-dvb-s2-6392c3238a48546c25590608a5a96a48e387e0d3.tar.bz2 |
pxa_camera: Enforce YUV422P frame sizes to be 16 multiples
From: Robert Jarzmik <robert.jarzmik@free.fr>
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>
---
drivers/media/video/pxa_camera.c | 32 +++++++++++++++++++++-----------
1 files changed, 21 insertions(+), 11 deletions(-)
Diffstat (limited to 'v4l2-apps/test')
0 files changed, 0 insertions, 0 deletions