aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJing Xiang <jxiang@marvell.com>2013-09-13 02:59:49 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 05:52:33 -0400
commit24586d8342ab27bc75e4560d71e98f3e5dc67d8e (patch)
tree1dcb69c811e16158522948ccb2272bfc47f8da0f /include
parentcc50bc5bb29a9b4f71913d0b36ab45c6055eafc0 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/video/mmp_disp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/video/mmp_disp.h b/include/video/mmp_disp.h
index 32094c052deb..9fd9398368d5 100644
--- a/include/video/mmp_disp.h
+++ b/include/video/mmp_disp.h
@@ -91,6 +91,11 @@ struct mmp_win {
91 u16 up_crop; 91 u16 up_crop;
92 u16 bottom_crop; 92 u16 bottom_crop;
93 int pix_fmt; 93 int pix_fmt;
94 /*
95 * pitch[0]: graphics/video layer line length or y pitch
96 * pitch[1]/pitch[2]: video u/v pitch if non-zero
97 */
98 u32 pitch[3];
94}; 99};
95 100
96struct mmp_addr { 101struct mmp_addr {