libyuv/unit_test
Frank Barchard 1cebe2c622 TestHammingDistance_Opt to test low level matches C reference.
The low level hamming distance functions have size limitations
based on counter sizes.  The higher level calls the low level
in blocks that avoid overflow and then accumulators in int64.
This test compares the results of the low levels to the high
level and against a known value (all ones) to ensure the
count is correct for any specified size.
The the size is very large, the result is expected to be
different.

Bug: libyuv:701
Test: TestHammingDistance_Opt
Change-Id: I6716af7cd09ac4d88a8afa25bc845a1b62af7c93
Reviewed-on: https://chromium-review.googlesource.com/710800
Reviewed-by: Frank Barchard <fbarchard@google.com>
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@google.com>
2017-10-11 20:21:31 +00:00
..
testdata Detect asimd as same as Neon for Arm features. Used on Juno aarch64 linux. 2014-09-22 18:30:17 +00:00
basictypes_test.cc break up unittests into categories 2015-10-13 16:01:07 -07:00
color_test.cc Step thru full color test by increments of 5 for better test speed. 2017-09-19 02:01:53 +00:00
compare_test.cc TestHammingDistance_Opt to test low level matches C reference. 2017-10-11 20:21:31 +00:00
convert_test.cc Roll chromium_revision da7cc8ca4c..ce95e5d83f (465147:465389) 2017-04-18 22:40:59 +00:00
cpu_test.cc lint warning fixes for CpuID 2017-05-25 22:00:17 +00:00
cpu_thread_test.cc MaskCpuFlags return cpuinfo so InitCpuFlags can call it 2017-05-24 22:27:03 +00:00
math_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
planar_test.cc Hamming Distance SSE2 and AVX2 optimized 2017-10-02 22:32:54 +00:00
rotate_argb_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
rotate_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
scale_argb_test.cc scale test clipping code unused cpu parameters removed 2017-02-14 03:26:50 +00:00
scale_test.cc Add MaskCpuFlags(benchmark_cpu_info_) to unittest initialization 2017-09-12 19:13:06 +00:00
unit_test.cc Add MaskCpuFlags(benchmark_cpu_info_) to unittest initialization 2017-09-12 19:13:06 +00:00
unit_test.h scale float samples and return max value 2017-08-04 23:34:30 +00:00
video_common_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00