• Frank Barchard's avatar
    Fix memory overwrite in YUY2ToNV12 odd wdiths · 58cb5349
    Frank Barchard authored
    When width was odd Y channel wrote an extra pixel.
    This change splits the Y from UV into a temporary
    buffer and memcpy's to the destination.  Performance
    is slower.
    
    Was
    YUY2ToNV12_Any (307 ms)
    YUY2ToNV12_Unaligned (213 ms)
    TestYUY2ToNV12 (181 ms)
    YUY2ToNV12_Opt (177 ms)
    YUY2ToNV12_Invert (177 ms)
    
    Npw
    YUY2ToNV12_Any (300 ms)
    YUY2ToNV12_Unaligned (226 ms)
    YUY2ToNV12_Invert (206 ms)
    TestYUY2ToNV12 (184 ms)
    YUY2ToNV12_Opt (181 ms)
    TBR=harryjin@google.com
    BUG=libyuv:545
    
    Review URL: https://codereview.chromium.org/1593833002 .
    58cb5349
Name
Last commit
Last update
..
compare.cc Loading commit data...
compare_common.cc Loading commit data...
compare_gcc.cc Loading commit data...
compare_neon.cc Loading commit data...
compare_neon64.cc Loading commit data...
compare_win.cc Loading commit data...
convert.cc Loading commit data...
convert_argb.cc Loading commit data...
convert_from.cc Loading commit data...
convert_from_argb.cc Loading commit data...
convert_jpeg.cc Loading commit data...
convert_to_argb.cc Loading commit data...
convert_to_i420.cc Loading commit data...
cpu_id.cc Loading commit data...
mjpeg_decoder.cc Loading commit data...
mjpeg_validate.cc Loading commit data...
planar_functions.cc Loading commit data...
rotate.cc Loading commit data...
rotate_any.cc Loading commit data...
rotate_argb.cc Loading commit data...
rotate_common.cc Loading commit data...
rotate_gcc.cc Loading commit data...
rotate_mips.cc Loading commit data...
rotate_neon.cc Loading commit data...
rotate_neon64.cc Loading commit data...
rotate_win.cc Loading commit data...
row_any.cc Loading commit data...
row_common.cc Loading commit data...
row_gcc.cc Loading commit data...
row_mips.cc Loading commit data...
row_neon.cc Loading commit data...
row_neon64.cc Loading commit data...
row_win.cc Loading commit data...
scale.cc Loading commit data...
scale_any.cc Loading commit data...
scale_argb.cc Loading commit data...
scale_common.cc Loading commit data...
scale_gcc.cc Loading commit data...
scale_mips.cc Loading commit data...
scale_neon.cc Loading commit data...
scale_neon64.cc Loading commit data...
scale_win.cc Loading commit data...
video_common.cc Loading commit data...