forked from opentelecoms-org/codecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
327 lines (312 loc) · 10.6 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
LOCAL_PATH := $(call my-dir)
SPEEX := speex-1.2rc1
SILK := silk
include $(CLEAR_VARS)
LOCAL_MODULE := OSNetworkSystem
LOCAL_MODULE_FILENAME := libOSNetworkSystem
LOCAL_SRC_FILES := OSNetworkSystem.cpp
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := speex_jni
LOCAL_MODULE_FILENAME := libspeex_jni
LOCAL_SRC_FILES := speex_jni.cpp \
$(SPEEX)/libspeex/speex.c \
$(SPEEX)/libspeex/speex_callbacks.c \
$(SPEEX)/libspeex/bits.c \
$(SPEEX)/libspeex/modes.c \
$(SPEEX)/libspeex/nb_celp.c \
$(SPEEX)/libspeex/exc_20_32_table.c \
$(SPEEX)/libspeex/exc_5_256_table.c \
$(SPEEX)/libspeex/exc_5_64_table.c \
$(SPEEX)/libspeex/exc_8_128_table.c \
$(SPEEX)/libspeex/exc_10_32_table.c \
$(SPEEX)/libspeex/exc_10_16_table.c \
$(SPEEX)/libspeex/filters.c \
$(SPEEX)/libspeex/quant_lsp.c \
$(SPEEX)/libspeex/ltp.c \
$(SPEEX)/libspeex/lpc.c \
$(SPEEX)/libspeex/lsp.c \
$(SPEEX)/libspeex/vbr.c \
$(SPEEX)/libspeex/gain_table.c \
$(SPEEX)/libspeex/gain_table_lbr.c \
$(SPEEX)/libspeex/lsp_tables_nb.c \
$(SPEEX)/libspeex/cb_search.c \
$(SPEEX)/libspeex/vq.c \
$(SPEEX)/libspeex/window.c \
$(SPEEX)/libspeex/high_lsp_tables.c
LOCAL_C_INCLUDES +=
LOCAL_CFLAGS = -DFIXED_POINT -DEXPORT="" -UHAVE_CONFIG_H -I$(LOCAL_PATH)/$(SPEEX)/include
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
BV16 := bx16_fixedp
LOCAL_MODULE := bv16_jni
LOCAL_MODULE_FILENAME := libbv16_jni
LOCAL_SRC_FILES := bv16_jni.cpp \
$(BV16)/bvcommon/a2lsp.c \
$(BV16)/bvcommon/allpole.c \
$(BV16)/bvcommon/allzero.c \
$(BV16)/bvcommon/autocor.c \
$(BV16)/bvcommon/basop32.c \
$(BV16)/bvcommon/cmtables.c \
$(BV16)/bvcommon/levdur.c \
$(BV16)/bvcommon/lsp2a.c \
$(BV16)/bvcommon/mathtables.c \
$(BV16)/bvcommon/mathutil.c \
$(BV16)/bvcommon/memutil.c \
$(BV16)/bvcommon/ptdec.c \
$(BV16)/bvcommon/stblzlsp.c \
$(BV16)/bvcommon/utility.c \
$(BV16)/bvcommon/vqdecode.c \
$(BV16)/bv16/bitpack.c \
$(BV16)/bv16/bv.c \
$(BV16)/bv16/coarptch.c \
$(BV16)/bv16/decoder.c \
$(BV16)/bv16/encoder.c \
$(BV16)/bv16/excdec.c \
$(BV16)/bv16/excquan.c \
$(BV16)/bv16/fineptch.c \
$(BV16)/bv16/g192.c \
$(BV16)/bv16/gaindec.c \
$(BV16)/bv16/gainquan.c \
$(BV16)/bv16/levelest.c \
$(BV16)/bv16/lspdec.c \
$(BV16)/bv16/lspquan.c \
$(BV16)/bv16/plc.c \
$(BV16)/bv16/postfilt.c \
$(BV16)/bv16/preproc.c \
$(BV16)/bv16/ptquan.c \
$(BV16)/bv16/tables.c
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(BV16)/bvcommon $(LOCAL_PATH)/$(BV16)/bv16 $(LOCAL_PATH)/$(BV16)
#LOCAL_CFLAGS = -O3 -marm -march=armv6 -mtune=arm1136j-s -DWMOPS=0 -DG192BITSTREAM=0
#LOCAL_CFLAGS = -O3 -DWMOPS=0 -DG192BITSTREAM=0
include $(BUILD_SHARED_LIBRARY)
SILK := silk
LOCAL_MODULE := silkcommon
LOCAL_MODULE_FILENAME := libsilkcommon
LOCAL_SRC_FILES := $(SILK)/src/SKP_Silk_A2NLSF.c \
$(SILK)/src/SKP_Silk_CNG.c \
$(SILK)/src/SKP_Silk_HP_variable_cutoff_FIX.c \
$(SILK)/src/SKP_Silk_LBRR_reset.c \
$(SILK)/src/SKP_Silk_LPC_inv_pred_gain.c \
$(SILK)/src/SKP_Silk_LPC_stabilize.c \
$(SILK)/src/SKP_Silk_LPC_synthesis_filter.c \
$(SILK)/src/SKP_Silk_LPC_synthesis_order16.c \
$(SILK)/src/SKP_Silk_LP_variable_cutoff.c \
$(SILK)/src/SKP_Silk_LSF_cos_table.c \
$(SILK)/src/SKP_Silk_LTP_analysis_filter_FIX.c \
$(SILK)/src/SKP_Silk_LTP_scale_ctrl_FIX.c \
$(SILK)/src/SKP_Silk_MA.c \
$(SILK)/src/SKP_Silk_NLSF2A.c \
$(SILK)/src/SKP_Silk_NLSF2A_stable.c \
$(SILK)/src/SKP_Silk_NLSF_MSVQ_decode.c \
$(SILK)/src/SKP_Silk_NLSF_MSVQ_encode_FIX.c \
$(SILK)/src/SKP_Silk_NLSF_VQ_rate_distortion_FIX.c \
$(SILK)/src/SKP_Silk_NLSF_VQ_sum_error_FIX.c \
$(SILK)/src/SKP_Silk_NLSF_VQ_weights_laroia.c \
$(SILK)/src/SKP_Silk_NLSF_stabilize.c \
$(SILK)/src/SKP_Silk_NSQ.c \
$(SILK)/src/SKP_Silk_NSQ_del_dec.c \
$(SILK)/src/SKP_Silk_PLC.c \
$(SILK)/src/SKP_Silk_VAD.c \
$(SILK)/src/SKP_Silk_VQ_nearest_neighbor_FIX.c \
$(SILK)/src/SKP_Silk_allpass_int.c \
$(SILK)/src/SKP_Silk_ana_filt_bank_1.c \
$(SILK)/src/SKP_Silk_apply_sine_window.c \
$(SILK)/src/SKP_Silk_array_maxabs.c \
$(SILK)/src/SKP_Silk_autocorr.c \
$(SILK)/src/SKP_Silk_biquad.c \
$(SILK)/src/SKP_Silk_biquad_alt.c \
$(SILK)/src/SKP_Silk_burg_modified.c \
$(SILK)/src/SKP_Silk_bwexpander.c \
$(SILK)/src/SKP_Silk_bwexpander_32.c \
$(SILK)/src/SKP_Silk_code_signs.c \
$(SILK)/src/SKP_Silk_control_codec_FIX.c \
$(SILK)/src/SKP_Silk_corrMatrix_FIX.c \
$(SILK)/src/SKP_Silk_create_init_destroy.c \
$(SILK)/src/SKP_Silk_dec_API.c \
$(SILK)/src/SKP_Silk_decode_core.c \
$(SILK)/src/SKP_Silk_decode_frame.c \
$(SILK)/src/SKP_Silk_decode_indices_v4.c \
$(SILK)/src/SKP_Silk_decode_parameters.c \
$(SILK)/src/SKP_Silk_decode_parameters_v4.c \
$(SILK)/src/SKP_Silk_decode_pulses.c \
$(SILK)/src/SKP_Silk_decoder_set_fs.c \
$(SILK)/src/SKP_Silk_detect_SWB_input.c \
$(SILK)/src/SKP_Silk_enc_API.c \
$(SILK)/src/SKP_Silk_encode_frame_FIX.c \
$(SILK)/src/SKP_Silk_encode_parameters.c \
$(SILK)/src/SKP_Silk_encode_parameters_v4.c \
$(SILK)/src/SKP_Silk_encode_pulses.c \
$(SILK)/src/SKP_Silk_find_LPC_FIX.c \
$(SILK)/src/SKP_Silk_find_LTP_FIX.c \
$(SILK)/src/SKP_Silk_find_pitch_lags_FIX.c \
$(SILK)/src/SKP_Silk_find_pred_coefs_FIX.c \
$(SILK)/src/SKP_Silk_gain_quant.c \
$(SILK)/src/SKP_Silk_init_encoder_FIX.c \
$(SILK)/src/SKP_Silk_inner_prod_aligned.c \
$(SILK)/src/SKP_Silk_interpolate.c \
$(SILK)/src/SKP_Silk_k2a.c \
$(SILK)/src/SKP_Silk_k2a_Q16.c \
$(SILK)/src/SKP_Silk_lin2log.c \
$(SILK)/src/SKP_Silk_log2lin.c \
$(SILK)/src/SKP_Silk_lowpass_int.c \
$(SILK)/src/SKP_Silk_lowpass_short.c \
$(SILK)/src/SKP_Silk_noise_shape_analysis_FIX.c \
$(SILK)/src/SKP_Silk_pitch_analysis_core.c \
$(SILK)/src/SKP_Silk_pitch_est_tables.c \
$(SILK)/src/SKP_Silk_prefilter_FIX.c \
$(SILK)/src/SKP_Silk_process_NLSFs_FIX.c \
$(SILK)/src/SKP_Silk_process_gains_FIX.c \
$(SILK)/src/SKP_Silk_pulses_to_bytes.c \
$(SILK)/src/SKP_Silk_quant_LTP_gains_FIX.c \
$(SILK)/src/SKP_Silk_range_coder.c \
$(SILK)/src/SKP_Silk_regularize_correlations_FIX.c \
$(SILK)/src/SKP_Silk_resample_1_2.c \
$(SILK)/src/SKP_Silk_resample_1_2_coarse.c \
$(SILK)/src/SKP_Silk_resample_1_2_coarsest.c \
$(SILK)/src/SKP_Silk_resample_1_3.c \
$(SILK)/src/SKP_Silk_resample_2_1_coarse.c \
$(SILK)/src/SKP_Silk_resample_2_3.c \
$(SILK)/src/SKP_Silk_resample_2_3_coarse.c \
$(SILK)/src/SKP_Silk_resample_2_3_coarsest.c \
$(SILK)/src/SKP_Silk_resample_2_3_rom.c \
$(SILK)/src/SKP_Silk_resample_3_1.c \
$(SILK)/src/SKP_Silk_resample_3_2.c \
$(SILK)/src/SKP_Silk_resample_3_2_rom.c \
$(SILK)/src/SKP_Silk_resample_3_4.c \
$(SILK)/src/SKP_Silk_resample_4_3.c \
$(SILK)/src/SKP_Silk_residual_energy16_FIX.c \
$(SILK)/src/SKP_Silk_residual_energy_FIX.c \
$(SILK)/src/SKP_Silk_scale_copy_vector16.c \
$(SILK)/src/SKP_Silk_scale_vector.c \
$(SILK)/src/SKP_Silk_schur.c \
$(SILK)/src/SKP_Silk_schur64.c \
$(SILK)/src/SKP_Silk_shell_coder.c \
$(SILK)/src/SKP_Silk_sigm_Q15.c \
$(SILK)/src/SKP_Silk_solve_LS_FIX.c \
$(SILK)/src/SKP_Silk_sort.c \
$(SILK)/src/SKP_Silk_sum_sqr_shift.c \
$(SILK)/src/SKP_Silk_tables_LTP.c \
$(SILK)/src/SKP_Silk_tables_NLSF_CB0_10.c \
$(SILK)/src/SKP_Silk_tables_NLSF_CB0_16.c \
$(SILK)/src/SKP_Silk_tables_NLSF_CB1_10.c \
$(SILK)/src/SKP_Silk_tables_NLSF_CB1_16.c \
$(SILK)/src/SKP_Silk_tables_gain.c \
$(SILK)/src/SKP_Silk_tables_other.c \
$(SILK)/src/SKP_Silk_tables_pitch_lag.c \
$(SILK)/src/SKP_Silk_tables_pulses_per_block.c \
$(SILK)/src/SKP_Silk_tables_sign.c \
$(SILK)/src/SKP_Silk_tables_type_offset.c
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS = -O3
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SILK)/src $(LOCAL_PATH)/$(SILK)/interface
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := silk8_jni
LOCAL_SRC_FILES := silk8_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SILK)/src $(LOCAL_PATH)/$(SILK)/interface
LOCAL_CFLAGS = -O3
LOCAL_STATIC_LIBRARIES := silkcommon
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := silk16_jni
LOCAL_SRC_FILES := silk16_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SILK)/src $(LOCAL_PATH)/$(SILK)/interface
LOCAL_CFLAGS = -O3
LOCAL_STATIC_LIBRARIES := silkcommon
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := silk24_jni
LOCAL_SRC_FILES := silk24_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SILK)/src $(LOCAL_PATH)/$(SILK)/interface
LOCAL_CFLAGS = -O3
LOCAL_STATIC_LIBRARIES := silkcommon
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)
ifeq ($(subst -v7a,,$(TARGET_ARCH_ABI)),armeabi)
include $(CLEAR_VARS)
#ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
G729 := g729/siphon-g729
G729SRC := $(G729)/Sources
G729HDR := $(G729)/Headers
#else
#G729 := g729/itu-g729
#G729SRC := $(G729SRC)
#G729HDR := $(G729SRC)
#fi
LOCAL_MODULE := g729_jni
LOCAL_SRC_FILES := g729_jni.cpp \
$(G729SRC)/qua_gain.c \
$(G729SRC)/util.c \
$(G729SRC)/g729a_decoder.c \
$(G729SRC)/tab_ld8a.c \
$(G729SRC)/filter.c \
$(G729SRC)/lpc.c \
$(G729SRC)/dspfunc.c \
$(G729SRC)/post_pro.c \
$(G729SRC)/dec_lag3.c \
$(G729SRC)/cod_ld8a.c \
$(G729SRC)/lspgetq.c \
$(G729SRC)/lpcfunc.c \
$(G729SRC)/lspdec.c \
$(G729SRC)/dec_gain.c \
$(G729SRC)/oper_32b.c \
$(G729SRC)/p_parity.c \
$(G729SRC)/gainpred.c \
$(G729SRC)/bits.c \
$(G729SRC)/dec_ld8a.c \
$(G729SRC)/de_acelp.c \
$(G729SRC)/cor_func.c \
$(G729SRC)/postfilt.c \
$(G729SRC)/taming.c \
$(G729SRC)/basic_op.c \
$(G729SRC)/g729a_encoder.c \
$(G729SRC)/pitch_a.c \
$(G729SRC)/pre_proc.c \
$(G729SRC)/pred_lt3.c \
$(G729SRC)/acelp_ca.c \
$(G729SRC)/qua_lsp.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(G729HDR)
LOCAL_CFLAGS = -g -Wall -Wextra
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DARM_V7A
endif
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib
include $(BUILD_SHARED_LIBRARY)
endif
include $(CLEAR_VARS)
SPANDSP := spandsp
LOCAL_MODULE := g722_jni
LOCAL_SRC_FILES := g722_jni.cpp \
$(SPANDSP)/g722.c \
$(SPANDSP)/vector_int.c
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SPANDSP)/spandsp $(LOCAL_PATH)/$(SPANDSP)
LOCAL_CFLAGS = -O3
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
SPANDSP := spandsp
LOCAL_MODULE := gsm_jni
LOCAL_SRC_FILES := gsm_jni.cpp \
$(SPANDSP)/gsm0610_decode.c \
$(SPANDSP)/gsm0610_encode.c \
$(SPANDSP)/gsm0610_lpc.c \
$(SPANDSP)/gsm0610_preprocess.c \
$(SPANDSP)/gsm0610_rpe.c \
$(SPANDSP)/gsm0610_short_term.c \
$(SPANDSP)/gsm0610_long_term.c
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SPANDSP)/spandsp $(LOCAL_PATH)/$(SPANDSP)
LOCAL_CFLAGS = -O3
include $(BUILD_SHARED_LIBRARY)