react-native-vision-camera-spoof-detector 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/README.md +442 -442
  2. package/android/build.gradle +12 -4
  3. package/android/src/main/cpp/CMakeLists.txt +101 -94
  4. package/android/src/main/cpp/libyuv/.clang-format +6 -6
  5. package/android/src/main/cpp/libyuv/.gn +40 -40
  6. package/android/src/main/cpp/libyuv/.vpython3 +410 -410
  7. package/android/src/main/cpp/libyuv/AUTHORS +7 -7
  8. package/android/src/main/cpp/libyuv/Android.bp +202 -202
  9. package/android/src/main/cpp/libyuv/Android.mk +106 -106
  10. package/android/src/main/cpp/libyuv/BUILD.gn +490 -490
  11. package/android/src/main/cpp/libyuv/CM_linux_packages.cmake +70 -70
  12. package/android/src/main/cpp/libyuv/CMakeLists.txt +259 -252
  13. package/android/src/main/cpp/libyuv/DEPS +935 -935
  14. package/android/src/main/cpp/libyuv/DIR_METADATA +3 -3
  15. package/android/src/main/cpp/libyuv/LICENSE +29 -29
  16. package/android/src/main/cpp/libyuv/OWNERS +11 -11
  17. package/android/src/main/cpp/libyuv/PATENTS +23 -23
  18. package/android/src/main/cpp/libyuv/PRESUBMIT.py +65 -65
  19. package/android/src/main/cpp/libyuv/README.chromium +11 -11
  20. package/android/src/main/cpp/libyuv/README.md +19 -19
  21. package/android/src/main/cpp/libyuv/build_overrides/build.gni +60 -60
  22. package/android/src/main/cpp/libyuv/build_overrides/gtest.gni +19 -19
  23. package/android/src/main/cpp/libyuv/build_overrides/partition_alloc.gni +17 -17
  24. package/android/src/main/cpp/libyuv/codereview.settings +5 -5
  25. package/android/src/main/cpp/libyuv/docs/deprecated_builds.md +409 -409
  26. package/android/src/main/cpp/libyuv/docs/environment_variables.md +64 -64
  27. package/android/src/main/cpp/libyuv/docs/feature_detection.md +108 -108
  28. package/android/src/main/cpp/libyuv/docs/filtering.md +196 -196
  29. package/android/src/main/cpp/libyuv/docs/formats.md +208 -208
  30. package/android/src/main/cpp/libyuv/docs/getting_started.md +296 -296
  31. package/android/src/main/cpp/libyuv/docs/rotation.md +107 -107
  32. package/android/src/main/cpp/libyuv/download_vs_toolchain.py +29 -29
  33. package/android/src/main/cpp/libyuv/include/libyuv/basic_types.h +68 -68
  34. package/android/src/main/cpp/libyuv/include/libyuv/compare.h +111 -111
  35. package/android/src/main/cpp/libyuv/include/libyuv/compare_row.h +112 -112
  36. package/android/src/main/cpp/libyuv/include/libyuv/convert.h +1117 -1117
  37. package/android/src/main/cpp/libyuv/include/libyuv/convert_argb.h +2335 -2335
  38. package/android/src/main/cpp/libyuv/include/libyuv/convert_from.h +203 -203
  39. package/android/src/main/cpp/libyuv/include/libyuv/convert_from_argb.h +394 -394
  40. package/android/src/main/cpp/libyuv/include/libyuv/cpu_id.h +147 -147
  41. package/android/src/main/cpp/libyuv/include/libyuv/cpu_support.h +99 -99
  42. package/android/src/main/cpp/libyuv/include/libyuv/loongson_intrinsics.h +1949 -1949
  43. package/android/src/main/cpp/libyuv/include/libyuv/mjpeg_decoder.h +195 -195
  44. package/android/src/main/cpp/libyuv/include/libyuv/planar_functions.h +1131 -1131
  45. package/android/src/main/cpp/libyuv/include/libyuv/rotate.h +296 -296
  46. package/android/src/main/cpp/libyuv/include/libyuv/rotate_argb.h +37 -37
  47. package/android/src/main/cpp/libyuv/include/libyuv/rotate_row.h +265 -265
  48. package/android/src/main/cpp/libyuv/include/libyuv/row.h +6738 -6738
  49. package/android/src/main/cpp/libyuv/include/libyuv/row_sve.h +2154 -2154
  50. package/android/src/main/cpp/libyuv/include/libyuv/scale.h +336 -336
  51. package/android/src/main/cpp/libyuv/include/libyuv/scale_argb.h +76 -76
  52. package/android/src/main/cpp/libyuv/include/libyuv/scale_rgb.h +42 -42
  53. package/android/src/main/cpp/libyuv/include/libyuv/scale_row.h +1726 -1726
  54. package/android/src/main/cpp/libyuv/include/libyuv/scale_uv.h +51 -51
  55. package/android/src/main/cpp/libyuv/include/libyuv/version.h +16 -16
  56. package/android/src/main/cpp/libyuv/include/libyuv/video_common.h +222 -222
  57. package/android/src/main/cpp/libyuv/include/libyuv.h +33 -33
  58. package/android/src/main/cpp/libyuv/infra/config/OWNERS +3 -3
  59. package/android/src/main/cpp/libyuv/infra/config/PRESUBMIT.py +17 -17
  60. package/android/src/main/cpp/libyuv/infra/config/README.md +2 -2
  61. package/android/src/main/cpp/libyuv/infra/config/codereview.settings +6 -6
  62. package/android/src/main/cpp/libyuv/infra/config/commit-queue.cfg +144 -144
  63. package/android/src/main/cpp/libyuv/infra/config/cr-buildbucket.cfg +1185 -1185
  64. package/android/src/main/cpp/libyuv/infra/config/luci-logdog.cfg +9 -9
  65. package/android/src/main/cpp/libyuv/infra/config/luci-milo.cfg +246 -246
  66. package/android/src/main/cpp/libyuv/infra/config/luci-scheduler.cfg +385 -385
  67. package/android/src/main/cpp/libyuv/infra/config/main.star +402 -402
  68. package/android/src/main/cpp/libyuv/infra/config/project.cfg +16 -16
  69. package/android/src/main/cpp/libyuv/infra/config/realms.cfg +111 -111
  70. package/android/src/main/cpp/libyuv/libyuv.gni +34 -34
  71. package/android/src/main/cpp/libyuv/libyuv.gyp +149 -149
  72. package/android/src/main/cpp/libyuv/libyuv.gypi +87 -87
  73. package/android/src/main/cpp/libyuv/linux.mk +96 -96
  74. package/android/src/main/cpp/libyuv/public.mk +13 -13
  75. package/android/src/main/cpp/libyuv/pylintrc +49 -49
  76. package/android/src/main/cpp/libyuv/riscv_script/prepare_toolchain_qemu.sh +74 -74
  77. package/android/src/main/cpp/libyuv/riscv_script/riscv-clang.cmake +56 -56
  78. package/android/src/main/cpp/libyuv/riscv_script/run_qemu.sh +15 -15
  79. package/android/src/main/cpp/libyuv/source/compare.cc +435 -435
  80. package/android/src/main/cpp/libyuv/source/compare_common.cc +74 -74
  81. package/android/src/main/cpp/libyuv/source/compare_gcc.cc +362 -362
  82. package/android/src/main/cpp/libyuv/source/compare_neon.cc +96 -96
  83. package/android/src/main/cpp/libyuv/source/compare_neon64.cc +223 -223
  84. package/android/src/main/cpp/libyuv/source/compare_win.cc +241 -241
  85. package/android/src/main/cpp/libyuv/source/convert.cc +4746 -4746
  86. package/android/src/main/cpp/libyuv/source/convert_argb.cc +9179 -9179
  87. package/android/src/main/cpp/libyuv/source/convert_from.cc +866 -866
  88. package/android/src/main/cpp/libyuv/source/convert_from_argb.cc +3671 -3671
  89. package/android/src/main/cpp/libyuv/source/convert_jpeg.cc +602 -602
  90. package/android/src/main/cpp/libyuv/source/convert_to_argb.cc +391 -391
  91. package/android/src/main/cpp/libyuv/source/convert_to_i420.cc +288 -288
  92. package/android/src/main/cpp/libyuv/source/cpu_id.cc +496 -496
  93. package/android/src/main/cpp/libyuv/source/mjpeg_decoder.cc +580 -580
  94. package/android/src/main/cpp/libyuv/source/mjpeg_validate.cc +71 -71
  95. package/android/src/main/cpp/libyuv/source/planar_functions.cc +5663 -5663
  96. package/android/src/main/cpp/libyuv/source/rotate.cc +1241 -1241
  97. package/android/src/main/cpp/libyuv/source/rotate_any.cc +76 -76
  98. package/android/src/main/cpp/libyuv/source/rotate_argb.cc +259 -259
  99. package/android/src/main/cpp/libyuv/source/rotate_common.cc +208 -208
  100. package/android/src/main/cpp/libyuv/source/rotate_gcc.cc +505 -505
  101. package/android/src/main/cpp/libyuv/source/rotate_lsx.cc +233 -233
  102. package/android/src/main/cpp/libyuv/source/rotate_neon.cc +219 -219
  103. package/android/src/main/cpp/libyuv/source/rotate_neon64.cc +273 -273
  104. package/android/src/main/cpp/libyuv/source/rotate_sme.cc +174 -174
  105. package/android/src/main/cpp/libyuv/source/rotate_win.cc +253 -253
  106. package/android/src/main/cpp/libyuv/source/row_any.cc +2519 -2519
  107. package/android/src/main/cpp/libyuv/source/row_common.cc +4461 -4461
  108. package/android/src/main/cpp/libyuv/source/row_gcc.cc +9570 -9570
  109. package/android/src/main/cpp/libyuv/source/row_lasx.cc +2343 -2343
  110. package/android/src/main/cpp/libyuv/source/row_lsx.cc +3030 -3030
  111. package/android/src/main/cpp/libyuv/source/row_neon.cc +4026 -4026
  112. package/android/src/main/cpp/libyuv/source/row_neon64.cc +5617 -5617
  113. package/android/src/main/cpp/libyuv/source/row_rvv.cc +2599 -2599
  114. package/android/src/main/cpp/libyuv/source/row_sme.cc +1183 -1183
  115. package/android/src/main/cpp/libyuv/source/row_sve.cc +1088 -1088
  116. package/android/src/main/cpp/libyuv/source/row_win.cc +6453 -6453
  117. package/android/src/main/cpp/libyuv/source/scale.cc +2710 -2710
  118. package/android/src/main/cpp/libyuv/source/scale_any.cc +991 -991
  119. package/android/src/main/cpp/libyuv/source/scale_argb.cc +1158 -1158
  120. package/android/src/main/cpp/libyuv/source/scale_common.cc +1977 -1977
  121. package/android/src/main/cpp/libyuv/source/scale_gcc.cc +2947 -2947
  122. package/android/src/main/cpp/libyuv/source/scale_lsx.cc +739 -739
  123. package/android/src/main/cpp/libyuv/source/scale_neon.cc +1449 -1449
  124. package/android/src/main/cpp/libyuv/source/scale_neon64.cc +1552 -1552
  125. package/android/src/main/cpp/libyuv/source/scale_rgb.cc +82 -82
  126. package/android/src/main/cpp/libyuv/source/scale_rvv.cc +1971 -1971
  127. package/android/src/main/cpp/libyuv/source/scale_sme.cc +555 -555
  128. package/android/src/main/cpp/libyuv/source/scale_uv.cc +1159 -1159
  129. package/android/src/main/cpp/libyuv/source/scale_win.cc +1392 -1392
  130. package/android/src/main/cpp/libyuv/source/test.sh +35 -35
  131. package/android/src/main/cpp/libyuv/source/video_common.cc +62 -62
  132. package/android/src/main/cpp/libyuv/tools_libyuv/OWNERS +4 -4
  133. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/roll_deps.py +931 -931
  134. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/roll_deps_test.py +164 -164
  135. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS +21 -21
  136. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.new +13 -13
  137. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.old +13 -13
  138. package/android/src/main/cpp/libyuv/tools_libyuv/get_landmines.py +38 -38
  139. package/android/src/main/cpp/libyuv/tools_libyuv/msan/OWNERS +3 -3
  140. package/android/src/main/cpp/libyuv/tools_libyuv/msan/blacklist.txt +9 -9
  141. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/OWNERS +3 -3
  142. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/blacklist.txt +15 -15
  143. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/vptr_blacklist.txt +25 -25
  144. package/android/src/main/cpp/libyuv/unit_test/basictypes_test.cc +43 -43
  145. package/android/src/main/cpp/libyuv/unit_test/color_test.cc +848 -848
  146. package/android/src/main/cpp/libyuv/unit_test/compare_test.cc +739 -739
  147. package/android/src/main/cpp/libyuv/unit_test/convert_argb_test.cc +2867 -2867
  148. package/android/src/main/cpp/libyuv/unit_test/convert_test.cc +2133 -2133
  149. package/android/src/main/cpp/libyuv/unit_test/cpu_test.cc +427 -427
  150. package/android/src/main/cpp/libyuv/unit_test/cpu_thread_test.cc +63 -63
  151. package/android/src/main/cpp/libyuv/unit_test/math_test.cc +160 -160
  152. package/android/src/main/cpp/libyuv/unit_test/planar_test.cc +4731 -4731
  153. package/android/src/main/cpp/libyuv/unit_test/rotate_argb_test.cc +334 -334
  154. package/android/src/main/cpp/libyuv/unit_test/rotate_test.cc +962 -962
  155. package/android/src/main/cpp/libyuv/unit_test/scale_argb_test.cc +590 -590
  156. package/android/src/main/cpp/libyuv/unit_test/scale_plane_test.cc +465 -465
  157. package/android/src/main/cpp/libyuv/unit_test/scale_rgb_test.cc +280 -280
  158. package/android/src/main/cpp/libyuv/unit_test/scale_test.cc +1135 -1135
  159. package/android/src/main/cpp/libyuv/unit_test/scale_uv_test.cc +249 -249
  160. package/android/src/main/cpp/libyuv/unit_test/testdata/arm_v7.txt +12 -12
  161. package/android/src/main/cpp/libyuv/unit_test/testdata/mips.txt +7 -7
  162. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson2k.txt +5 -5
  163. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson3.txt +10 -10
  164. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson_mmi.txt +7 -7
  165. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64.txt +3 -3
  166. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv.txt +3 -3
  167. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv_zvfh.txt +3 -3
  168. package/android/src/main/cpp/libyuv/unit_test/testdata/tegra3.txt +23 -23
  169. package/android/src/main/cpp/libyuv/unit_test/unit_test.cc +581 -581
  170. package/android/src/main/cpp/libyuv/unit_test/unit_test.h +232 -232
  171. package/android/src/main/cpp/libyuv/unit_test/video_common_test.cc +112 -112
  172. package/android/src/main/cpp/libyuv/util/Makefile +9 -9
  173. package/android/src/main/cpp/libyuv/util/color.cc +120 -120
  174. package/android/src/main/cpp/libyuv/util/compare.cc +67 -67
  175. package/android/src/main/cpp/libyuv/util/cpuid.c +211 -211
  176. package/android/src/main/cpp/libyuv/util/i444tonv12_eg.cc +27 -27
  177. package/android/src/main/cpp/libyuv/util/psnr.cc +291 -291
  178. package/android/src/main/cpp/libyuv/util/psnr.h +47 -47
  179. package/android/src/main/cpp/libyuv/util/psnr_main.cc +620 -620
  180. package/android/src/main/cpp/libyuv/util/ssim.cc +364 -364
  181. package/android/src/main/cpp/libyuv/util/ssim.h +38 -38
  182. package/android/src/main/cpp/libyuv/util/yuvconstants.c +114 -114
  183. package/android/src/main/cpp/libyuv/util/yuvconvert.cc +367 -367
  184. package/android/src/main/cpp/libyuv/winarm.mk +47 -47
  185. package/package.json +86 -86
  186. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  187. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  188. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  189. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  190. package/android/.gradle/8.9/gc.properties +0 -0
  191. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  192. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  193. package/android/.gradle/vcs-1/gc.properties +0 -0
