Commit 56dd962d authored by mhoffman's avatar mhoffman

correct chroma skewing bug, caused by incorrect stride adjustments

git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@23601 b3059339-0415-0410-9bf9-f77b7e298cf2
parent d849d2c8
...@@ -476,24 +476,26 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8 ...@@ -476,24 +476,26 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8
r1 = [fp + ARG_srcStride]; r1 = [fp + ARG_srcStride];
r2 = r0 + r1; r2 = r0 + r1;
r1 += -16; r1 += -8;
m0 = r1; m0 = r1;
i0 = r0; // uyvy_T even i0 = r0; // uyvy_T even
i1 = r2; // uyvy_B odd i1 = r2; // uyvy_B odd
r2 = [fp + ARG_chromStride];
m1 = r2;
p2 = [fp + ARG_lumStride]; p2 = [fp + ARG_lumStride];
p1 = p0 + p2; // Y bot odd p1 = p0 + p2; // Y bot odd
p2 += -4;
p5 = [fp + ARG_width]; p5 = [fp + ARG_width];
p4 = [fp + ARG_height]; p4 = [fp + ARG_height];
r0 = p5;
p4 = p4 >> 1; p4 = p4 >> 1;
p5 = p5 >> 2; p5 = p5 >> 2;
r2 = [fp + ARG_chromStride];
r0 = r0 >> 1;
r2 = r2 - r0;
m1 = r2;
r6.l = w[i2--]; r6.l = w[i2]; r6.l = w[i2--]; r6.l = w[i2];
r6.h = w[i3--]; r6.h = w[i3]; r6.h = w[i3--]; r6.h = w[i3];
/* I0,I1 - src input line pointers /* I0,I1 - src input line pointers
...@@ -521,6 +523,8 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8 ...@@ -521,6 +523,8 @@ DEFUN(uyvytoyv12, mL3, (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8
i0 += m0; i0 += m0;
i1 += m0; i1 += m0;
i2 += m1;
i3 += m1;
p0 = p0 + p2; p0 = p0 + p2;
1: p1 = p1 + p2; 1: p1 = p1 + p2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment