Permalink
Browse files

Clean old changes and fix module building on armv5

  • Loading branch information...
0 parents commit aaf534d58f48a0da9e0a416e8598a4c56093a3f0 @mikegapinski mikegapinski committed Nov 21, 2011
Showing with 55,514 additions and 0 deletions.
  1. +30 −0 Android.mk
  2. 0 MODULE_LICENSE_BSD
  3. +111 −0 NOTICE
  4. +18 −0 README
  5. +96 −0 android-webrtc.mk
  6. +1 −0 src/common_audio/OWNERS
  7. +3 −0 src/common_audio/resampler/OWNERS
  8. +110 −0 src/common_audio/resampler/main/interface/resampler.h
  9. +58 −0 src/common_audio/resampler/main/source/Android.mk
  10. +981 −0 src/common_audio/resampler/main/source/resampler.cc
  11. +40 −0 src/common_audio/resampler/main/source/resampler.gyp
  12. +3 −0 src/common_audio/signal_processing_library/OWNERS
  13. +1,771 −0 src/common_audio/signal_processing_library/main/interface/signal_processing_library.h
  14. +303 −0 src/common_audio/signal_processing_library/main/interface/spl_inl.h
  15. +102 −0 src/common_audio/signal_processing_library/main/source/Android.mk
  16. +34 −0 src/common_audio/signal_processing_library/main/source/add_sat_w16.c
  17. +47 −0 src/common_audio/signal_processing_library/main/source/add_sat_w32.c
  18. +103 −0 src/common_audio/signal_processing_library/main/source/auto_corr_to_refl_coef.c
  19. +141 −0 src/common_audio/signal_processing_library/main/source/auto_correlation.c
  20. +51 −0 src/common_audio/signal_processing_library/main/source/complex_bit_reverse.c
  21. +140 −0 src/common_audio/signal_processing_library/main/source/complex_fft.c
  22. +155 −0 src/common_audio/signal_processing_library/main/source/complex_ifft.c
  23. +108 −0 src/common_audio/signal_processing_library/main/source/copy_set_operations.c
  24. +60 −0 src/common_audio/signal_processing_library/main/source/cos_table.c
  25. +267 −0 src/common_audio/signal_processing_library/main/source/cross_correlation.c
  26. +144 −0 src/common_audio/signal_processing_library/main/source/division_operations.c
  27. +91 −0 src/common_audio/signal_processing_library/main/source/dot_product_with_scale.c
  28. +59 −0 src/common_audio/signal_processing_library/main/source/downsample_fast.c
  29. +36 −0 src/common_audio/signal_processing_library/main/source/energy.c
  30. +92 −0 src/common_audio/signal_processing_library/main/source/filter_ar.c
  31. +49 −0 src/common_audio/signal_processing_library/main/source/filter_ar_fast_q12.c
  32. +49 −0 src/common_audio/signal_processing_library/main/source/filter_ma_fast_q12.c
  33. +41 −0 src/common_audio/signal_processing_library/main/source/get_hanning_window.c
  34. +44 −0 src/common_audio/signal_processing_library/main/source/get_scaling_square.c
  35. +44 −0 src/common_audio/signal_processing_library/main/source/get_size_in_bits.c
  36. +53 −0 src/common_audio/signal_processing_library/main/source/hanning_table.c
  37. +120 −0 src/common_audio/signal_processing_library/main/source/ilbc_specific_functions.c
  38. +259 −0 src/common_audio/signal_processing_library/main/source/levinson_durbin.c
  39. +57 −0 src/common_audio/signal_processing_library/main/source/lpc_to_refl_coef.c
  40. +305 −0 src/common_audio/signal_processing_library/main/source/min_max_operations.c
  41. +42 −0 src/common_audio/signal_processing_library/main/source/norm_u32.c
  42. +40 −0 src/common_audio/signal_processing_library/main/source/norm_w16.c
  43. +45 −0 src/common_audio/signal_processing_library/main/source/norm_w32.c
  44. +85 −0 src/common_audio/signal_processing_library/main/source/randn_table.c
  45. +52 −0 src/common_audio/signal_processing_library/main/source/randomization_functions.c
  46. +60 −0 src/common_audio/signal_processing_library/main/source/refl_coef_to_lpc.c
  47. +505 −0 src/common_audio/signal_processing_library/main/source/resample.c
  48. +186 −0 src/common_audio/signal_processing_library/main/source/resample_48khz.c
  49. +135 −0 src/common_audio/signal_processing_library/main/source/resample_by_2.c
  50. +679 −0 src/common_audio/signal_processing_library/main/source/resample_by_2_internal.c
  51. +47 −0 src/common_audio/signal_processing_library/main/source/resample_by_2_internal.h
  52. +242 −0 src/common_audio/signal_processing_library/main/source/resample_fractional.c
  53. +60 −0 src/common_audio/signal_processing_library/main/source/sin_table.c
  54. +150 −0 src/common_audio/signal_processing_library/main/source/sin_table_1024.c
  55. +84 −0 src/common_audio/signal_processing_library/main/source/spl.gyp
  56. +184 −0 src/common_audio/signal_processing_library/main/source/spl_sqrt.c
  57. +53 −0 src/common_audio/signal_processing_library/main/source/spl_sqrt_floor.c
  58. +25 −0 src/common_audio/signal_processing_library/main/source/spl_version.c
  59. +200 −0 src/common_audio/signal_processing_library/main/source/splitting_filter.c
  60. +35 −0 src/common_audio/signal_processing_library/main/source/sqrt_of_one_minus_x_squared.c
  61. +48 −0 src/common_audio/signal_processing_library/main/source/sub_sat_w16.c
  62. +39 −0 src/common_audio/signal_processing_library/main/source/sub_sat_w32.c
  63. +151 −0 src/common_audio/signal_processing_library/main/source/vector_scaling_operations.c
  64. +227 −0 src/common_audio/signal_processing_library/main/source/webrtc_fft_4ofq14_gcc_android.s
  65. +221 −0 src/common_audio/signal_processing_library/main/source/webrtc_fft_4oiq14_gcc_android.s
  66. +704 −0 src/common_audio/signal_processing_library/main/source/webrtc_fft_t_1024_8.c
  67. +27 −0 src/common_audio/signal_processing_library/main/source/webrtc_fft_t_rad.c
  68. +479 −0 src/common_audio/signal_processing_library/main/test/unit_test/unit_test.cc
  69. +30 −0 src/common_audio/signal_processing_library/main/test/unit_test/unit_test.h
  70. +2 −0 src/common_audio/vad/OWNERS
  71. +159 −0 src/common_audio/vad/main/interface/webrtc_vad.h
  72. +64 −0 src/common_audio/vad/main/source/Android.mk
  73. +51 −0 src/common_audio/vad/main/source/vad.gyp
  74. +80 −0 src/common_audio/vad/main/source/vad_const.c
  75. +59 −0 src/common_audio/vad/main/source/vad_const.h
  76. +685 −0 src/common_audio/vad/main/source/vad_core.c
  77. +132 −0 src/common_audio/vad/main/source/vad_core.h
  78. +95 −0 src/common_audio/vad/main/source/vad_defines.h
  79. +267 −0 src/common_audio/vad/main/source/vad_filterbank.c
  80. +143 −0 src/common_audio/vad/main/source/vad_filterbank.h
  81. +70 −0 src/common_audio/vad/main/source/vad_gmm.c
  82. +47 −0 src/common_audio/vad/main/source/vad_gmm.h
  83. +231 −0 src/common_audio/vad/main/source/vad_sp.c
  84. +60 −0 src/common_audio/vad/main/source/vad_sp.h
  85. +197 −0 src/common_audio/vad/main/source/webrtc_vad.c
  86. +123 −0 src/common_audio/vad/main/test/unit_test/unit_test.cc
  87. +28 −0 src/common_audio/vad/main/test/unit_test/unit_test.h
  88. +595 −0 src/common_types.h
  89. +2 −0 src/modules/audio_processing/OWNERS
  90. +260 −0 src/modules/audio_processing/aec/main/interface/echo_cancellation.h
  91. +953 −0 src/modules/audio_processing/aec/main/matlab/fullaec.m
  92. +61 −0 src/modules/audio_processing/aec/main/source/Android.mk
  93. +49 −0 src/modules/audio_processing/aec/main/source/aec.gyp
  94. +1,456 −0 src/modules/audio_processing/aec/main/source/aec_core.c
  95. +193 −0 src/modules/audio_processing/aec/main/source/aec_core.h
  96. +435 −0 src/modules/audio_processing/aec/main/source/aec_core_sse2.c
  97. +522 −0 src/modules/audio_processing/aec/main/source/aec_rdft.c
  98. +23 −0 src/modules/audio_processing/aec/main/source/aec_rdft.h
  99. +209 −0 src/modules/audio_processing/aec/main/source/aec_rdft_sse2.c
  100. +821 −0 src/modules/audio_processing/aec/main/source/echo_cancellation.c
  101. +235 −0 src/modules/audio_processing/aec/main/source/resampler.c
  102. +32 −0 src/modules/audio_processing/aec/main/source/resampler.h
  103. +206 −0 src/modules/audio_processing/aecm/main/interface/echo_control_mobile.h
  104. +447 −0 src/modules/audio_processing/aecm/main/matlab/compsup.m
  105. +22 −0 src/modules/audio_processing/aecm/main/matlab/getBspectrum.m
  106. +21 −0 src/modules/audio_processing/aecm/main/matlab/hisser2.m
  107. +19 −0 src/modules/audio_processing/aecm/main/matlab/main2.m
  108. +269 −0 src/modules/audio_processing/aecm/main/matlab/matlab/AECMobile.m
  109. +98 −0 src/modules/audio_processing/aecm/main/matlab/matlab/align.m
  110. +88 −0 src/modules/audio_processing/aecm/main/matlab/matlab/calcFilterGain.m
  111. +105 −0 src/modules/audio_processing/aecm/main/matlab/matlab/calcStepSize.m
  112. +42 −0 src/modules/audio_processing/aecm/main/matlab/matlab/fallerEstimator.m
  113. +22 −0 src/modules/audio_processing/aecm/main/matlab/matlab/getBspectrum.m
  114. +21 −0 src/modules/audio_processing/aecm/main/matlab/matlab/hisser2.m
  115. +283 −0 src/modules/audio_processing/aecm/main/matlab/matlab/mainProgram.m
  116. +15 −0 src/modules/audio_processing/aecm/main/matlab/matlab/simEnvironment.m
  117. +94 −0 src/modules/audio_processing/aecm/main/matlab/matlab/updateSettings.m
  118. +234 −0 src/modules/audio_processing/aecm/main/matlab/waitbar_j.m
  119. +55 −0 src/modules/audio_processing/aecm/main/source/Android.mk
  120. +43 −0 src/modules/audio_processing/aecm/main/source/aecm.gyp
  121. +2,534 −0 src/modules/audio_processing/aecm/main/source/aecm_core.c
  122. +338 −0 src/modules/audio_processing/aecm/main/source/aecm_core.h
  123. +733 −0 src/modules/audio_processing/aecm/main/source/echo_control_mobile.c
  124. +273 −0 src/modules/audio_processing/agc/main/interface/gain_control.h
  125. +32 −0 src/modules/audio_processing/agc/main/matlab/getGains.m
  126. +49 −0 src/modules/audio_processing/agc/main/source/Android.mk
  127. +43 −0 src/modules/audio_processing/agc/main/source/agc.gyp
  128. +1,699 −0 src/modules/audio_processing/agc/main/source/analog_agc.c
  129. +133 −0 src/modules/audio_processing/agc/main/source/analog_agc.h
  130. +780 −0 src/modules/audio_processing/agc/main/source/digital_agc.c
  131. +76 −0 src/modules/audio_processing/agc/main/source/digital_agc.h
  132. +60 −0 src/modules/audio_processing/main/apm_tests.gyp
  133. +564 −0 src/modules/audio_processing/main/interface/audio_processing.h
  134. +75 −0 src/modules/audio_processing/main/source/Android.mk
  135. +77 −0 src/modules/audio_processing/main/source/apm.gyp
  136. +278 −0 src/modules/audio_processing/main/source/audio_buffer.cc
  137. +68 −0 src/modules/audio_processing/main/source/audio_buffer.h
  138. +636 −0 src/modules/audio_processing/main/source/audio_processing_impl.cc
  139. +109 −0 src/modules/audio_processing/main/source/audio_processing_impl.h
  140. +348 −0 src/modules/audio_processing/main/source/echo_cancellation_impl.cc
  141. +72 −0 src/modules/audio_processing/main/source/echo_cancellation_impl.h
  142. +245 −0 src/modules/audio_processing/main/source/echo_control_mobile_impl.cc
  143. +59 −0 src/modules/audio_processing/main/source/echo_control_mobile_impl.h
  144. +391 −0 src/modules/audio_processing/main/source/gain_control_impl.cc
  145. +80 −0 src/modules/audio_processing/main/source/gain_control_impl.h
  146. +180 −0 src/modules/audio_processing/main/source/high_pass_filter_impl.cc
  147. +51 −0 src/modules/audio_processing/main/source/high_pass_filter_impl.h
  148. +182 −0 src/modules/audio_processing/main/source/level_estimator_impl.cc
  149. +53 −0 src/modules/audio_processing/main/source/level_estimator_impl.h
  150. +179 −0 src/modules/audio_processing/main/source/noise_suppression_impl.cc
  151. +54 −0 src/modules/audio_processing/main/source/noise_suppression_impl.h
  152. +112 −0 src/modules/audio_processing/main/source/processing_component.cc
  153. +63 −0 src/modules/audio_processing/main/source/processing_component.h
  154. +33 −0 src/modules/audio_processing/main/source/splitting_filter.cc
  155. +63 −0 src/modules/audio_processing/main/source/splitting_filter.h
  156. +202 −0 src/modules/audio_processing/main/source/voice_detection_impl.cc
  157. +63 −0 src/modules/audio_processing/main/source/voice_detection_impl.h
  158. +30 −0 src/modules/audio_processing/main/test/android/apmtest/AndroidManifest.xml
  159. +11 −0 src/modules/audio_processing/main/test/android/apmtest/default.properties
  160. +26 −0 src/modules/audio_processing/main/test/android/apmtest/jni/Android.mk
  161. +1 −0 src/modules/audio_processing/main/test/android/apmtest/jni/Application.mk
  162. +307 −0 src/modules/audio_processing/main/test/android/apmtest/jni/main.c
  163. +4 −0 src/modules/audio_processing/main/test/android/apmtest/res/values/strings.xml
  164. +48 −0 src/modules/audio_processing/main/test/process_test/Android.mk
  165. +360 −0 src/modules/audio_processing/main/test/process_test/apmtest.m
  166. +628 −0 src/modules/audio_processing/main/test/process_test/process_test.cc
  167. +49 −0 src/modules/audio_processing/main/test/unit_test/Android.mk
  168. +1,111 −0 src/modules/audio_processing/main/test/unit_test/audio_processing_unittest.pb.cc
  169. +862 −0 src/modules/audio_processing/main/test/unit_test/audio_processing_unittest.pb.h
  170. +33 −0 src/modules/audio_processing/main/test/unit_test/audio_processing_unittest.proto
  171. +881 −0 src/modules/audio_processing/main/test/unit_test/unit_test.cc
  172. +124 −0 src/modules/audio_processing/ns/main/interface/noise_suppression.h
  173. +123 −0 src/modules/audio_processing/ns/main/interface/noise_suppression_x.h
  174. +52 −0 src/modules/audio_processing/ns/main/source/Android.mk
  175. +53 −0 src/modules/audio_processing/ns/main/source/defines.h
  176. +69 −0 src/modules/audio_processing/ns/main/source/noise_suppression.c
  177. +74 −0 src/modules/audio_processing/ns/main/source/noise_suppression_x.c
  178. +67 −0 src/modules/audio_processing/ns/main/source/ns.gyp
  179. +1,500 −0 src/modules/audio_processing/ns/main/source/ns_core.c
  180. +179 −0 src/modules/audio_processing/ns/main/source/ns_core.h
  181. +2,493 −0 src/modules/audio_processing/ns/main/source/nsx_core.c
  182. +169 −0 src/modules/audio_processing/ns/main/source/nsx_core.h
  183. +58 −0 src/modules/audio_processing/ns/main/source/nsx_defines.h
  184. +573 −0 src/modules/audio_processing/ns/main/source/windows_private.h
  185. +49 −0 src/modules/audio_processing/utility/Android.mk
  186. +1,356 −0 src/modules/audio_processing/utility/fft4g.c
  187. +18 −0 src/modules/audio_processing/utility/fft4g.h
  188. +239 −0 src/modules/audio_processing/utility/ring_buffer.c
  189. +41 −0 src/modules/audio_processing/utility/ring_buffer.h
  190. +36 −0 src/modules/audio_processing/utility/util.gyp
  191. +33 −0 src/modules/interface/module.h
  192. +1,012 −0 src/modules/interface/module_common_types.h
  193. +7 −0 src/system_wrappers/OWNERS
  194. +25 −0 src/system_wrappers/interface/aligned_malloc.h
  195. +55 −0 src/system_wrappers/interface/atomic32_wrapper.h
  196. +41 −0 src/system_wrappers/interface/condition_variable_wrapper.h
  197. +50 −0 src/system_wrappers/interface/constructor_magic.h
  198. +34 −0 src/system_wrappers/interface/cpu_features_wrapper.h
  199. +51 −0 src/system_wrappers/interface/cpu_wrapper.h
  200. +66 −0 src/system_wrappers/interface/critical_section_wrapper.h
  201. +68 −0 src/system_wrappers/interface/event_wrapper.h
  202. +72 −0 src/system_wrappers/interface/file_wrapper.h
  203. +109 −0 src/system_wrappers/interface/list_wrapper.h
  204. +77 −0 src/system_wrappers/interface/map_wrapper.h
  205. +76 −0 src/system_wrappers/interface/rw_lock_wrapper.h
  206. +64 −0 src/system_wrappers/interface/sort.h
  207. +86 −0 src/system_wrappers/interface/thread_wrapper.h
  208. +304 −0 src/system_wrappers/interface/tick_util.h
  209. +83 −0 src/system_wrappers/interface/trace.h
  210. +67 −0 src/system_wrappers/source/Android.mk
  211. +121 −0 src/system_wrappers/source/aligned_malloc.cc
  212. +84 −0 src/system_wrappers/source/atomic32.cc
  213. +119 −0 src/system_wrappers/source/atomic32_linux.h
  214. +117 −0 src/system_wrappers/source/atomic32_mac.h
  215. +37 −0 src/system_wrappers/source/condition_variable.cc
  216. +151 −0 src/system_wrappers/source/condition_variable_linux.cc
  217. +39 −0 src/system_wrappers/source/condition_variable_linux.h
  218. +87 −0 src/system_wrappers/source/cpu.cc
  219. +60 −0 src/system_wrappers/source/cpu_features.cc
  220. +172 −0 src/system_wrappers/source/cpu_linux.cc
  221. +51 −0 src/system_wrappers/source/cpu_linux.h
  222. +132 −0 src/system_wrappers/source/cpu_mac.cc
  223. +44 −0 src/system_wrappers/source/cpu_mac.h
  224. +27 −0 src/system_wrappers/source/critical_section.cc
  225. +38 −0 src/system_wrappers/source/critical_section_linux.cc
  226. +35 −0 src/system_wrappers/source/critical_section_linux.h
  227. +52 −0 src/system_wrappers/source/event.cc
  228. +324 −0 src/system_wrappers/source/event_linux.cc
  229. +66 −0 src/system_wrappers/source/event_linux.h
  230. +267 −0 src/system_wrappers/source/file_impl.cc
  231. +57 −0 src/system_wrappers/source/file_impl.h
  232. +289 −0 src/system_wrappers/source/list_no_stl.cc
  233. +79 −0 src/system_wrappers/source/list_no_stl.h
  234. +244 −0 src/system_wrappers/source/list_stl.cc
  235. +66 −0 src/system_wrappers/source/list_stl.h
  236. +475 −0 src/system_wrappers/source/list_unittest.cc
  237. +166 −0 src/system_wrappers/source/map.cc
  238. +217 −0 src/system_wrappers/source/map_no_stl.cc
  239. +70 −0 src/system_wrappers/source/map_no_stl.h
  240. +231 −0 src/system_wrappers/source/map_unittest.cc
  241. +46 −0 src/system_wrappers/source/rw_lock.cc
  242. +106 −0 src/system_wrappers/source/rw_lock_generic.cc
  243. +46 −0 src/system_wrappers/source/rw_lock_generic.h
  244. +47 −0 src/system_wrappers/source/rw_lock_linux.cc
  245. +39 −0 src/system_wrappers/source/rw_lock_linux.h
  246. +551 −0 src/system_wrappers/source/sort.cc
  247. +42 −0 src/system_wrappers/source/spreadsortlib/constants.hpp
  248. +1,688 −0 src/system_wrappers/source/spreadsortlib/spreadsort.hpp
  249. +146 −0 src/system_wrappers/source/system_wrappers.gyp
  250. +37 −0 src/system_wrappers/source/system_wrappers_tests.gyp
  251. +30 −0 src/system_wrappers/source/thread.cc
  252. +340 −0 src/system_wrappers/source/thread_linux.cc
  253. +69 −0 src/system_wrappers/source/thread_linux.h
  254. +949 −0 src/system_wrappers/source/trace_impl.cc
  255. +141 −0 src/system_wrappers/source/trace_impl.h
  256. +135 −0 src/system_wrappers/source/trace_linux.cc
  257. +37 −0 src/system_wrappers/source/trace_linux.h
  258. +65 −0 src/system_wrappers/test/Test.cpp
  259. +265 −0 src/system_wrappers/test/TestSort/TestSort.cpp
  260. +174 −0 src/system_wrappers/test/list/list.cc
  261. +112 −0 src/system_wrappers/test/map/map.cc
  262. +107 −0 src/typedefs.h
