• 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
..
testdata Loading commit data...
basictypes_test.cc Loading commit data...
color_test.cc Loading commit data...
compare_test.cc Loading commit data...
convert_test.cc Loading commit data...
cpu_test.cc Loading commit data...
math_test.cc Loading commit data...
planar_test.cc Loading commit data...
rotate_argb_test.cc Loading commit data...
rotate_test.cc Loading commit data...
scale_argb_test.cc Loading commit data...
scale_test.cc Loading commit data...
unit_test.cc Loading commit data...
unit_test.h Loading commit data...
version_test.cc Loading commit data...
video_common_test.cc Loading commit data...