]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
video: mmp: add pitch info in mmp_win structure
authorJing Xiang <jxiang@marvell.com>
Fri, 13 Sep 2013 06:59:49 +0000 (14:59 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 20 Sep 2013 09:52:33 +0000 (12:52 +0300)
commit24586d8342ab27bc75e4560d71e98f3e5dc67d8e
tree1dcb69c811e16158522948ccb2272bfc47f8da0f
parentcc50bc5bb29a9b4f71913d0b36ab45c6055eafc0
video: mmp: add pitch info in mmp_win structure

Add pitch length info of graphics/video layer, pitch is used
to represent line length in byte, the usage depends on pix_fmt.
If the fmt is YUV, the pitch[0] will be Y length,pitch[1]
will be U length, pitch[2] will be V lenth.
If the fmt is RGB, the picth[0] will be line lenth, and
pitch[1]/pitch[2] will be 0 and not be used.

Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/mmp/fb/mmpfb.c
drivers/video/mmp/hw/mmp_ctrl.c
include/video/mmp_disp.h