@@ -0,0 +1,30 @@
+# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+MY_WEBRTC_ROOT_PATH := $(call my-dir)
+
+
+include $(MY_WEBRTC_ROOT_PATH)/src/system_wrappers/source/Android.mk
+
+# audio processing
+include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/resampler/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/signal_processing_library/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/vad/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aec/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aecm/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/agc/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/ns/main/source/Android.mk
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/utility/Android.mk
+
+
+# build .so
+include $(MY_WEBRTC_ROOT_PATH)/android-webrtc.mk
+
+# build test apps
+include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/main/test/process_test/Android.mk
No changes.
111 NOTICE
@@ -0,0 +1,111 @@
+===============================================================================
+
+/*
+ * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+===============================================================================
+
+/*
+ * Copyright (C) 2010 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+===============================================================================
+
+/*
+ * http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html
+ * Copyright Takuya OOURA, 1996-2001
+ *
+ * You may use, copy, modify and distribute this code for any purpose (include
+ * commercial use) and without fee. Please refer to this package when you modify
+ * this code.
+ *
+ * Changes by the WebRTC authors:
+ * - Trivial type modifications.
+ * - Minimal code subset to do rdft of length 128.
+ * - Optimizations because of known length.
+ *
+ * All changes are covered by the WebRTC license and IP grant:
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+===============================================================================
+
+/*
+ * http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html
+ * Copyright Takuya OOURA, 1996-2001
+ *
+ * You may use, copy, modify and distribute this code for any purpose (include
+ * commercial use) and without fee. Please refer to this package when you modify
+ * this code.
+ *
+ * Changes:
+ * Trivial type modifications by the WebRTC authors.
+ */
+
+===============================================================================
+
+/*Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.*/
+
+===============================================================================
+
+// Copyright Steven J. Ross 2001 - 2009.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/ for updates, documentation, and revision history.
+
+/*
+Some improvements suggested by:
+Phil Endecott and Frank Gennari
+Cygwin fix provided by:
+Scott McMurray
+*/
+
+
18 README
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2011 Mike Gapinski
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * For private use only - roms build form this soruce belong to me - this soruce is for deveolpers who want to fix not copy my stuff
+ */
+
+Ice Cream Sandwich WebRTC for armv5
@@ -0,0 +1,96 @@
+# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+MY_APM_WHOLE_STATIC_LIBRARIES := \
+ libwebrtc_spl \
+ libwebrtc_resampler \
+ libwebrtc_apm \
+ libwebrtc_apm_utility \
+ libwebrtc_vad \
+ libwebrtc_ns \
+ libwebrtc_agc \
+ libwebrtc_aec \
+ libwebrtc_aecm
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_ARM_MODE := arm
+LOCAL_MODULE := libwebrtc_audio_preprocessing
+LOCAL_MODULE_TAGS := optional
+LOCAL_LDFLAGS :=
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+ $(MY_APM_WHOLE_STATIC_LIBRARIES) \
+ libwebrtc_system_wrappers \
+
+LOCAL_SHARED_LIBRARIES := \
+ libcutils \
+ libdl \
+ libstlport
+
+LOCAL_ADDITIONAL_DEPENDENCIES :=
+
+include external/stlport/libstlport.mk
+include $(BUILD_SHARED_LIBRARY)
+
+###
+
+#LOCAL_PATH := $(call my-dir)
+#
+#include $(CLEAR_VARS)
+#
+#LOCAL_ARM_MODE := arm
+#LOCAL_MODULE := libwebrtc
+#LOCAL_MODULE_TAGS := optional
+#LOCAL_LDFLAGS :=
+#
+#LOCAL_WHOLE_STATIC_LIBRARIES := \
+# libwebrtc_system_wrappers \
+# libwebrtc_audio_device \
+# libwebrtc_pcm16b \
+# libwebrtc_cng \
+# libwebrtc_audio_coding \
+# libwebrtc_rtp_rtcp \
+# libwebrtc_media_file \
+# libwebrtc_udp_transport \
+# libwebrtc_utility \
+# libwebrtc_neteq \
+# libwebrtc_audio_conference_mixer \
+# libwebrtc_isac \
+# libwebrtc_ilbc \
+# libwebrtc_isacfix \
+# libwebrtc_g722 \
+# libwebrtc_g711 \
+# libwebrtc_voe_core \
+# libwebrtc_video_render \
+# libwebrtc_video_capture \
+# libwebrtc_i420 \
+# libwebrtc_video_coding \
+# libwebrtc_video_processing \
+# libwebrtc_vp8 \
+# libwebrtc_vie_core \
+# libwebrtc_vplib \
+# libwebrtc_jpeg \
+# libwebrtc_vpx
+#
+#LOCAL_STATIC_LIBRARIES :=
+#LOCAL_SHARED_LIBRARIES := \
+# libcutils \
+# libdl \
+# libstlport \
+# libjpeg \
+# libGLESv2 \
+# libOpenSLES \
+# libwebrtc_audio_preprocessing
+#
+#LOCAL_ADDITIONAL_DEPENDENCIES :=
+#
+#include external/stlport/libstlport.mk
+#include $(BUILD_SHARED_LIBRARY)
@@ -0,0 +1 @@
+bjornv@google.com
@@ -0,0 +1,3 @@
+bjornv@google.com
+tlegrand@google.com
+jks@google.com
@@ -0,0 +1,110 @@
+/*
+ * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+
+/*
+ * A wrapper for resampling a numerous amount of sampling combinations.
+ */
+
+#ifndef WEBRTC_RESAMPLER_RESAMPLER_H_
+#define WEBRTC_RESAMPLER_RESAMPLER_H_
+
+#include "typedefs.h"
+
+namespace webrtc
+{
+
+enum ResamplerType
+{
+ // 4 MSB = Number of channels
+ // 4 LSB = Synchronous or asynchronous
+
+ kResamplerSynchronous = 0x10,
+ kResamplerAsynchronous = 0x11,
+ kResamplerSynchronousStereo = 0x20,
+ kResamplerAsynchronousStereo = 0x21,
+ kResamplerInvalid = 0xff
+};
+
+enum ResamplerMode
+{
+ kResamplerMode1To1,
+ kResamplerMode1To2,
+ kResamplerMode1To3,
+ kResamplerMode1To4,
+ kResamplerMode1To6,
+ kResamplerMode2To3,
+ kResamplerMode2To11,
+ kResamplerMode4To11,
+ kResamplerMode8To11,
+ kResamplerMode11To16,
+ kResamplerMode11To32,
+ kResamplerMode2To1,
+ kResamplerMode3To1,
+ kResamplerMode4To1,
+ kResamplerMode6To1,
+ kResamplerMode3To2,
+ kResamplerMode11To2,
+ kResamplerMode11To4,
+ kResamplerMode11To8
+};
+
+class Resampler
+{
+
+public:
+ Resampler();
+ Resampler(int inFreq, int outFreq, ResamplerType type);
+ ~Resampler();
+
+ // Reset all states
+ int Reset(int inFreq, int outFreq, ResamplerType type);
+
+ // Reset all states if any parameter has changed
+ int ResetIfNeeded(int inFreq, int outFreq, ResamplerType type);
+
+ // Synchronous resampling, all output samples are written to samplesOut
+ int Push(const WebRtc_Word16* samplesIn, int lengthIn, WebRtc_Word16* samplesOut,
+ int maxLen, int &outLen);
+
+ // Asynchronous resampling, input
+ int Insert(WebRtc_Word16* samplesIn, int lengthIn);
+
+ // Asynchronous resampling output, remaining samples are buffered
+ int Pull(WebRtc_Word16* samplesOut, int desiredLen, int &outLen);
+
+private:
+ // Generic pointers since we don't know what states we'll need
+ void* state1_;
+ void* state2_;
+ void* state3_;
+
+ // Storage if needed
+ WebRtc_Word16* in_buffer_;
+ WebRtc_Word16* out_buffer_;
+ int in_buffer_size_;
+ int out_buffer_size_;
+ int in_buffer_size_max_;
+ int out_buffer_size_max_;
+
+ // State
+ int my_in_frequency_khz_;
+ int my_out_frequency_khz_;
+ ResamplerMode my_mode_;
+ ResamplerType my_type_;
+
+ // Extra instance for stereo
+ Resampler* slave_left_;
+ Resampler* slave_right_;
+};
+
+} // namespace webrtc
+
+#endif // WEBRTC_RESAMPLER_RESAMPLER_H_
Oops, something went wrong.

0 comments on commit aaf534d

Please sign in to comment.