diff options
author | Jing Xiang <jxiang@marvell.com> | 2013-09-13 14:59:49 +0800 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-20 12:52:33 +0300 |
commit | 24586d8342ab27bc75e4560d71e98f3e5dc67d8e (patch) | |
tree | 1dcb69c811e16158522948ccb2272bfc47f8da0f /include/video/mmp_disp.h | |
parent | cc50bc5bb29a9b4f71913d0b36ab45c6055eafc0 (diff) | |
download | linux-24586d8342ab27bc75e4560d71e98f3e5dc67d8e.tar.gz linux-24586d8342ab27bc75e4560d71e98f3e5dc67d8e.tar.bz2 linux-24586d8342ab27bc75e4560d71e98f3e5dc67d8e.zip |
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/video/mmp_disp.h')
-rw-r--r-- | include/video/mmp_disp.h | 5 |
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 { u16 up_crop; u16 bottom_crop; int pix_fmt; + /* + * pitch[0]: graphics/video layer line length or y pitch + * pitch[1]/pitch[2]: video u/v pitch if non-zero + */ + u32 pitch[3]; }; struct mmp_addr { |