Skip to contentSkip to conversation

video: mmp: add pitch info in mmp_win structure

PATCH Superseded Jett.Zhou 2 participants 2 messages Jun 9, 2013 Framebuffer layer

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jett.Zhou

author
#0 lore raw

PATCH 5/7 video: mmp: add pitch info in mmp_win structure

From: Jing Xiang <[email protected]>

Add pitch length info of graphics/video layer for mmp_win, if it is YUV format of video layer, u/v pitch will non-zero.

---
 include/video/mmp_disp.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/video/mmp_disp.h +3 -0
index b9dd1fb..5708d26 100644
@@ -91,6 +91,9 @@ 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 {
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 5/7 video: mmp: add pitch info in mmp_win structure

Hello.

Quoted 16 lines · Jett.Zhou

From: Jing Xiang <[email protected]>

Add pitch length info of graphics/video layer for mmp_win, if it is YUV format of video layer, u/v pitch will non-zero.

---
  include/video/mmp_disp.h |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
include/video/mmp_disp.h +0 -0
index b9dd1fb..5708d26 100644

include/video/mmp_disp.h struct mmp_win { · line 95

Quoted 5 lines
include/video/mmp_disp.h +2 -0
@@ -91,6 +91,9 @@ 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 */

The preferred format for multi-line comments is this:

/*
* bla
* bla
*/

include/video/mmp_disp.h struct mmp_win { · line 97

Quoted 2 lines
include/video/mmp_disp.h +1 -0
+	u32	pitch[3];
  };

WBR, Sergei