libyuv/unit_test
Frank Barchard e2611a7349 document cpuid command line behavior
cpu_info_ is zero for uninitialized state and all bits are off, disabling all cpu optimizations.
the 1 bit indicates cpu_info_ is initialized avoiding calling the detection code again for performance.

MaskCpuFlags initializes the cpu ignoring existing flags, then masks with the supplied flags and stores to cpu_info_.
As a mask, -1 has no effect, enabling all cpu features that were detected, but nothing that wasnt detected.
Setting to 0 will cause the next call to re-initialize the cpu, which is same as enabling all features.
Setting mask to 1 will turn off all cpu features but keep the initialized bit on, so the next detection call wont reinitialize and the cpu features are all disabled.

So normal behavior for command line and programatic masking is:
1 = C
-1 = SIMD

TBR=harryjin@google.com
BUG=libyuv:600
TESTED=out64/Release/bin/run_libyuv_unittest -s libyuv_unittest --verbose --release --gtest_filter=*ARGBExtractAlpha* -a "--libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=9999 --libyuv_flags=1 --libyuv_cpu_info=1"

Review URL: https://codereview.chromium.org/2042933002 .
2016-06-08 10:38:09 -07: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 j422 now uses j420 source code so increase error threshold to match. 2016-05-31 19:45:34 -07:00
compare_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
convert_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
cpu_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
math_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
planar_test.cc make unittest allocator align to 64 bytes. 2016-05-27 18:02:47 -07:00
rotate_argb_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
rotate_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
scale_argb_test.cc remove row.h from unittests 2016-05-27 10:57:49 -07:00
scale_test.cc If image sizes are greater than 32768, fixed point stepping will overflow an int. This CL changes the max size to 32768 and disables the test if larger. 2016-05-05 19:09:02 -07:00
unit_test.cc document cpuid command line behavior 2016-06-08 10:38:09 -07:00
unit_test.h make unittest allocator align to 64 bytes. 2016-05-27 18:02:47 -07:00
video_common_test.cc break up unittests into categories 2015-10-13 16:01:07 -07:00