diff options
author | Marc Hoffman <mmhoffm@gmail.com> | 2007-06-22 00:07:55 +0000 |
---|---|---|
committer | Marc Hoffman <mmhoffm@gmail.com> | 2007-06-22 00:07:55 +0000 |
commit | 45eeae39ac0978e97a7cb1703fa9f961894ce327 (patch) | |
tree | c84774494c2bab08b13d97af3765765df6b83435 | |
parent | 43399718fb15d7c3a4cd91b508f8e3898a2a693c (diff) | |
download | ffmpeg-45eeae39ac0978e97a7cb1703fa9f961894ce327.tar.gz |
correct chroma skewing bug, caused by incorrect stride adjustments
Originally committed as revision 23601 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/internal_bfin.S | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libswscale/internal_bfin.S b/libswscale/internal_bfin.S index c413f2f879..9ed98c38eb 100644 --- a/libswscale/internal_bfin.S +++ b/libswscale/internal_bfin.S @@ -476,24 +476,26 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8 r1 = [fp + ARG_srcStride]; r2 = r0 + r1; - r1 += -16; + r1 += -8; m0 = r1; i0 = r0; // uyvy_T even i1 = r2; // uyvy_B odd - r2 = [fp + ARG_chromStride]; - m1 = r2; - p2 = [fp + ARG_lumStride]; p1 = p0 + p2; // Y bot odd - p2 += -4; p5 = [fp + ARG_width]; p4 = [fp + ARG_height]; + r0 = p5; p4 = p4 >> 1; p5 = p5 >> 2; + r2 = [fp + ARG_chromStride]; + r0 = r0 >> 1; + r2 = r2 - r0; + m1 = r2; + r6.l = w[i2--]; r6.l = w[i2]; r6.h = w[i3--]; r6.h = w[i3]; /* I0,I1 - src input line pointers @@ -521,6 +523,8 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8 i0 += m0; i1 += m0; + i2 += m1; + i3 += m1; p0 = p0 + p2; 1: p1 = p1 + p2; |