Commit 72a235af authored by Frank Barchard's avatar Frank Barchard

repeat y for yuy2 so that unittests that check the 2nd y on odd widths will…

repeat y for yuy2 so that unittests that check the 2nd y on odd widths will match the C and SIMD.  The C code duplicates the last Y.

R=harryjin@google.com
BUG=libyuv:455

Review URL: https://webrtc-codereview.appspot.com/50249004.
parent 44ff3c33
......@@ -38,6 +38,9 @@ static void fmemcpy(uint8* d, const uint8* s, int len) {
I420TORGB_SIMD(y_buf, u_buf, v_buf, rgb_buf, n); \
} \
fmemcpy(temp, y_buf + n, r); \
if (width & 1) { \
temp[r] = temp[r - 1]; /* repeat last Y for subsampling */ \
} \
fmemcpy(temp + 64, u_buf + (n >> UVSHIFT), SS(r, UVSHIFT)); \
fmemcpy(temp + 128, v_buf + (n >> UVSHIFT), SS(r, UVSHIFT)); \
I420TORGB_SIMD(temp, temp + 64, temp + 128, temp + 192, MASK + 1); \
......
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