react-native-vision-camera-spoof-detector 1.1.22 → 1.1.24

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 (201) hide show
  1. package/android/CMakeLists.txt +12 -0
  2. package/android/build.gradle +10 -9
  3. package/android/src/main/cpp/cpp-adapter.cpp +6 -3
  4. package/android/src/main/java/com/faceantispoof/FaceAntiSpoofingAdvanced.kt +83 -0
  5. package/android/src/main/java/com/margelo/nitro/camera/spoofdetector/HybridSpoofDetectorOutput.kt +26 -11
  6. package/package.json +1 -1
  7. package/android/src/main/cpp/CMakeLists.txt +0 -33
  8. package/android/src/main/cpp/FaceAntiSpoofJSI.cpp +0 -142
  9. package/android/src/main/cpp/FastYuvJni.cpp +0 -111
  10. package/android/src/main/cpp/fast_yuv.cpp +0 -342
  11. package/android/src/main/cpp/fast_yuv.h +0 -23
  12. package/android/src/main/cpp/libyuv/.clang-format +0 -6
  13. package/android/src/main/cpp/libyuv/.gn +0 -40
  14. package/android/src/main/cpp/libyuv/.vpython3 +0 -410
  15. package/android/src/main/cpp/libyuv/AUTHORS +0 -7
  16. package/android/src/main/cpp/libyuv/Android.bp +0 -202
  17. package/android/src/main/cpp/libyuv/Android.mk +0 -106
  18. package/android/src/main/cpp/libyuv/BUILD.gn +0 -490
  19. package/android/src/main/cpp/libyuv/CM_linux_packages.cmake +0 -70
  20. package/android/src/main/cpp/libyuv/CMakeLists.txt +0 -259
  21. package/android/src/main/cpp/libyuv/DEPS +0 -935
  22. package/android/src/main/cpp/libyuv/DIR_METADATA +0 -3
  23. package/android/src/main/cpp/libyuv/LICENSE +0 -29
  24. package/android/src/main/cpp/libyuv/OWNERS +0 -11
  25. package/android/src/main/cpp/libyuv/PATENTS +0 -24
  26. package/android/src/main/cpp/libyuv/PRESUBMIT.py +0 -65
  27. package/android/src/main/cpp/libyuv/README.chromium +0 -11
  28. package/android/src/main/cpp/libyuv/README.md +0 -19
  29. package/android/src/main/cpp/libyuv/build_overrides/build.gni +0 -60
  30. package/android/src/main/cpp/libyuv/build_overrides/gtest.gni +0 -19
  31. package/android/src/main/cpp/libyuv/build_overrides/partition_alloc.gni +0 -17
  32. package/android/src/main/cpp/libyuv/codereview.settings +0 -5
  33. package/android/src/main/cpp/libyuv/docs/deprecated_builds.md +0 -409
  34. package/android/src/main/cpp/libyuv/docs/environment_variables.md +0 -64
  35. package/android/src/main/cpp/libyuv/docs/feature_detection.md +0 -108
  36. package/android/src/main/cpp/libyuv/docs/filtering.md +0 -196
  37. package/android/src/main/cpp/libyuv/docs/formats.md +0 -208
  38. package/android/src/main/cpp/libyuv/docs/getting_started.md +0 -296
  39. package/android/src/main/cpp/libyuv/docs/rotation.md +0 -107
  40. package/android/src/main/cpp/libyuv/download_vs_toolchain.py +0 -29
  41. package/android/src/main/cpp/libyuv/include/libyuv/basic_types.h +0 -68
  42. package/android/src/main/cpp/libyuv/include/libyuv/compare.h +0 -111
  43. package/android/src/main/cpp/libyuv/include/libyuv/compare_row.h +0 -112
  44. package/android/src/main/cpp/libyuv/include/libyuv/convert.h +0 -1117
  45. package/android/src/main/cpp/libyuv/include/libyuv/convert_argb.h +0 -2335
  46. package/android/src/main/cpp/libyuv/include/libyuv/convert_from.h +0 -203
  47. package/android/src/main/cpp/libyuv/include/libyuv/convert_from_argb.h +0 -394
  48. package/android/src/main/cpp/libyuv/include/libyuv/cpu_id.h +0 -147
  49. package/android/src/main/cpp/libyuv/include/libyuv/cpu_support.h +0 -99
  50. package/android/src/main/cpp/libyuv/include/libyuv/loongson_intrinsics.h +0 -1949
  51. package/android/src/main/cpp/libyuv/include/libyuv/mjpeg_decoder.h +0 -195
  52. package/android/src/main/cpp/libyuv/include/libyuv/planar_functions.h +0 -1131
  53. package/android/src/main/cpp/libyuv/include/libyuv/rotate.h +0 -296
  54. package/android/src/main/cpp/libyuv/include/libyuv/rotate_argb.h +0 -37
  55. package/android/src/main/cpp/libyuv/include/libyuv/rotate_row.h +0 -265
  56. package/android/src/main/cpp/libyuv/include/libyuv/row.h +0 -6738
  57. package/android/src/main/cpp/libyuv/include/libyuv/row_sve.h +0 -2154
  58. package/android/src/main/cpp/libyuv/include/libyuv/scale.h +0 -336
  59. package/android/src/main/cpp/libyuv/include/libyuv/scale_argb.h +0 -76
  60. package/android/src/main/cpp/libyuv/include/libyuv/scale_rgb.h +0 -42
  61. package/android/src/main/cpp/libyuv/include/libyuv/scale_row.h +0 -1726
  62. package/android/src/main/cpp/libyuv/include/libyuv/scale_uv.h +0 -51
  63. package/android/src/main/cpp/libyuv/include/libyuv/version.h +0 -16
  64. package/android/src/main/cpp/libyuv/include/libyuv/video_common.h +0 -222
  65. package/android/src/main/cpp/libyuv/include/libyuv.h +0 -33
  66. package/android/src/main/cpp/libyuv/infra/config/OWNERS +0 -3
  67. package/android/src/main/cpp/libyuv/infra/config/PRESUBMIT.py +0 -17
  68. package/android/src/main/cpp/libyuv/infra/config/README.md +0 -2
  69. package/android/src/main/cpp/libyuv/infra/config/codereview.settings +0 -6
  70. package/android/src/main/cpp/libyuv/infra/config/commit-queue.cfg +0 -144
  71. package/android/src/main/cpp/libyuv/infra/config/cr-buildbucket.cfg +0 -1185
  72. package/android/src/main/cpp/libyuv/infra/config/luci-logdog.cfg +0 -9
  73. package/android/src/main/cpp/libyuv/infra/config/luci-milo.cfg +0 -246
  74. package/android/src/main/cpp/libyuv/infra/config/luci-scheduler.cfg +0 -385
  75. package/android/src/main/cpp/libyuv/infra/config/main.star +0 -402
  76. package/android/src/main/cpp/libyuv/infra/config/project.cfg +0 -16
  77. package/android/src/main/cpp/libyuv/infra/config/realms.cfg +0 -111
  78. package/android/src/main/cpp/libyuv/libyuv.gni +0 -34
  79. package/android/src/main/cpp/libyuv/libyuv.gyp +0 -149
  80. package/android/src/main/cpp/libyuv/libyuv.gypi +0 -87
  81. package/android/src/main/cpp/libyuv/linux.mk +0 -96
  82. package/android/src/main/cpp/libyuv/public.mk +0 -13
  83. package/android/src/main/cpp/libyuv/pylintrc +0 -49
  84. package/android/src/main/cpp/libyuv/riscv_script/prepare_toolchain_qemu.sh +0 -74
  85. package/android/src/main/cpp/libyuv/riscv_script/riscv-clang.cmake +0 -56
  86. package/android/src/main/cpp/libyuv/riscv_script/run_qemu.sh +0 -15
  87. package/android/src/main/cpp/libyuv/source/compare.cc +0 -435
  88. package/android/src/main/cpp/libyuv/source/compare_common.cc +0 -74
  89. package/android/src/main/cpp/libyuv/source/compare_gcc.cc +0 -362
  90. package/android/src/main/cpp/libyuv/source/compare_neon.cc +0 -96
  91. package/android/src/main/cpp/libyuv/source/compare_neon64.cc +0 -223
  92. package/android/src/main/cpp/libyuv/source/compare_win.cc +0 -241
  93. package/android/src/main/cpp/libyuv/source/convert.cc +0 -4746
  94. package/android/src/main/cpp/libyuv/source/convert_argb.cc +0 -9179
  95. package/android/src/main/cpp/libyuv/source/convert_from.cc +0 -866
  96. package/android/src/main/cpp/libyuv/source/convert_from_argb.cc +0 -3671
  97. package/android/src/main/cpp/libyuv/source/convert_jpeg.cc +0 -602
  98. package/android/src/main/cpp/libyuv/source/convert_to_argb.cc +0 -391
  99. package/android/src/main/cpp/libyuv/source/convert_to_i420.cc +0 -288
  100. package/android/src/main/cpp/libyuv/source/cpu_id.cc +0 -496
  101. package/android/src/main/cpp/libyuv/source/mjpeg_decoder.cc +0 -580
  102. package/android/src/main/cpp/libyuv/source/mjpeg_validate.cc +0 -71
  103. package/android/src/main/cpp/libyuv/source/planar_functions.cc +0 -5663
  104. package/android/src/main/cpp/libyuv/source/rotate.cc +0 -1241
  105. package/android/src/main/cpp/libyuv/source/rotate_any.cc +0 -76
  106. package/android/src/main/cpp/libyuv/source/rotate_argb.cc +0 -259
  107. package/android/src/main/cpp/libyuv/source/rotate_common.cc +0 -208
  108. package/android/src/main/cpp/libyuv/source/rotate_gcc.cc +0 -505
  109. package/android/src/main/cpp/libyuv/source/rotate_lsx.cc +0 -233
  110. package/android/src/main/cpp/libyuv/source/rotate_neon.cc +0 -219
  111. package/android/src/main/cpp/libyuv/source/rotate_neon64.cc +0 -273
  112. package/android/src/main/cpp/libyuv/source/rotate_sme.cc +0 -174
  113. package/android/src/main/cpp/libyuv/source/rotate_win.cc +0 -253
  114. package/android/src/main/cpp/libyuv/source/row_any.cc +0 -2519
  115. package/android/src/main/cpp/libyuv/source/row_common.cc +0 -4461
  116. package/android/src/main/cpp/libyuv/source/row_gcc.cc +0 -9570
  117. package/android/src/main/cpp/libyuv/source/row_lasx.cc +0 -2343
  118. package/android/src/main/cpp/libyuv/source/row_lsx.cc +0 -3030
  119. package/android/src/main/cpp/libyuv/source/row_neon.cc +0 -4026
  120. package/android/src/main/cpp/libyuv/source/row_neon64.cc +0 -5617
  121. package/android/src/main/cpp/libyuv/source/row_rvv.cc +0 -2599
  122. package/android/src/main/cpp/libyuv/source/row_sme.cc +0 -1183
  123. package/android/src/main/cpp/libyuv/source/row_sve.cc +0 -1088
  124. package/android/src/main/cpp/libyuv/source/row_win.cc +0 -6453
  125. package/android/src/main/cpp/libyuv/source/scale.cc +0 -2710
  126. package/android/src/main/cpp/libyuv/source/scale_any.cc +0 -991
  127. package/android/src/main/cpp/libyuv/source/scale_argb.cc +0 -1158
  128. package/android/src/main/cpp/libyuv/source/scale_common.cc +0 -1977
  129. package/android/src/main/cpp/libyuv/source/scale_gcc.cc +0 -2947
  130. package/android/src/main/cpp/libyuv/source/scale_lsx.cc +0 -739
  131. package/android/src/main/cpp/libyuv/source/scale_neon.cc +0 -1449
  132. package/android/src/main/cpp/libyuv/source/scale_neon64.cc +0 -1552
  133. package/android/src/main/cpp/libyuv/source/scale_rgb.cc +0 -82
  134. package/android/src/main/cpp/libyuv/source/scale_rvv.cc +0 -1971
  135. package/android/src/main/cpp/libyuv/source/scale_sme.cc +0 -555
  136. package/android/src/main/cpp/libyuv/source/scale_uv.cc +0 -1159
  137. package/android/src/main/cpp/libyuv/source/scale_win.cc +0 -1392
  138. package/android/src/main/cpp/libyuv/source/test.sh +0 -35
  139. package/android/src/main/cpp/libyuv/source/video_common.cc +0 -62
  140. package/android/src/main/cpp/libyuv/tools_libyuv/OWNERS +0 -4
  141. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/roll_deps.py +0 -931
  142. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/roll_deps_test.py +0 -164
  143. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS +0 -21
  144. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.new +0 -13
  145. package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.old +0 -13
  146. package/android/src/main/cpp/libyuv/tools_libyuv/get_landmines.py +0 -38
  147. package/android/src/main/cpp/libyuv/tools_libyuv/msan/OWNERS +0 -3
  148. package/android/src/main/cpp/libyuv/tools_libyuv/msan/blacklist.txt +0 -9
  149. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/OWNERS +0 -3
  150. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/blacklist.txt +0 -15
  151. package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/vptr_blacklist.txt +0 -25
  152. package/android/src/main/cpp/libyuv/unit_test/basictypes_test.cc +0 -43
  153. package/android/src/main/cpp/libyuv/unit_test/color_test.cc +0 -848
  154. package/android/src/main/cpp/libyuv/unit_test/compare_test.cc +0 -739
  155. package/android/src/main/cpp/libyuv/unit_test/convert_argb_test.cc +0 -2867
  156. package/android/src/main/cpp/libyuv/unit_test/convert_test.cc +0 -2133
  157. package/android/src/main/cpp/libyuv/unit_test/cpu_test.cc +0 -427
  158. package/android/src/main/cpp/libyuv/unit_test/cpu_thread_test.cc +0 -63
  159. package/android/src/main/cpp/libyuv/unit_test/math_test.cc +0 -160
  160. package/android/src/main/cpp/libyuv/unit_test/planar_test.cc +0 -4731
  161. package/android/src/main/cpp/libyuv/unit_test/rotate_argb_test.cc +0 -334
  162. package/android/src/main/cpp/libyuv/unit_test/rotate_test.cc +0 -962
  163. package/android/src/main/cpp/libyuv/unit_test/scale_argb_test.cc +0 -590
  164. package/android/src/main/cpp/libyuv/unit_test/scale_plane_test.cc +0 -465
  165. package/android/src/main/cpp/libyuv/unit_test/scale_rgb_test.cc +0 -280
  166. package/android/src/main/cpp/libyuv/unit_test/scale_test.cc +0 -1135
  167. package/android/src/main/cpp/libyuv/unit_test/scale_uv_test.cc +0 -249
  168. package/android/src/main/cpp/libyuv/unit_test/testdata/arm_v7.txt +0 -12
  169. package/android/src/main/cpp/libyuv/unit_test/testdata/mips.txt +0 -7
  170. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson2k.txt +0 -5
  171. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson3.txt +0 -10
  172. package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson_mmi.txt +0 -7
  173. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64.txt +0 -4
  174. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv.txt +0 -4
  175. package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv_zvfh.txt +0 -4
  176. package/android/src/main/cpp/libyuv/unit_test/testdata/tegra3.txt +0 -23
  177. package/android/src/main/cpp/libyuv/unit_test/testdata/test0.jpg +0 -0
  178. package/android/src/main/cpp/libyuv/unit_test/testdata/test1.jpg +0 -0
  179. package/android/src/main/cpp/libyuv/unit_test/testdata/test2.jpg +0 -0
  180. package/android/src/main/cpp/libyuv/unit_test/testdata/test3.jpg +0 -0
  181. package/android/src/main/cpp/libyuv/unit_test/testdata/test4.jpg +0 -0
  182. package/android/src/main/cpp/libyuv/unit_test/unit_test.cc +0 -581
  183. package/android/src/main/cpp/libyuv/unit_test/unit_test.h +0 -232
  184. package/android/src/main/cpp/libyuv/unit_test/video_common_test.cc +0 -112
  185. package/android/src/main/cpp/libyuv/util/Makefile +0 -9
  186. package/android/src/main/cpp/libyuv/util/color.cc +0 -120
  187. package/android/src/main/cpp/libyuv/util/compare.cc +0 -67
  188. package/android/src/main/cpp/libyuv/util/cpuid.c +0 -211
  189. package/android/src/main/cpp/libyuv/util/i444tonv12_eg.cc +0 -28
  190. package/android/src/main/cpp/libyuv/util/psnr.cc +0 -291
  191. package/android/src/main/cpp/libyuv/util/psnr.h +0 -47
  192. package/android/src/main/cpp/libyuv/util/psnr_main.cc +0 -620
  193. package/android/src/main/cpp/libyuv/util/ssim.cc +0 -364
  194. package/android/src/main/cpp/libyuv/util/ssim.h +0 -38
  195. package/android/src/main/cpp/libyuv/util/yuvconstants.c +0 -114
  196. package/android/src/main/cpp/libyuv/util/yuvconvert.cc +0 -367
  197. package/android/src/main/cpp/libyuv/winarm.mk +0 -47
  198. package/android/src/main/java/com/faceantispoof/ByteBufferPool.kt +0 -68
  199. package/android/src/main/java/com/faceantispoof/FastYuv.kt +0 -51
  200. package/android/src/main/java/com/faceantispoof/YuvToFloatArrayConverter.kt +0 -584
  201. package/android/src/main/java/com/faceantispoof/YuvToRgbConverter.kt +0 -73
