mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
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.
This commit is contained in:
parent
44ff3c333d
commit
72a235af9f
@ -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); \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user