@@ -1,409 +1,409 @@
1
- # Deprecated Builds
2
-
3
- Older documentation on build configs which are no longer supported.
4
-
5
- ## Pre-requisites
6
-
7
- You'll need to have depot tools installed: https://www.chromium.org/developers/how-tos/install-depot-tools
8
- Refer to chromium instructions for each platform for other prerequisites.
9
-
10
- ## Getting the Code
11
-
12
- Create a working directory, enter it, and run:
13
-
14
- fetch libyuv
15
-
16
- For iOS add `;target_os=['ios'];` to your OSX .gclient and run `GYP_DEFINES="OS=ios" gclient sync.`
17
-
18
- Browse the Git reprository: https://chromium.googlesource.com/libyuv/libyuv/+/master
19
-
20
- ### Android
21
- For Android add `;target_os=['android'];` to your Linux .gclient
22
-
23
-
24
- solutions = [
25
- { "name" : "libyuv",
26
- "url" : "https://chromium.googlesource.com/libyuv/libyuv",
27
- "deps_file" : "DEPS",
28
- "managed" : True,
29
- "custom_deps" : {
30
- },
31
- "safesync_url": "",
32
- },
33
- ];
34
- target_os = ["android", "unix"];
35
-
36
- Then run:
37
-
38
- export GYP_DEFINES="OS=android"
39
- gclient sync
40
-
41
- Caveat: Theres an error with Google Play services updates. If you get the error "Your version of the Google Play services library is not up to date", run the following:
42
-
43
- cd chromium/src
44
- ./build/android/play_services/update.py download
45
- cd ../..
46
-
47
- For Windows the gclient sync must be done from an Administrator command prompt.
48
-
49
- The sync will generate native build files for your environment using gyp (Windows: Visual Studio, OSX: XCode, Linux: make). This generation can also be forced manually: `gclient runhooks`
50
-
51
- To get just the source (not buildable):
52
-
53
- git clone https://chromium.googlesource.com/libyuv/libyuv
54
-
55
-
56
- ## Building the Library and Unittests
57
-
58
- ### Windows
59
-
60
- set GYP_DEFINES=target_arch=ia32
61
- call python gyp_libyuv -fninja -G msvs_version=2013
62
- ninja -j7 -C out\Release
63
- ninja -j7 -C out\Debug
64
-
65
- set GYP_DEFINES=target_arch=x64
66
- call python gyp_libyuv -fninja -G msvs_version=2013
67
- ninja -C out\Debug_x64
68
- ninja -C out\Release_x64
69
-
70
- #### Building with clangcl
71
- set GYP_DEFINES=clang=1 target_arch=ia32
72
- call python tools\clang\scripts\update.py
73
- call python gyp_libyuv -fninja libyuv_test.gyp
74
- ninja -C out\Debug
75
- ninja -C out\Release
76
-
77
- ### OSX
78
-
79
- Clang 64 bit shown. Remove `clang=1` for GCC and change x64 to ia32 for 32 bit.
80
-
81
- GYP_DEFINES="clang=1 target_arch=x64" ./gyp_libyuv
82
- ninja -j7 -C out/Debug
83
- ninja -j7 -C out/Release
84
-
85
- GYP_DEFINES="clang=1 target_arch=ia32" ./gyp_libyuv
86
- ninja -j7 -C out/Debug
87
- ninja -j7 -C out/Release
88
-
89
- ### iOS
90
- http://www.chromium.org/developers/how-tos/build-instructions-ios
91
-
92
- Add to .gclient last line: `target_os=['ios'];`
93
-
94
- armv7
95
-
96
- GYP_DEFINES="OS=ios target_arch=armv7 target_subarch=arm32" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
97
- ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
98
- ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
99
-
100
- arm64
101
-
102
- GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
103
- ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
104
- ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
105
-
106
- both armv7 and arm64 (fat)
107
-
108
- GYP_DEFINES="OS=ios target_arch=armv7 target_subarch=both" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
109
- ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
110
- ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
111
-
112
- simulator
113
-
114
- GYP_DEFINES="OS=ios target_arch=ia32 target_subarch=arm32" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_sim" ./gyp_libyuv
115
- ninja -j7 -C out_sim/Debug-iphonesimulator libyuv_unittest
116
- ninja -j7 -C out_sim/Release-iphonesimulator libyuv_unittest
117
-
118
- ### Android
119
- https://code.google.com/p/chromium/wiki/AndroidBuildInstructions
120
-
121
- Add to .gclient last line: `target_os=['android'];`
122
-
123
- armv7
124
-
125
- GYP_DEFINES="OS=android" GYP_CROSSCOMPILE=1 ./gyp_libyuv
126
- ninja -j7 -C out/Debug yuv_unittest_apk
127
- ninja -j7 -C out/Release yuv_unittest_apk
128
-
129
- arm64
130
-
131
- GYP_DEFINES="OS=android target_arch=arm64 target_subarch=arm64" GYP_CROSSCOMPILE=1 ./gyp_libyuv
132
- ninja -j7 -C out/Debug yuv_unittest_apk
133
- ninja -j7 -C out/Release yuv_unittest_apk
134
-
135
- ia32
136
-
137
- GYP_DEFINES="OS=android target_arch=ia32" GYP_CROSSCOMPILE=1 ./gyp_libyuv
138
- ninja -j7 -C out/Debug yuv_unittest_apk
139
- ninja -j7 -C out/Release yuv_unittest_apk
140
-
141
- GYP_DEFINES="OS=android target_arch=ia32 android_full_debug=1" GYP_CROSSCOMPILE=1 ./gyp_libyuv
142
- ninja -j7 -C out/Debug yuv_unittest_apk
143
-
144
- arm32 disassembly:
145
-
146
- llvm-objdump -d out/Release/obj/source/libyuv.row_neon.o
147
-
148
- arm64 disassembly:
149
-
150
- llvm-objdump -d out/Release/obj/source/libyuv.row_neon64.o
151
-
152
- Running tests:
153
-
154
- build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=*
155
-
156
- Running test as benchmark:
157
-
158
- build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=* -a "--libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=-1"
159
-
160
- Running test with C code:
161
-
162
- build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=* -a "--libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=1 --libyuv_cpu_info=1"
163
-
164
- #### Building with GN
165
-
166
- gn gen out/Release "--args=is_debug=false target_cpu=\"x86\""
167
- gn gen out/Debug "--args=is_debug=true target_cpu=\"x86\""
168
- ninja -C out/Release
169
- ninja -C out/Debug
170
-
171
- ### Building Offical with GN
172
-
173
- gn gen out/Official "--args=is_debug=false is_official_build=true is_chrome_branded=true"
174
- ninja -C out/Official
175
-
176
- ### Linux
177
-
178
- GYP_DEFINES="target_arch=x64" ./gyp_libyuv
179
- ninja -j7 -C out/Debug
180
- ninja -j7 -C out/Release
181
-
182
- GYP_DEFINES="target_arch=ia32" ./gyp_libyuv
183
- ninja -j7 -C out/Debug
184
- ninja -j7 -C out/Release
185
-
186
- #### CentOS
187
-
188
- On CentOS 32 bit the following work around allows a sync:
189
-
190
- export GYP_DEFINES="host_arch=ia32"
191
- gclient sync
192
-
193
- ### Windows Shared Library
194
-
195
- Modify libyuv.gyp from 'static_library' to 'shared_library', and add 'LIBYUV_BUILDING_SHARED_LIBRARY' to 'defines'.
196
-
197
- gclient runhooks
198
-
199
- After this command follow the building the library instructions above.
200
-
201
- If you get a compile error for atlthunk.lib on Windows, read http://www.chromium.org/developers/how-tos/build-instructions-windows
202
-
203
-
204
- ### Build targets
205
-
206
- ninja -C out/Debug libyuv
207
- ninja -C out/Debug libyuv_unittest
208
- ninja -C out/Debug compare
209
- ninja -C out/Debug yuvconvert
210
- ninja -C out/Debug yuvconstants
211
- ninja -C out/Debug psnr
212
- ninja -C out/Debug cpuid
213
-
214
-
215
- ## Building the Library with make
216
-
217
- ### Linux
218
-
219
- make -j7 V=1 -f linux.mk
220
- make -j7 V=1 -f linux.mk clean
221
- make -j7 V=1 -f linux.mk CXX=clang++
222
-
223
- ## Building the Library with cmake
224
-
225
- Install cmake: http://www.cmake.org/
226
-
227
- Default debug build:
228
-
229
- mkdir out
230
- cd out
231
- cmake ..
232
- cmake --build .
233
-
234
- Release build/install
235
-
236
- mkdir out
237
- cd out
238
- cmake -DCMAKE_INSTALL_PREFIX="/usr/lib" -DCMAKE_BUILD_TYPE="Release" ..
239
- cmake --build . --config Release
240
- sudo cmake --build . --target install --config Release
241
-
242
- ### Windows 8 Phone
243
-
244
- Pre-requisite:
245
-
246
- * Install Visual Studio 2012 and Arm to your environment.<br>
247
-
248
- Then:
249
-
250
- call "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_arm\vcvarsx86_arm.bat"
251
-
252
- or with Visual Studio 2013:
253
-
254
- call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_arm\vcvarsx86_arm.bat"
255
- nmake /f winarm.mk clean
256
- nmake /f winarm.mk
257
-
258
- ### Windows Shared Library
259
-
260
- Modify libyuv.gyp from 'static_library' to 'shared_library', and add 'LIBYUV_BUILDING_SHARED_LIBRARY' to 'defines'. Then run this.
261
-
262
- gclient runhooks
263
-
264
- After this command follow the building the library instructions above.
265
-
266
- If you get a compile error for atlthunk.lib on Windows, read http://www.chromium.org/developers/how-tos/build-instructions-windows
267
-
268
- ### 64 bit Windows
269
-
270
- set GYP_DEFINES=target_arch=x64
271
- gclient runhooks V=1
272
-
273
- ### ARM Linux
274
-
275
- export GYP_DEFINES="target_arch=arm"
276
- export CROSSTOOL=`<path>`/arm-none-linux-gnueabi
277
- export CXX=$CROSSTOOL-g++
278
- export CC=$CROSSTOOL-gcc
279
- export AR=$CROSSTOOL-ar
280
- export AS=$CROSSTOOL-as
281
- export RANLIB=$CROSSTOOL-ranlib
282
- gclient runhooks
283
-
284
- ## Running Unittests
285
-
286
- ### Windows
287
-
288
- out\Release\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter="*"
289
-
290
- ### OSX
291
-
292
- out/Release/libyuv_unittest --gtest_filter="*"
293
-
294
- ### Linux
295
-
296
- out/Release/libyuv_unittest --gtest_filter="*"
297
-
298
- Replace --gtest_filter="*" with specific unittest to run. May include wildcards. e.g.
299
-
300
- out/Release/libyuv_unittest --gtest_filter=libyuvTest.I420ToARGB_Opt
301
-
302
- ## CPU Emulator tools
303
-
304
- ### Intel SDE (Software Development Emulator)
305
-
306
- Pre-requisite: Install IntelSDE for Windows: http://software.intel.com/en-us/articles/intel-software-development-emulator
307
-
308
- Then run:
309
-
310
- c:\intelsde\sde -hsw -- out\release\libyuv_unittest.exe --gtest_filter=*
311
-
312
-
313
- ## Memory tools
314
-
315
- ### Running Dr Memory memcheck for Windows
316
-
317
- Pre-requisite: Install Dr Memory for Windows and add it to your path: http://www.drmemory.org/docs/page_install_windows.html
318
-
319
- set GYP_DEFINES=build_for_tool=drmemory target_arch=ia32
320
- call python gyp_libyuv -fninja -G msvs_version=2013
321
- ninja -C out\Debug
322
- drmemory out\Debug\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter=*
323
-
324
- ### Running UBSan
325
-
326
- See Chromium instructions for sanitizers: https://www.chromium.org/developers/testing/undefinedbehaviorsanitizer
327
-
328
- Sanitizers available: TSan, MSan, ASan, UBSan, LSan
329
-
330
- GYP_DEFINES='ubsan=1' gclient runhooks
331
- ninja -C out/Release
332
-
333
- ### Running Valgrind memcheck
334
-
335
- Memory errors and race conditions can be found by running tests under special memory tools. [Valgrind] [1] is an instrumentation framework for building dynamic analysis tools. Various tests and profilers are built upon it to find memory handling errors and memory leaks, for instance.
336
-
337
- [1]: http://valgrind.org
338
-
339
- solutions = [
340
- { "name" : "libyuv",
341
- "url" : "https://chromium.googlesource.com/libyuv/libyuv",
342
- "deps_file" : "DEPS",
343
- "managed" : True,
344
- "custom_deps" : {
345
- "libyuv/chromium/src/third_party/valgrind": "https://chromium.googlesource.com/chromium/deps/valgrind/binaries",
346
- },
347
- "safesync_url": "",
348
- },
349
- ]
350
-
351
- Then run:
352
-
353
- GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=memcheck" python gyp_libyuv
354
- ninja -C out/Debug
355
- valgrind out/Debug/libyuv_unittest
356
-
357
-
358
- For more information, see http://www.chromium.org/developers/how-tos/using-valgrind
359
-
360
- ### Running Thread Sanitizer (TSan)
361
-
362
- GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=tsan" python gyp_libyuv
363
- ninja -C out/Debug
364
- valgrind out/Debug/libyuv_unittest
365
-
366
- For more info, see http://www.chromium.org/developers/how-tos/using-valgrind/threadsanitizer
367
-
368
- ### Running Address Sanitizer (ASan)
369
-
370
- GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=asan" python gyp_libyuv
371
- ninja -C out/Debug
372
- valgrind out/Debug/libyuv_unittest
373
-
374
- For more info, see http://dev.chromium.org/developers/testing/addresssanitizer
375
-
376
- ## Benchmarking
377
-
378
- The unittests can be used to benchmark.
379
-
380
- ### Windows
381
-
382
- set LIBYUV_WIDTH=1280
383
- set LIBYUV_HEIGHT=720
384
- set LIBYUV_REPEAT=999
385
- set LIBYUV_FLAGS=-1
386
- out\Release\libyuv_unittest.exe --gtest_filter=*I420ToARGB_Opt
387
-
388
-
389
- ### Linux and Mac
390
-
391
- LIBYUV_WIDTH=1280 LIBYUV_HEIGHT=720 LIBYUV_REPEAT=1000 out/Release/libyuv_unittest --gtest_filter=*I420ToARGB_Opt
392
-
393
- libyuvTest.I420ToARGB_Opt (547 ms)
394
-
395
- Indicates 0.547 ms/frame for 1280 x 720.
396
-
397
- ## Making a change
398
-
399
- gclient sync
400
- git checkout -b mycl -t origin/master
401
- git pull
402
- <edit files>
403
- git add -u
404
- git commit -m "my change"
405
- git cl lint
406
- git cl try
407
- git cl upload -r a-reviewer@chomium.org -s
408
- <once approved..>
409
- git cl land
1
+ # Deprecated Builds
2
+
3
+ Older documentation on build configs which are no longer supported.
4
+
5
+ ## Pre-requisites
6
+
7
+ You'll need to have depot tools installed: https://www.chromium.org/developers/how-tos/install-depot-tools
8
+ Refer to chromium instructions for each platform for other prerequisites.
9
+
10
+ ## Getting the Code
11
+
12
+ Create a working directory, enter it, and run:
13
+
14
+ fetch libyuv
15
+
16
+ For iOS add `;target_os=['ios'];` to your OSX .gclient and run `GYP_DEFINES="OS=ios" gclient sync.`
17
+
18
+ Browse the Git reprository: https://chromium.googlesource.com/libyuv/libyuv/+/master
19
+
20
+ ### Android
21
+ For Android add `;target_os=['android'];` to your Linux .gclient
22
+
23
+
24
+ solutions = [
25
+ { "name" : "libyuv",
26
+ "url" : "https://chromium.googlesource.com/libyuv/libyuv",
27
+ "deps_file" : "DEPS",
28
+ "managed" : True,
29
+ "custom_deps" : {
30
+ },
31
+ "safesync_url": "",
32
+ },
33
+ ];
34
+ target_os = ["android", "unix"];
35
+
36
+ Then run:
37
+
38
+ export GYP_DEFINES="OS=android"
39
+ gclient sync
40
+
41
+ Caveat: Theres an error with Google Play services updates. If you get the error "Your version of the Google Play services library is not up to date", run the following:
42
+
43
+ cd chromium/src
44
+ ./build/android/play_services/update.py download
45
+ cd ../..
46
+
47
+ For Windows the gclient sync must be done from an Administrator command prompt.
48
+
49
+ The sync will generate native build files for your environment using gyp (Windows: Visual Studio, OSX: XCode, Linux: make). This generation can also be forced manually: `gclient runhooks`
50
+
51
+ To get just the source (not buildable):
52
+
53
+ git clone https://chromium.googlesource.com/libyuv/libyuv
54
+
55
+
56
+ ## Building the Library and Unittests
57
+
58
+ ### Windows
59
+
60
+ set GYP_DEFINES=target_arch=ia32
61
+ call python gyp_libyuv -fninja -G msvs_version=2013
62
+ ninja -j7 -C out\Release
63
+ ninja -j7 -C out\Debug
64
+
65
+ set GYP_DEFINES=target_arch=x64
66
+ call python gyp_libyuv -fninja -G msvs_version=2013
67
+ ninja -C out\Debug_x64
68
+ ninja -C out\Release_x64
69
+
70
+ #### Building with clangcl
71
+ set GYP_DEFINES=clang=1 target_arch=ia32
72
+ call python tools\clang\scripts\update.py
73
+ call python gyp_libyuv -fninja libyuv_test.gyp
74
+ ninja -C out\Debug
75
+ ninja -C out\Release
76
+
77
+ ### OSX
78
+
79
+ Clang 64 bit shown. Remove `clang=1` for GCC and change x64 to ia32 for 32 bit.
80
+
81
+ GYP_DEFINES="clang=1 target_arch=x64" ./gyp_libyuv
82
+ ninja -j7 -C out/Debug
83
+ ninja -j7 -C out/Release
84
+
85
+ GYP_DEFINES="clang=1 target_arch=ia32" ./gyp_libyuv
86
+ ninja -j7 -C out/Debug
87
+ ninja -j7 -C out/Release
88
+
89
+ ### iOS
90
+ http://www.chromium.org/developers/how-tos/build-instructions-ios
91
+
92
+ Add to .gclient last line: `target_os=['ios'];`
93
+
94
+ armv7
95
+
96
+ GYP_DEFINES="OS=ios target_arch=armv7 target_subarch=arm32" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
97
+ ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
98
+ ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
99
+
100
+ arm64
101
+
102
+ GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
103
+ ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
104
+ ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
105
+
106
+ both armv7 and arm64 (fat)
107
+
108
+ GYP_DEFINES="OS=ios target_arch=armv7 target_subarch=both" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv
109
+ ninja -j7 -C out_ios/Debug-iphoneos libyuv_unittest
110
+ ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
111
+
112
+ simulator
113
+
114
+ GYP_DEFINES="OS=ios target_arch=ia32 target_subarch=arm32" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_sim" ./gyp_libyuv
115
+ ninja -j7 -C out_sim/Debug-iphonesimulator libyuv_unittest
116
+ ninja -j7 -C out_sim/Release-iphonesimulator libyuv_unittest
117
+
118
+ ### Android
119
+ https://code.google.com/p/chromium/wiki/AndroidBuildInstructions
120
+
121
+ Add to .gclient last line: `target_os=['android'];`
122
+
123
+ armv7
124
+
125
+ GYP_DEFINES="OS=android" GYP_CROSSCOMPILE=1 ./gyp_libyuv
126
+ ninja -j7 -C out/Debug yuv_unittest_apk
127
+ ninja -j7 -C out/Release yuv_unittest_apk
128
+
129
+ arm64
130
+
131
+ GYP_DEFINES="OS=android target_arch=arm64 target_subarch=arm64" GYP_CROSSCOMPILE=1 ./gyp_libyuv
132
+ ninja -j7 -C out/Debug yuv_unittest_apk
133
+ ninja -j7 -C out/Release yuv_unittest_apk
134
+
135
+ ia32
136
+
137
+ GYP_DEFINES="OS=android target_arch=ia32" GYP_CROSSCOMPILE=1 ./gyp_libyuv
138
+ ninja -j7 -C out/Debug yuv_unittest_apk
139
+ ninja -j7 -C out/Release yuv_unittest_apk
140
+
141
+ GYP_DEFINES="OS=android target_arch=ia32 android_full_debug=1" GYP_CROSSCOMPILE=1 ./gyp_libyuv
142
+ ninja -j7 -C out/Debug yuv_unittest_apk
143
+
144
+ arm32 disassembly:
145
+
146
+ llvm-objdump -d out/Release/obj/source/libyuv.row_neon.o
147
+
148
+ arm64 disassembly:
149
+
150
+ llvm-objdump -d out/Release/obj/source/libyuv.row_neon64.o
151
+
152
+ Running tests:
153
+
154
+ build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=*
155
+
156
+ Running test as benchmark:
157
+
158
+ build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=* -a "--libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=-1"
159
+
160
+ Running test with C code:
161
+
162
+ build/android/test_runner.py gtest -s libyuv_unittest -t 7200 --verbose --release --gtest_filter=* -a "--libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=1 --libyuv_cpu_info=1"
163
+
164
+ #### Building with GN
165
+
166
+ gn gen out/Release "--args=is_debug=false target_cpu=\"x86\""
167
+ gn gen out/Debug "--args=is_debug=true target_cpu=\"x86\""
168
+ ninja -C out/Release
169
+ ninja -C out/Debug
170
+
171
+ ### Building Offical with GN
172
+
173
+ gn gen out/Official "--args=is_debug=false is_official_build=true is_chrome_branded=true"
174
+ ninja -C out/Official
175
+
176
+ ### Linux
177
+
178
+ GYP_DEFINES="target_arch=x64" ./gyp_libyuv
179
+ ninja -j7 -C out/Debug
180
+ ninja -j7 -C out/Release
181
+
182
+ GYP_DEFINES="target_arch=ia32" ./gyp_libyuv
183
+ ninja -j7 -C out/Debug
184
+ ninja -j7 -C out/Release
185
+
186
+ #### CentOS
187
+
188
+ On CentOS 32 bit the following work around allows a sync:
189
+
190
+ export GYP_DEFINES="host_arch=ia32"
191
+ gclient sync
192
+
193
+ ### Windows Shared Library
194
+
195
+ Modify libyuv.gyp from 'static_library' to 'shared_library', and add 'LIBYUV_BUILDING_SHARED_LIBRARY' to 'defines'.
196
+
197
+ gclient runhooks
198
+
199
+ After this command follow the building the library instructions above.
200
+
201
+ If you get a compile error for atlthunk.lib on Windows, read http://www.chromium.org/developers/how-tos/build-instructions-windows
202
+
203
+
204
+ ### Build targets
205
+
206
+ ninja -C out/Debug libyuv
207
+ ninja -C out/Debug libyuv_unittest
208
+ ninja -C out/Debug compare
209
+ ninja -C out/Debug yuvconvert
210
+ ninja -C out/Debug yuvconstants
211
+ ninja -C out/Debug psnr
212
+ ninja -C out/Debug cpuid
213
+
214
+
215
+ ## Building the Library with make
216
+
217
+ ### Linux
218
+
219
+ make -j7 V=1 -f linux.mk
220
+ make -j7 V=1 -f linux.mk clean
221
+ make -j7 V=1 -f linux.mk CXX=clang++
222
+
223
+ ## Building the Library with cmake
224
+
225
+ Install cmake: http://www.cmake.org/
226
+
227
+ Default debug build:
228
+
229
+ mkdir out
230
+ cd out
231
+ cmake ..
232
+ cmake --build .
233
+
234
+ Release build/install
235
+
236
+ mkdir out
237
+ cd out
238
+ cmake -DCMAKE_INSTALL_PREFIX="/usr/lib" -DCMAKE_BUILD_TYPE="Release" ..
239
+ cmake --build . --config Release
240
+ sudo cmake --build . --target install --config Release
241
+
242
+ ### Windows 8 Phone
243
+
244
+ Pre-requisite:
245
+
246
+ * Install Visual Studio 2012 and Arm to your environment.<br>
247
+
248
+ Then:
249
+
250
+ call "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_arm\vcvarsx86_arm.bat"
251
+
252
+ or with Visual Studio 2013:
253
+
254
+ call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_arm\vcvarsx86_arm.bat"
255
+ nmake /f winarm.mk clean
256
+ nmake /f winarm.mk
257
+
258
+ ### Windows Shared Library
259
+
260
+ Modify libyuv.gyp from 'static_library' to 'shared_library', and add 'LIBYUV_BUILDING_SHARED_LIBRARY' to 'defines'. Then run this.
261
+
262
+ gclient runhooks
263
+
264
+ After this command follow the building the library instructions above.
265
+
266
+ If you get a compile error for atlthunk.lib on Windows, read http://www.chromium.org/developers/how-tos/build-instructions-windows
267
+
268
+ ### 64 bit Windows
269
+
270
+ set GYP_DEFINES=target_arch=x64
271
+ gclient runhooks V=1
272
+
273
+ ### ARM Linux
274
+
275
+ export GYP_DEFINES="target_arch=arm"
276
+ export CROSSTOOL=`<path>`/arm-none-linux-gnueabi
277
+ export CXX=$CROSSTOOL-g++
278
+ export CC=$CROSSTOOL-gcc
279
+ export AR=$CROSSTOOL-ar
280
+ export AS=$CROSSTOOL-as
281
+ export RANLIB=$CROSSTOOL-ranlib
282
+ gclient runhooks
283
+
284
+ ## Running Unittests
285
+
286
+ ### Windows
287
+
288
+ out\Release\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter="*"
289
+
290
+ ### OSX
291
+
292
+ out/Release/libyuv_unittest --gtest_filter="*"
293
+
294
+ ### Linux
295
+
296
+ out/Release/libyuv_unittest --gtest_filter="*"
297
+
298
+ Replace --gtest_filter="*" with specific unittest to run. May include wildcards. e.g.
299
+
300
+ out/Release/libyuv_unittest --gtest_filter=libyuvTest.I420ToARGB_Opt
301
+
302
+ ## CPU Emulator tools
303
+
304
+ ### Intel SDE (Software Development Emulator)
305
+
306
+ Pre-requisite: Install IntelSDE for Windows: http://software.intel.com/en-us/articles/intel-software-development-emulator
307
+
308
+ Then run:
309
+
310
+ c:\intelsde\sde -hsw -- out\release\libyuv_unittest.exe --gtest_filter=*
311
+
312
+
313
+ ## Memory tools
314
+
315
+ ### Running Dr Memory memcheck for Windows
316
+
317
+ Pre-requisite: Install Dr Memory for Windows and add it to your path: http://www.drmemory.org/docs/page_install_windows.html
318
+
319
+ set GYP_DEFINES=build_for_tool=drmemory target_arch=ia32
320
+ call python gyp_libyuv -fninja -G msvs_version=2013
321
+ ninja -C out\Debug
322
+ drmemory out\Debug\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter=*
323
+
324
+ ### Running UBSan
325
+
326
+ See Chromium instructions for sanitizers: https://www.chromium.org/developers/testing/undefinedbehaviorsanitizer
327
+
328
+ Sanitizers available: TSan, MSan, ASan, UBSan, LSan
329
+
330
+ GYP_DEFINES='ubsan=1' gclient runhooks
331
+ ninja -C out/Release
332
+
333
+ ### Running Valgrind memcheck
334
+
335
+ Memory errors and race conditions can be found by running tests under special memory tools. [Valgrind] [1] is an instrumentation framework for building dynamic analysis tools. Various tests and profilers are built upon it to find memory handling errors and memory leaks, for instance.
336
+
337
+ [1]: http://valgrind.org
338
+
339
+ solutions = [
340
+ { "name" : "libyuv",
341
+ "url" : "https://chromium.googlesource.com/libyuv/libyuv",
342
+ "deps_file" : "DEPS",
343
+ "managed" : True,
344
+ "custom_deps" : {
345
+ "libyuv/chromium/src/third_party/valgrind": "https://chromium.googlesource.com/chromium/deps/valgrind/binaries",
346
+ },
347
+ "safesync_url": "",
348
+ },
349
+ ]
350
+
351
+ Then run:
352
+
353
+ GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=memcheck" python gyp_libyuv
354
+ ninja -C out/Debug
355
+ valgrind out/Debug/libyuv_unittest
356
+
357
+
358
+ For more information, see http://www.chromium.org/developers/how-tos/using-valgrind
359
+
360
+ ### Running Thread Sanitizer (TSan)
361
+
362
+ GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=tsan" python gyp_libyuv
363
+ ninja -C out/Debug
364
+ valgrind out/Debug/libyuv_unittest
365
+
366
+ For more info, see http://www.chromium.org/developers/how-tos/using-valgrind/threadsanitizer
367
+
368
+ ### Running Address Sanitizer (ASan)
369
+
370
+ GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=asan" python gyp_libyuv
371
+ ninja -C out/Debug
372
+ valgrind out/Debug/libyuv_unittest
373
+
374
+ For more info, see http://dev.chromium.org/developers/testing/addresssanitizer
375
+
376
+ ## Benchmarking
377
+
378
+ The unittests can be used to benchmark.
379
+
380
+ ### Windows
381
+
382
+ set LIBYUV_WIDTH=1280
383
+ set LIBYUV_HEIGHT=720
384
+ set LIBYUV_REPEAT=999
385
+ set LIBYUV_FLAGS=-1
386
+ out\Release\libyuv_unittest.exe --gtest_filter=*I420ToARGB_Opt
387
+
388
+
389
+ ### Linux and Mac
390
+
391
+ LIBYUV_WIDTH=1280 LIBYUV_HEIGHT=720 LIBYUV_REPEAT=1000 out/Release/libyuv_unittest --gtest_filter=*I420ToARGB_Opt
392
+
393
+ libyuvTest.I420ToARGB_Opt (547 ms)
394
+
395
+ Indicates 0.547 ms/frame for 1280 x 720.
396
+
397
+ ## Making a change
398
+
399
+ gclient sync
400
+ git checkout -b mycl -t origin/master
401
+ git pull
402
+ <edit files>
403
+ git add -u
404
+ git commit -m "my change"
405
+ git cl lint
406
+ git cl try
407
+ git cl upload -r a-reviewer@chomium.org -s
408
+ <once approved..>
409
+ git cl land