@@ -1,149 +0,0 @@
1
- # Copyright 2011 The LibYuv Project Authors. All rights reserved.
2
- #
3
- # Use of this source code is governed by a BSD-style license
4
- # that can be found in the LICENSE file in the root of the source
5
- # tree. An additional intellectual property rights grant can be found
6
- # in the file PATENTS. All contributing project authors may
7
- # be found in the AUTHORS file in the root of the source tree.
8
-
9
- {
10
- 'includes': [
11
- 'libyuv.gypi',
12
- ],
13
- # Make sure that if we are being compiled to an xcodeproj, nothing tries to
14
- # include a .pch.
15
- 'xcode_settings': {
16
- 'GCC_PREFIX_HEADER': '',
17
- 'GCC_PRECOMPILE_PREFIX_HEADER': 'NO',
18
- },
19
- 'variables': {
20
- 'use_system_libjpeg%': 0,
21
- # Can be enabled if your jpeg has GYP support.
22
- 'libyuv_disable_jpeg%': 1,
23
- # 'chromium_code' treats libyuv as internal and increases warning level.
24
- 'chromium_code': 1,
25
- # clang compiler default variable usable by other apps that include libyuv.
26
- 'clang%': 0,
27
- # Link-Time Optimizations.
28
- 'use_lto%': 0,
29
- 'build_neon': 0,
30
- 'conditions': [
31
- ['(target_arch == "armv7" or target_arch == "armv7s" or \
32
- (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\
33
- and (arm_neon == 1 or arm_neon_optional == 1)', {
34
- 'build_neon': 1,
35
- }],
36
- ],
37
- },
38
-
39
- 'targets': [
40
- {
41
- 'target_name': 'libyuv',
42
- # Change type to 'shared_library' to build .so or .dll files.
43
- 'type': 'static_library',
44
- 'variables': {
45
- 'optimize': 'max', # enable O2 and ltcg.
46
- },
47
- # Allows libyuv.a redistributable library without external dependencies.
48
- 'standalone_static_library': 1,
49
- 'conditions': [
50
- # Disable -Wunused-parameter
51
- ['clang == 1', {
52
- 'cflags': [
53
- '-Wno-unused-parameter',
54
- ],
55
- }],
56
- ['build_neon != 0', {
57
- 'defines': [
58
- 'LIBYUV_NEON',
59
- ],
60
- 'cflags!': [
61
- '-mfpu=vfp',
62
- '-mfpu=vfpv3',
63
- '-mfpu=vfpv3-d16',
64
- # '-mthumb', # arm32 not thumb
65
- ],
66
- 'conditions': [
67
- # Disable LTO in libyuv_neon target due to gcc 4.9 compiler bug.
68
- ['clang == 0 and use_lto == 1', {
69
- 'cflags!': [
70
- '-flto',
71
- '-ffat-lto-objects',
72
- ],
73
- }],
74
- # arm64 does not need -mfpu=neon option as neon is not optional
75
- ['target_arch != "arm64"', {
76
- 'cflags': [
77
- '-mfpu=neon',
78
- # '-marm', # arm32 not thumb
79
- ],
80
- }],
81
- ],
82
- }],
83
- ['OS != "ios" and libyuv_disable_jpeg != 1', {
84
- 'defines': [
85
- 'HAVE_JPEG'
86
- ],
87
- 'conditions': [
88
- # Caveat system jpeg support may not support motion jpeg
89
- [ 'use_system_libjpeg == 1', {
90
- 'dependencies': [
91
- '<(DEPTH)/third_party/libjpeg/libjpeg.gyp:libjpeg',
92
- ],
93
- }, {
94
- 'dependencies': [
95
- '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
96
- ],
97
- }],
98
- [ 'use_system_libjpeg == 1', {
99
- 'link_settings': {
100
- 'libraries': [
101
- '-ljpeg',
102
- ],
103
- }
104
- }],
105
- ],
106
- }],
107
- ], #conditions
108
- 'defines': [
109
- # Enable the following 3 macros to turn off assembly for specified CPU.
110
- # 'LIBYUV_DISABLE_X86',
111
- # 'LIBYUV_DISABLE_NEON',
112
- # Enable the following macro to build libyuv as a shared library (dll).
113
- # 'LIBYUV_USING_SHARED_LIBRARY',
114
- # TODO(fbarchard): Make these into gyp defines.
115
- ],
116
- 'include_dirs': [
117
- 'include',
118
- '.',
119
- ],
120
- 'direct_dependent_settings': {
121
- 'include_dirs': [
122
- 'include',
123
- '.',
124
- ],
125
- 'conditions': [
126
- ['OS == "android" and target_arch == "arm64"', {
127
- 'ldflags': [
128
- '-Wl,--dynamic-linker,/system/bin/linker64',
129
- ],
130
- }],
131
- ['OS == "android" and target_arch != "arm64"', {
132
- 'ldflags': [
133
- '-Wl,--dynamic-linker,/system/bin/linker',
134
- ],
135
- }],
136
- ], #conditions
137
- },
138
- 'sources': [
139
- '<@(libyuv_sources)',
140
- ],
141
- },
142
- ], # targets.
143
- }
144
-
145
- # Local Variables:
146
- # tab-width:2
147
- # indent-tabs-mode:nil
148
- # End:
149
- # vim: set expandtab tabstop=2 shiftwidth=2:
@@ -1,87 +0,0 @@
1
- # Copyright 2014 The LibYuv Project Authors. All rights reserved.
2
- #
3
- # Use of this source code is governed by a BSD-style license
4
- # that can be found in the LICENSE file in the root of the source
5
- # tree. An additional intellectual property rights grant can be found
6
- # in the file PATENTS. All contributing project authors may
7
- # be found in the AUTHORS file in the root of the source tree.
8
-
9
- {
10
- 'variables': {
11
- 'libyuv_sources': [
12
- # includes.
13
- 'include/libyuv.h',
14
- 'include/libyuv/basic_types.h',
15
- 'include/libyuv/compare.h',
16
- 'include/libyuv/compare_row.h',
17
- 'include/libyuv/convert.h',
18
- 'include/libyuv/convert_argb.h',
19
- 'include/libyuv/convert_from.h',
20
- 'include/libyuv/convert_from_argb.h',
21
- 'include/libyuv/cpu_id.h',
22
- 'include/libyuv/cpu_support.h',
23
- 'include/libyuv/loongson_intrinsics.h',
24
- 'include/libyuv/mjpeg_decoder.h',
25
- 'include/libyuv/planar_functions.h',
26
- 'include/libyuv/rotate.h',
27
- 'include/libyuv/rotate_argb.h',
28
- 'include/libyuv/rotate_row.h',
29
- 'include/libyuv/row.h',
30
- 'include/libyuv/scale.h',
31
- 'include/libyuv/scale_argb.h',
32
- 'include/libyuv/scale_rgb.h',
33
- 'include/libyuv/scale_row.h',
34
- 'include/libyuv/scale_uv.h',
35
- 'include/libyuv/version.h',
36
- 'include/libyuv/video_common.h',
37
-
38
- # sources.
39
- 'source/compare.cc',
40
- 'source/compare_common.cc',
41
- 'source/compare_gcc.cc',
42
- 'source/compare_neon.cc',
43
- 'source/compare_neon64.cc',
44
- 'source/compare_win.cc',
45
- 'source/convert.cc',
46
- 'source/convert_argb.cc',
47
- 'source/convert_from.cc',
48
- 'source/convert_from_argb.cc',
49
- 'source/convert_jpeg.cc',
50
- 'source/convert_to_argb.cc',
51
- 'source/convert_to_i420.cc',
52
- 'source/cpu_id.cc',
53
- 'source/mjpeg_decoder.cc',
54
- 'source/mjpeg_validate.cc',
55
- 'source/planar_functions.cc',
56
- 'source/rotate.cc',
57
- 'source/rotate_any.cc',
58
- 'source/rotate_argb.cc',
59
- 'source/rotate_common.cc',
60
- 'source/rotate_gcc.cc',
61
- 'source/rotate_lsx.cc',
62
- 'source/rotate_neon.cc',
63
- 'source/rotate_neon64.cc',
64
- 'source/rotate_win.cc',
65
- 'source/row_any.cc',
66
- 'source/row_common.cc',
67
- 'source/row_gcc.cc',
68
- 'source/row_lasx.cc',
69
- 'source/row_lsx.cc',
70
- 'source/row_neon.cc',
71
- 'source/row_neon64.cc',
72
- 'source/row_win.cc',
73
- 'source/scale.cc',
74
- 'source/scale_any.cc',
75
- 'source/scale_argb.cc',
76
- 'source/scale_common.cc',
77
- 'source/scale_gcc.cc',
78
- 'source/scale_lsx.cc',
79
- 'source/scale_neon.cc',
80
- 'source/scale_neon64.cc',
81
- 'source/scale_rgb.cc',
82
- 'source/scale_uv.cc',
83
- 'source/scale_win.cc',
84
- 'source/video_common.cc',
85
- ],
86
- }
87
- }
@@ -1,96 +0,0 @@
1
- # This is a generic makefile for libyuv for gcc.
2
- # make -f linux.mk CXX=clang++
3
-
4
- CC?=gcc
5
- CFLAGS?=-O2 -fomit-frame-pointer
6
- CFLAGS+=-Iinclude/
7
-
8
- CXX?=g++
9
- CXXFLAGS?=-O2 -fomit-frame-pointer
10
- CXXFLAGS+=-Iinclude/
11
-
12
- LOCAL_OBJ_FILES := \
13
- source/compare.o \
14
- source/compare_common.o \
15
- source/compare_gcc.o \
16
- source/compare_neon.o \
17
- source/compare_neon64.o \
18
- source/compare_win.o \
19
- source/convert.o \
20
- source/convert_argb.o \
21
- source/convert_from.o \
22
- source/convert_from_argb.o \
23
- source/convert_jpeg.o \
24
- source/convert_to_argb.o \
25
- source/convert_to_i420.o \
26
- source/cpu_id.o \
27
- source/mjpeg_decoder.o \
28
- source/mjpeg_validate.o \
29
- source/planar_functions.o \
30
- source/rotate.o \
31
- source/rotate_any.o \
32
- source/rotate_argb.o \
33
- source/rotate_common.o \
34
- source/rotate_gcc.o \
35
- source/rotate_lsx.o \
36
- source/rotate_neon.o \
37
- source/rotate_neon64.o \
38
- source/rotate_win.o \
39
- source/row_any.o \
40
- source/row_common.o \
41
- source/row_gcc.o \
42
- source/row_lasx.o \
43
- source/row_lsx.o \
44
- source/row_neon.o \
45
- source/row_neon64.o \
46
- source/row_rvv.o \
47
- source/row_win.o \
48
- source/scale.o \
49
- source/scale_any.o \
50
- source/scale_argb.o \
51
- source/scale_common.o \
52
- source/scale_gcc.o \
53
- source/scale_lsx.o \
54
- source/scale_neon.o \
55
- source/scale_neon64.o \
56
- source/scale_rgb.o \
57
- source/scale_rvv.o \
58
- source/scale_uv.o \
59
- source/scale_win.o \
60
- source/video_common.o
61
-
62
- .cc.o:
63
- $(CXX) -c $(CXXFLAGS) $*.cc -o $*.o
64
-
65
- .c.o:
66
- $(CC) -c $(CFLAGS) $*.c -o $*.o
67
-
68
- all: libyuv.a i444tonv12_eg yuvconvert yuvconstants cpuid psnr
69
-
70
- libyuv.a: $(LOCAL_OBJ_FILES)
71
- $(AR) $(ARFLAGS) $@ $(LOCAL_OBJ_FILES)
72
-
73
- # A C++ test utility that uses libyuv conversion.
74
- yuvconvert: util/yuvconvert.cc libyuv.a
75
- $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/yuvconvert.cc libyuv.a
76
-
77
- # A C test utility that generates yuvconstants for yuv to rgb.
78
- yuvconstants: util/yuvconstants.c libyuv.a
79
- $(CXX) $(CXXFLAGS) -Iutil/ -lm -o $@ util/yuvconstants.c libyuv.a
80
-
81
- # A standalone test utility
82
- psnr: util/psnr.cc
83
- $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/psnr.cc util/psnr_main.cc util/ssim.cc
84
-
85
- # A simple conversion example.
86
- i444tonv12_eg: util/i444tonv12_eg.cc libyuv.a
87
- $(CXX) $(CXXFLAGS) -o $@ util/i444tonv12_eg.cc libyuv.a
88
-
89
- # A C test utility that uses libyuv conversion from C.
90
- # gcc 4.4 and older require -fno-exceptions to avoid link error on __gxx_personality_v0
91
- # CC=gcc-4.4 CXXFLAGS=-fno-exceptions CXX=g++-4.4 make -f linux.mk
92
- cpuid: util/cpuid.c libyuv.a
93
- $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a
94
-
95
- clean:
96
- /bin/rm -f source/*.o *.ii *.s libyuv.a i444tonv12_eg yuvconvert yuvconstants cpuid psnr
@@ -1,13 +0,0 @@
1
- # This file contains all the common make variables which are useful for
2
- # anyone depending on this library.
3
- # Note that dependencies on NDK are not directly listed since NDK auto adds
4
- # them.
5
-
6
- LIBYUV_INCLUDES := $(LIBYUV_PATH)/include
7
-
8
- LIBYUV_C_FLAGS :=
9
-
10
- LIBYUV_CPP_FLAGS :=
11
-
12
- LIBYUV_LDLIBS :=
13
- LIBYUV_DEP_MODULES :=
@@ -1,49 +0,0 @@
1
- [MESSAGES CONTROL]
2
-
3
- # Disable the message, report, category or checker with the given id(s).
4
- # TODO(kjellander): Reduce this list to as small as possible.
5
- disable=I0010,I0011,bad-continuation,broad-except,duplicate-code,eval-used,exec-used,fixme,invalid-name,missing-docstring,no-init,no-member,too-few-public-methods,too-many-ancestors,too-many-arguments,too-many-branches,too-many-function-args,too-many-instance-attributes,too-many-lines,too-many-locals,too-many-public-methods,too-many-return-statements,too-many-statements
6
-
7
-
8
- [REPORTS]
9
-
10
- # Don't write out full reports, just messages.
11
- reports=no
12
-
13
-
14
- [FORMAT]
15
-
16
- # Maximum number of characters on a single line.
17
- max-line-length=79
18
-
19
- # We use four spaces for indents.
20
- indent-string=' '
21
-
22
- [BASIC]
23
-
24
- # List of builtins function names that should not be used, separated by a comma
25
- bad-functions=map,filter,apply,input
26
-
27
- # Naming style matching correct module names.
28
- module-naming-style=snake_case
29
-
30
- # Naming style matching correct constant names.
31
- const-naming-style=UPPER_CASE
32
-
33
- # Naming style matching correct class names.
34
- class-naming-style=PascalCase
35
-
36
- # Naming style matching correct function names.
37
- function-naming-style=snake_case
38
-
39
- # Regular expression matching correct method names.
40
- method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$
41
-
42
- # Naming style matching correct attribute names.
43
- attr-naming-style=snake_case
44
-
45
- # Naming style matching correct argument names.
46
- argument-naming-style=snake_case
47
-
48
- # Naming style matching correct variable names.
49
- variable-naming-style=snake_case
@@ -1,74 +0,0 @@
1
- #!/bin/bash
2
- set -ev
3
-
4
- # Download & build RISC-V Clang toolchain & QEMU emulator.
5
- # RISC-V Clang is for cross compile with the RISC-V Vector ISA.
6
- # RISC-V QEMU is used to run the test suite.
7
- #
8
- # Requirements: Linux host w/ working C++ compiler, git, cmake, ninja, wget, tar
9
-
10
- # NOTE: this script must be run from the top-level directory of the LIBYUV_SRC_DIR.
11
-
12
- RISCV_TRIPLE="riscv64-unknown-linux-gnu"
13
- RISCV_QEMU="qemu-riscv64"
14
-
15
- LIBYUV_SRC_DIR=$(pwd)
16
- BUILD_DIR="$LIBYUV_SRC_DIR"/build-toolchain-qemu
17
- INSTALL_QEMU="$BUILD_DIR"/riscv-qemu
18
- INSTALL_CLANG="$BUILD_DIR"/riscv-clang
19
-
20
- LLVM_VERSION="16.0.0"
21
- LLVM_NAME=llvm-project-"$LLVM_VERSION".src
22
-
23
- RISCV_GNU_TOOLCHAIN="$BUILD_DIR"/riscv-gnu-toolchain
24
- RISCV_CLANG_TOOLCHAIN="$BUILD_DIR"/"$LLVM_NAME"
25
-
26
- QEMU_NAME="qemu-7.0.0"
27
-
28
- mkdir -p "$BUILD_DIR"
29
- cd "$BUILD_DIR"
30
-
31
- # Download and install RISC-V GNU Toolchain (needed to build Clang)
32
- if [ ! -d "$RISCV_GNU_TOOLCHAIN" ]
33
- then
34
- git clone git@github.com:riscv/riscv-gnu-toolchain.git
35
- pushd "$RISCV_GNU_TOOLCHAIN"
36
- git submodule update --init --recursive
37
- ./configure --with-cmodel=medany --prefix="$INSTALL_CLANG"
38
- ionice nice make linux -j `nproc` install
39
- popd
40
- fi
41
-
42
- # Download Clang toolchain & build cross compiler
43
- if [ ! -d "$RISCV_CLANG_TOOLCHAIN" ]
44
- then
45
- wget https://github.com/llvm/llvm-project/releases/download/llvmorg-"$LLVM_VERSION"/"$LLVM_NAME".tar.xz
46
- tar xvJf "$LLVM_NAME".tar.xz
47
- pushd "$RISCV_CLANG_TOOLCHAIN"
48
- cmake -DCMAKE_INSTALL_PREFIX="$INSTALL_CLANG" \
49
- -DCMAKE_BUILD_TYPE=Release \
50
- -DLLVM_TARGETS_TO_BUILD="RISCV" \
51
- -DLLVM_ENABLE_PROJECTS="clang" \
52
- -DLLVM_DEFAULT_TARGET_TRIPLE="$RISCV_TRIPLE" \
53
- -DLLVM_INSTALL_TOOLCHAIN_ONLY=On \
54
- -DDEFAULT_SYSROOT=../sysroot \
55
- -G "Ninja" "$RISCV_CLANG_TOOLCHAIN"/llvm
56
- ionice nice ninja -j `nproc`
57
- ionice nice ninja -j `nproc` install
58
- popd
59
- pushd "$INSTALL_CLANG"/bin
60
- ln -sf clang "$RISCV_TRIPLE"-clang
61
- ln -sf clang++ "$RISCV_TRIPLE"-clang++
62
- popd
63
- fi
64
-
65
- # Download QEMU and build the riscv64 Linux usermode emulator
66
- if [ ! -d "$QEMU_NAME" ]
67
- then
68
- wget https://download.qemu.org/"$QEMU_NAME".tar.xz
69
- tar xvJf "$QEMU_NAME".tar.xz
70
- pushd "$QEMU_NAME"
71
- ./configure --target-list=riscv64-linux-user --prefix="$INSTALL_QEMU"
72
- ionice nice make -j `nproc` install
73
- popd
74
- fi
@@ -1,56 +0,0 @@
1
- set(CMAKE_CROSSCOMPILING TRUE)
2
- set(CMAKE_SYSTEM_NAME "Linux")
3
- set(CMAKE_SYSTEM_PROCESSOR "riscv64")
4
-
5
- option(USE_RVV "Enable riscv vector or not." ON)
6
- option(USE_AUTO_VECTORIZER "Enable riscv auto vectorizer or not." OFF)
7
-
8
- # Avoid to use system path for cross-compile
9
- set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH FALSE)
10
-
11
- set(TOOLCHAIN_PATH "" CACHE STRING "The toolcahin path.")
12
- if(NOT TOOLCHAIN_PATH)
13
- set(TOOLCHAIN_PATH ${CMAKE_SOURCE_DIR}/build-toolchain-qemu/riscv-clang)
14
- endif()
15
-
16
- set(TOOLCHAIN_PREFIX "riscv64-unknown-linux-gnu-" CACHE STRING "The toolcahin prefix.")
17
-
18
- # toolchain setting
19
- set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}clang")
20
- set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}clang++")
21
-
22
- # CMake will just use the host-side tools for the following tools, so we setup them here.
23
- set(CMAKE_C_COMPILER_AR "${TOOLCHAIN_PATH}/bin/llvm-ar")
24
- set(CMAKE_CXX_COMPILER_AR "${TOOLCHAIN_PATH}/bin/llvm-ar")
25
- set(CMAKE_C_COMPILER_RANLIB "${TOOLCHAIN_PATH}/bin/llvm-ranlib")
26
- set(CMAKE_CXX_COMPILER_RANLIB "${TOOLCHAIN_PATH}/bin/llvm-ranlib")
27
- set(CMAKE_OBJDUMP "${TOOLCHAIN_PATH}/bin/llvm-objdump")
28
- set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/llvm-objcopy")
29
-
30
- # compile options
31
- set(RISCV_COMPILER_FLAGS "" CACHE STRING "Compile flags")
32
- # if user provides RISCV_COMPILER_FLAGS, appeding compile flags is avoided.
33
- if(RISCV_COMPILER_FLAGS STREQUAL "")
34
- message(STATUS "USE_RVV: ${USE_RVV}")
35
- message(STATUS "USE_AUTO_VECTORIZER: ${USE_AUTO_VECTORIZER}")
36
- if(USE_RVV)
37
- list(APPEND RISCV_COMPILER_FLAGS "-march=rv64gcv")
38
- if(NOT USE_AUTO_VECTORIZER)
39
- # Disable auto-vectorizer
40
- add_compile_options(-fno-vectorize -fno-slp-vectorize)
41
- endif()
42
- else()
43
- list(APPEND RISCV_COMPILER_FLAGS "-march=rv64gc")
44
- endif()
45
- endif()
46
- add_compile_options("-Wuninitialized")
47
- message(STATUS "RISCV_COMPILER_FLAGS: ${RISCV_COMPILER_FLAGS}")
48
-
49
- set(CMAKE_C_FLAGS "${RISCV_COMPILER_FLAGS} ${CMAKE_C_FLAGS}")
50
- set(CMAKE_CXX_FLAGS "${RISCV_COMPILER_FLAGS} ${CMAKE_CXX_FLAGS}")
51
-
52
- set(RISCV_LINKER_FLAGS "-lstdc++ -lpthread -lm -ldl")
53
- set(RISCV_LINKER_FLAGS_EXE)
54
- set(CMAKE_SHARED_LINKER_FLAGS "${RISCV_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}")
55
- set(CMAKE_MODULE_LINKER_FLAGS "${RISCV_LINKER_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}")
56
- set(CMAKE_EXE_LINKER_FLAGS "${RISCV_LINKER_FLAGS} ${RISCV_LINKER_FLAGS_EXE} ${CMAKE_EXE_LINKER_FLAGS}")
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
- set -x
3
- set -e
4
-
5
- USE_RVV="${USE_RVV:-OFF}"
6
- TOOLCHAIN_PATH="${TOOLCHAIN_PATH:-../../build-toolchain-qemu/riscv-clang}"
7
- QEMU_PREFIX_PATH="${QEMU_PREFIX_PATH:-../../build-toolchain-qemu/riscv-qemu/}"
8
-
9
- if [ "${USE_RVV}" = "ON" ];then
10
- QEMU_OPTION="-cpu rv64,zba=true,zbb=true,zbc=true,zbs=true,v=true,vlen=512,elen=64,vext_spec=v1.0 -L ${TOOLCHAIN_PATH}/sysroot"
11
- else
12
- QEMU_OPTION="-cpu rv64,zba=true,zbb=true,zbc=true,zbs=true -L ${TOOLCHAIN_PATH}/sysroot"
13
- fi
14
-
15
- $QEMU_PREFIX_PATH/bin/qemu-riscv64 $QEMU_OPTION $@