Frank Barchard 1734712a6f Fix odd length HammingDistance
If length of HammingDistance was not a multiple of 4,
the result was incorrect.  The old tests did not catch this
so a new test is done to count 1s.

Bug: libyuv:740
Test: LibYUVCompareTest.TestHammingDistance
Change-Id: I93db5437821c597f1f162ac263d4a594bb83231f
Reviewed-on: https://chromium-review.googlesource.com/699614
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Reviewed-by: Cheng Wang <wangcheng@google.com>
Reviewed-by: Frank Barchard <fbarchard@google.com>
Commit-Queue: Frank Barchard <fbarchard@google.com>
2017-10-04 22:21:36 +00:00
..
basic_types.h clang-format libyuv 2016-11-07 17:37:23 -08:00
compare_row.h Port HammingDistance to SSSE3 2017-10-03 19:11:05 +00:00
compare.h Optimize Hamming Distance C code to do 64 bits at a time. 2017-05-12 17:53:52 +00:00
convert_argb.h clang-format libyuv 2016-11-07 17:37:23 -08:00
convert_from_argb.h clang-format libyuv 2016-11-07 17:37:23 -08:00
convert_from.h Add I422ToRGB565 2017-04-17 17:51:17 +00:00
convert.h clang-format libyuv 2016-11-07 17:37:23 -08:00
cpu_id.h lint warning fixes for CpuID 2017-05-25 22:00:17 +00:00
macros_msa.h Add MSA optimized remaining scale row functions 2016-12-21 13:39:44 +05:30
mjpeg_decoder.h clang-format libyuv 2016-11-07 17:37:23 -08:00
planar_functions.h SplitRGBPlane and MergeRGBPlane functions added 2017-09-11 21:02:04 +00:00
rotate_argb.h clang-format libyuv 2016-11-07 17:37:23 -08:00
rotate_row.h Rename mips source files to dspr2. 2017-01-27 23:11:43 +00:00
rotate.h clang-format libyuv 2016-11-07 17:37:23 -08:00
row.h SplitRGBPlane and MergeRGBPlane functions added 2017-09-11 21:02:04 +00:00
scale_argb.h clang-format libyuv 2016-11-07 17:37:23 -08:00
scale_row.h enable MSA for clang 2017-09-07 23:50:12 +00:00
scale.h clang-format libyuv 2016-11-07 17:37:23 -08:00
version.h Fix odd length HammingDistance 2017-10-04 22:21:36 +00:00
video_common.h clang-format libyuv 2016-11-07 17:37:23 -08:00