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 | 953d03eaa6a48726291126a512da56846b71f3ec (patch) | |
tree | 28a5538fdfbecb418966cefb0cf878d3e0380386 /v4l2-apps/libv4l2util/v4l2_driver.c | |
parent | 6392c3238a48546c25590608a5a96a48e387e0d3 (diff) | |
download | mediapointer-dvb-s2-953d03eaa6a48726291126a512da56846b71f3ec.tar.gz mediapointer-dvb-s2-953d03eaa6a48726291126a512da56846b71f3ec.tar.bz2 |
pxa_camera: Remove YUV planar formats hole
From: Robert Jarzmik <robert.jarzmik@free.fr>
All planes were PAGE aligned (ie. 4096 bytes aligned). This
is not consistent with YUV422 format, which requires Y, U
and V planes glued together. The new implementation forces
the alignement on 8 bytes (DMA requirement), which is almost
always the case (granted by width x height being a multiple
of 8).
The test cases include tests in both YUV422 and RGB565 :
- a picture of size 111 x 111 (cross RAM pages example)
- a picture of size 1023 x 4 in (under 1 RAM page)
- a picture of size 1024 x 4 in (exactly 1 RAM page)
- a picture of size 1025 x 4 in (over 1 RAM page)
- a picture of size 1280 x 1024 (many RAM pages)
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
drivers/media/video/pxa_camera.c | 145 +++++++++++++++++++++++++++----------
1 files changed, 106 insertions(+), 39 deletions(-)
Diffstat (limited to 'v4l2-apps/libv4l2util/v4l2_driver.c')
0 files changed, 0 insertions, 0 deletions