diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2011-01-19 15:25:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-19 15:25:45 +0000 |
commit | 4c4ad555564a80311df1a4b762eb1e119c6d95fb (patch) | |
tree | 50b7ba525e431593407ad5c86840fb65fdda5634 | |
parent | 5a22bc999de8555f26c639eaffbe73b680746174 (diff) |
Correct offset of planes within clipped window
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=24767
Reported-and-tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/intel_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_video.c b/src/intel_video.c index 2786201c..0d1ffc57 100644 --- a/src/intel_video.c +++ b/src/intel_video.c @@ -996,7 +996,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv, /* Copy V data for YV12, or U data for I420 */ src2 = buf + /* start of YUV data */ (srcH * srcPitch) + /* move over Luma plane */ - ((top * srcPitch) >> 2) + /* move down from by top lines */ + ((top >> 1) * srcPitch) + /* move down from by top lines */ (left >> 1); /* move left by left pixels */ #if 0 @@ -1015,7 +1015,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv, src3 = buf + /* start of YUV data */ (srcH * srcPitch) + /* move over Luma plane */ ((srcH >> 1) * srcPitch2) + /* move over Chroma plane */ - ((top * srcPitch) >> 2) + /* move down from by top lines */ + ((top >> 1) * srcPitch) + /* move down from by top lines */ (left >> 1); /* move left by left pixels */ #if 0 ErrorF("src3 is %p, offset is %ld\n", src3, |