• 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
chromium Loading commit data...
include Loading commit data...
source Loading commit data...
third_party/gflags Loading commit data...
tools Loading commit data...
unit_test Loading commit data...
util Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
AUTHORS Loading commit data...
Android.mk Loading commit data...
BUILD.gn Loading commit data...
CMakeLists.txt Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE_THIRD_PARTY Loading commit data...
OWNERS Loading commit data...
PATENTS Loading commit data...
PRESUBMIT.py Loading commit data...
README.chromium Loading commit data...
all.gyp Loading commit data...
codereview.settings Loading commit data...
download_vs_toolchain.py Loading commit data...
drover.properties Loading commit data...
gyp_libyuv Loading commit data...
gyp_libyuv.py Loading commit data...
libyuv.gyp Loading commit data...
libyuv.gypi Loading commit data...
libyuv_nacl.gyp Loading commit data...
libyuv_test.gyp Loading commit data...
linux.mk Loading commit data...
public.mk Loading commit data...
setup_links.py Loading commit data...
sync_chromium.py Loading commit data...
winarm.mk Loading commit data...