• Frank Barchard's avatar
    bug fix for odd width 16/24 bit to i420 · 90335f60
    Frank Barchard authored
    A bug was introduced on arm when the code for 'any' width switch to
    a temporary stack buffer and simd.
    The C version handles odd width by doing 1 pixel, instead of averaging 2.
    But the SIMD any version is supposed to replicate the last pixel, then
    the subsampling in Neon will average the pixel with itself, producing
    the same result.
    The previous version did this, but only for ARGB 32 bit, which was to
    avoid introducing issues with subsampled YUY2 source.  This CL adds
    replication for RGB 16 bit values.
    
    TBR=harryjin@google.com
    BUG=libyuv:510
    
    Review URL: https://codereview.chromium.org/1418983003 .
    90335f60
row_any.cc 37.5 KB