OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # If fixed point implementation shall be used (otherwise float). | 8 # If fixed point implementation shall be used (otherwise float). |
9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" | 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 "src/include/opus_custom.h", | 108 "src/include/opus_custom.h", |
109 "src/include/opus_defines.h", | 109 "src/include/opus_defines.h", |
110 "src/include/opus_multistream.h", | 110 "src/include/opus_multistream.h", |
111 "src/include/opus_types.h", | 111 "src/include/opus_types.h", |
112 "src/silk/A2NLSF.c", | 112 "src/silk/A2NLSF.c", |
113 "src/silk/API.h", | 113 "src/silk/API.h", |
114 "src/silk/CNG.c", | 114 "src/silk/CNG.c", |
115 "src/silk/HP_variable_cutoff.c", | 115 "src/silk/HP_variable_cutoff.c", |
116 "src/silk/Inlines.h", | 116 "src/silk/Inlines.h", |
117 "src/silk/LPC_analysis_filter.c", | 117 "src/silk/LPC_analysis_filter.c", |
| 118 "src/silk/LPC_fit.c", |
118 "src/silk/LPC_inv_pred_gain.c", | 119 "src/silk/LPC_inv_pred_gain.c", |
119 "src/silk/LP_variable_cutoff.c", | 120 "src/silk/LP_variable_cutoff.c", |
120 "src/silk/MacroCount.h", | 121 "src/silk/MacroCount.h", |
121 "src/silk/MacroDebug.h", | 122 "src/silk/MacroDebug.h", |
122 "src/silk/NLSF2A.c", | 123 "src/silk/NLSF2A.c", |
123 "src/silk/NLSF_VQ.c", | 124 "src/silk/NLSF_VQ.c", |
124 "src/silk/NLSF_VQ_weights_laroia.c", | 125 "src/silk/NLSF_VQ_weights_laroia.c", |
125 "src/silk/NLSF_decode.c", | 126 "src/silk/NLSF_decode.c", |
126 "src/silk/NLSF_del_dec_quant.c", | 127 "src/silk/NLSF_del_dec_quant.c", |
127 "src/silk/NLSF_encode.c", | 128 "src/silk/NLSF_encode.c", |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 "src/src/repacketizer.c", | 221 "src/src/repacketizer.c", |
221 "src/src/tansig_table.h", | 222 "src/src/tansig_table.h", |
222 ] | 223 ] |
223 | 224 |
224 defines = [ | 225 defines = [ |
225 "OPUS_BUILD", | 226 "OPUS_BUILD", |
226 "OPUS_EXPORT=", | 227 "OPUS_EXPORT=", |
227 ] | 228 ] |
228 | 229 |
229 include_dirs = [ | 230 include_dirs = [ |
| 231 "src", |
230 "src/celt", | 232 "src/celt", |
231 "src/silk", | 233 "src/silk", |
232 ] | 234 ] |
233 | 235 |
234 configs -= [ "//build/config/compiler:chromium_code" ] | 236 configs -= [ "//build/config/compiler:chromium_code" ] |
235 configs += [ "//build/config/compiler:no_chromium_code" ] | 237 configs += [ "//build/config/compiler:no_chromium_code" ] |
236 public_configs = [ ":opus_config" ] | 238 public_configs = [ ":opus_config" ] |
237 cflags = [] | 239 cflags = [] |
238 | 240 |
239 if (is_win) { | 241 if (is_win) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 "src/silk/fixed/encode_frame_FIX.c", | 282 "src/silk/fixed/encode_frame_FIX.c", |
281 "src/silk/fixed/find_LPC_FIX.c", | 283 "src/silk/fixed/find_LPC_FIX.c", |
282 "src/silk/fixed/find_LTP_FIX.c", | 284 "src/silk/fixed/find_LTP_FIX.c", |
283 "src/silk/fixed/find_pitch_lags_FIX.c", | 285 "src/silk/fixed/find_pitch_lags_FIX.c", |
284 "src/silk/fixed/find_pred_coefs_FIX.c", | 286 "src/silk/fixed/find_pred_coefs_FIX.c", |
285 "src/silk/fixed/k2a_FIX.c", | 287 "src/silk/fixed/k2a_FIX.c", |
286 "src/silk/fixed/k2a_Q16_FIX.c", | 288 "src/silk/fixed/k2a_Q16_FIX.c", |
287 "src/silk/fixed/main_FIX.h", | 289 "src/silk/fixed/main_FIX.h", |
288 "src/silk/fixed/noise_shape_analysis_FIX.c", | 290 "src/silk/fixed/noise_shape_analysis_FIX.c", |
289 "src/silk/fixed/pitch_analysis_core_FIX.c", | 291 "src/silk/fixed/pitch_analysis_core_FIX.c", |
290 "src/silk/fixed/prefilter_FIX.c", | |
291 "src/silk/fixed/process_gains_FIX.c", | 292 "src/silk/fixed/process_gains_FIX.c", |
292 "src/silk/fixed/regularize_correlations_FIX.c", | 293 "src/silk/fixed/regularize_correlations_FIX.c", |
293 "src/silk/fixed/residual_energy16_FIX.c", | 294 "src/silk/fixed/residual_energy16_FIX.c", |
294 "src/silk/fixed/residual_energy_FIX.c", | 295 "src/silk/fixed/residual_energy_FIX.c", |
295 "src/silk/fixed/schur64_FIX.c", | 296 "src/silk/fixed/schur64_FIX.c", |
296 "src/silk/fixed/schur_FIX.c", | 297 "src/silk/fixed/schur_FIX.c", |
297 "src/silk/fixed/solve_LS_FIX.c", | |
298 "src/silk/fixed/structs_FIX.h", | 298 "src/silk/fixed/structs_FIX.h", |
299 "src/silk/fixed/vector_ops_FIX.c", | 299 "src/silk/fixed/vector_ops_FIX.c", |
300 "src/silk/fixed/warped_autocorrelation_FIX.c", | 300 "src/silk/fixed/warped_autocorrelation_FIX.c", |
301 ] | 301 ] |
302 | 302 |
303 defines += [ "FIXED_POINT" ] | 303 defines += [ "FIXED_POINT" ] |
304 | 304 |
305 include_dirs += [ "src/silk/fixed" ] | 305 include_dirs += [ "src/silk/fixed" ] |
306 } else { | 306 } else { |
307 sources += [ | 307 sources += [ |
308 "src/silk/float/LPC_analysis_filter_FLP.c", | 308 "src/silk/float/LPC_analysis_filter_FLP.c", |
309 "src/silk/float/LPC_inv_pred_gain_FLP.c", | 309 "src/silk/float/LPC_inv_pred_gain_FLP.c", |
310 "src/silk/float/LTP_analysis_filter_FLP.c", | 310 "src/silk/float/LTP_analysis_filter_FLP.c", |
311 "src/silk/float/LTP_scale_ctrl_FLP.c", | 311 "src/silk/float/LTP_scale_ctrl_FLP.c", |
312 "src/silk/float/SigProc_FLP.h", | 312 "src/silk/float/SigProc_FLP.h", |
313 "src/silk/float/apply_sine_window_FLP.c", | 313 "src/silk/float/apply_sine_window_FLP.c", |
314 "src/silk/float/autocorrelation_FLP.c", | 314 "src/silk/float/autocorrelation_FLP.c", |
315 "src/silk/float/burg_modified_FLP.c", | 315 "src/silk/float/burg_modified_FLP.c", |
316 "src/silk/float/bwexpander_FLP.c", | 316 "src/silk/float/bwexpander_FLP.c", |
317 "src/silk/float/corrMatrix_FLP.c", | 317 "src/silk/float/corrMatrix_FLP.c", |
318 "src/silk/float/encode_frame_FLP.c", | 318 "src/silk/float/encode_frame_FLP.c", |
319 "src/silk/float/energy_FLP.c", | 319 "src/silk/float/energy_FLP.c", |
320 "src/silk/float/find_LPC_FLP.c", | 320 "src/silk/float/find_LPC_FLP.c", |
321 "src/silk/float/find_LTP_FLP.c", | 321 "src/silk/float/find_LTP_FLP.c", |
322 "src/silk/float/find_pitch_lags_FLP.c", | 322 "src/silk/float/find_pitch_lags_FLP.c", |
323 "src/silk/float/find_pred_coefs_FLP.c", | 323 "src/silk/float/find_pred_coefs_FLP.c", |
324 "src/silk/float/inner_product_FLP.c", | 324 "src/silk/float/inner_product_FLP.c", |
325 "src/silk/float/k2a_FLP.c", | 325 "src/silk/float/k2a_FLP.c", |
326 "src/silk/float/levinsondurbin_FLP.c", | |
327 "src/silk/float/main_FLP.h", | 326 "src/silk/float/main_FLP.h", |
328 "src/silk/float/noise_shape_analysis_FLP.c", | 327 "src/silk/float/noise_shape_analysis_FLP.c", |
329 "src/silk/float/pitch_analysis_core_FLP.c", | 328 "src/silk/float/pitch_analysis_core_FLP.c", |
330 "src/silk/float/prefilter_FLP.c", | |
331 "src/silk/float/process_gains_FLP.c", | 329 "src/silk/float/process_gains_FLP.c", |
332 "src/silk/float/regularize_correlations_FLP.c", | 330 "src/silk/float/regularize_correlations_FLP.c", |
333 "src/silk/float/residual_energy_FLP.c", | 331 "src/silk/float/residual_energy_FLP.c", |
334 "src/silk/float/scale_copy_vector_FLP.c", | 332 "src/silk/float/scale_copy_vector_FLP.c", |
335 "src/silk/float/scale_vector_FLP.c", | 333 "src/silk/float/scale_vector_FLP.c", |
336 "src/silk/float/schur_FLP.c", | 334 "src/silk/float/schur_FLP.c", |
337 "src/silk/float/solve_LS_FLP.c", | |
338 "src/silk/float/sort_FLP.c", | 335 "src/silk/float/sort_FLP.c", |
339 "src/silk/float/structs_FLP.h", | 336 "src/silk/float/structs_FLP.h", |
340 "src/silk/float/warped_autocorrelation_FLP.c", | 337 "src/silk/float/warped_autocorrelation_FLP.c", |
341 "src/silk/float/wrappers_FLP.c", | 338 "src/silk/float/wrappers_FLP.c", |
342 ] | 339 ] |
343 | 340 |
344 include_dirs += [ "src/silk/float" ] | 341 include_dirs += [ "src/silk/float" ] |
345 } | 342 } |
346 | 343 |
347 if (use_opus_arm_optimization) { | 344 if (use_opus_arm_optimization) { |
(...skipping 22 matching lines...) Expand all Loading... |
370 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", | 367 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", |
371 "src/celt/arm/arm_celt_map.c", | 368 "src/celt/arm/arm_celt_map.c", |
372 "src/celt/arm/armcpu.c", | 369 "src/celt/arm/armcpu.c", |
373 "src/celt/arm/armcpu.h", | 370 "src/celt/arm/armcpu.h", |
374 "src/celt/arm/fft_arm.h", | 371 "src/celt/arm/fft_arm.h", |
375 "src/celt/arm/mdct_arm.h", | 372 "src/celt/arm/mdct_arm.h", |
376 "src/celt/arm/pitch_arm.h", | 373 "src/celt/arm/pitch_arm.h", |
377 "src/silk/arm/arm_silk_map.c", | 374 "src/silk/arm/arm_silk_map.c", |
378 ] | 375 ] |
379 | 376 |
380 include_dirs += [ "src" ] | |
381 | |
382 defines += [ | 377 defines += [ |
383 "OPUS_ARM_MAY_HAVE_EDSP", | 378 "OPUS_ARM_MAY_HAVE_EDSP", |
384 "OPUS_ARM_MAY_HAVE_MEDIA", | 379 "OPUS_ARM_MAY_HAVE_MEDIA", |
385 "OPUS_HAVE_RTCD", | 380 "OPUS_HAVE_RTCD", |
386 ] | 381 ] |
387 | 382 |
388 deps = [ | 383 deps = [ |
389 ":convert_rtcd_assembler", | 384 ":convert_rtcd_assembler", |
390 ] | 385 ] |
391 | 386 |
392 if (arm_use_neon) { | 387 if (arm_use_neon) { |
393 sources += [ | 388 sources += [ |
394 "src/celt/arm/celt_neon_intr.c", | 389 "src/celt/arm/celt_neon_intr.c", |
| 390 "src/celt/arm/pitch_neon_intr.c", |
| 391 "src/silk/arm/LPC_inv_pred_gain_arm.h", |
| 392 "src/silk/arm/LPC_inv_pred_gain_neon_intr.c", |
| 393 "src/silk/arm/NSQ_del_dec_arm.h", |
| 394 "src/silk/arm/NSQ_del_dec_neon_intr.c", |
395 "src/silk/arm/NSQ_neon.c", | 395 "src/silk/arm/NSQ_neon.c", |
396 "src/silk/arm/NSQ_neon.h", | 396 "src/silk/arm/NSQ_neon.h", |
| 397 "src/silk/arm/biquad_alt_arm.h", |
| 398 "src/silk/arm/biquad_alt_neon_intr.c", |
| 399 "src/silk/fixed/arm/warped_autocorrelation_FIX_arm.h", |
| 400 "src/silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c", |
397 ] | 401 ] |
398 | 402 |
399 defines += [ | 403 defines += [ |
400 "OPUS_ARM_MAY_HAVE_NEON", | 404 "OPUS_ARM_MAY_HAVE_NEON", |
401 "OPUS_ARM_MAY_HAVE_NEON_INTR", | 405 "OPUS_ARM_MAY_HAVE_NEON_INTR", |
402 ] | 406 ] |
403 } | 407 } |
404 } | 408 } |
405 } | 409 } |
406 } | 410 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 ] | 457 ] |
454 | 458 |
455 deps = [ | 459 deps = [ |
456 ":opus", | 460 ":opus", |
457 ] | 461 ] |
458 } | 462 } |
459 | 463 |
460 test("test_opus_encode") { | 464 test("test_opus_encode") { |
461 sources = [ | 465 sources = [ |
462 "src/tests/test_opus_encode.c", | 466 "src/tests/test_opus_encode.c", |
| 467 "src/tests/opus_encode_regressions.c", |
463 ] | 468 ] |
464 | 469 |
465 configs -= [ "//build/config/compiler:chromium_code" ] | 470 configs -= [ "//build/config/compiler:chromium_code" ] |
466 configs += [ | 471 configs += [ |
467 "//build/config/compiler:no_chromium_code", | 472 "//build/config/compiler:no_chromium_code", |
468 ":opus_test_config", | 473 ":opus_test_config", |
469 ] | 474 ] |
470 | 475 |
471 deps = [ | 476 deps = [ |
472 ":opus", | 477 ":opus", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 configs -= [ "//build/config/compiler:chromium_code" ] | 516 configs -= [ "//build/config/compiler:chromium_code" ] |
512 configs += [ | 517 configs += [ |
513 "//build/config/compiler:no_chromium_code", | 518 "//build/config/compiler:no_chromium_code", |
514 ":opus_test_config", | 519 ":opus_test_config", |
515 ] | 520 ] |
516 | 521 |
517 deps = [ | 522 deps = [ |
518 ":opus", | 523 ":opus", |
519 ] | 524 ] |
520 } | 525 } |
OLD | NEW |