• Frank Barchard's avatar
    Add LibYUVConvertTest.TestH010ToAR30 unittest · 37f97210
    Frank Barchard authored
    Tests accuracy of H010ToAR30 on grey scale ramp against float
    and computes a histogram to detect number of unique shades for
    each channel.
    
    With 2 step intermediate using 8 bit RGB, the test shows 256
    unique values.
    
    [ RUN      ] LibYUVConvertTest.TestH420ToARGB
    uniques: B 220, G, 220, R 220
    [       OK ] LibYUVConvertTest.TestH420ToARGB (0 ms)
    [ RUN      ] LibYUVConvertTest.TestH010ToARGB
    uniques: B 256, G, 256, R 256
    [       OK ] LibYUVConvertTest.TestH010ToARGB (0 ms)
    [ RUN      ] LibYUVConvertTest.TestH010ToAR30
    uniques: B 256, G, 256, R 256
    [       OK ] LibYUVConvertTest.TestH010ToAR30 (0 ms)
    
    Bug: libyuv:751
    Test  LibYUVConvertTest.TestH010ToAR30 unittest
    
    Change-Id: I6b1e1209247cb00b79b594127b02dae5217dc400
    Reviewed-on: https://chromium-review.googlesource.com/875317Reviewed-by: 's avatarMiguel Casas <mcasas@chromium.org>
    Commit-Queue: Frank Barchard <fbarchard@chromium.org>
    37f97210
Name
Last commit
Last update
build_overrides Loading commit data...
docs Loading commit data...
include Loading commit data...
infra/config Loading commit data...
source Loading commit data...
tools_libyuv Loading commit data...
unit_test Loading commit data...
util Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
AUTHORS Loading commit data...
Android.bp Loading commit data...
Android.mk Loading commit data...
BUILD.gn Loading commit data...
CM_linux_packages.cmake 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...
README.md Loading commit data...
all.gyp Loading commit data...
cleanup_links.py Loading commit data...
codereview.settings Loading commit data...
download_vs_toolchain.py Loading commit data...
gyp_libyuv Loading commit data...
gyp_libyuv.py Loading commit data...
libyuv.gni 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...
pylintrc Loading commit data...
winarm.mk Loading commit data...