blob: 228ea800b1f146f444d05e0ffa1f5724def83595 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
2 default_applicable_licenses: [
3 "frameworks_av_media_codecs_amrwb_dec_license",
4 ],
5}
6
7// Added automatically by a large-scale-change that took the approach of
8// 'apply every license found to every target'. While this makes sure we respect
9// every license restriction, it may not be entirely correct.
10//
11// e.g. GPL in an MIT project might only apply to the contrib/ directory.
12//
13// Please consider splitting the single license below into multiple licenses,
14// taking care not to lose any license_kind information, and overriding the
15// default license using the 'licenses: [...]' property on targets as needed.
16//
17// For unused files, consider creating a 'fileGroup' with "//visibility:private"
18// to attach the license to, and including a comment whether the files may be
19// used in the current project.
20// See: http://go/android-license-faq
21license {
22 name: "frameworks_av_media_codecs_amrwb_dec_license",
23 visibility: [":__subpackages__"],
24 license_kinds: [
25 "SPDX-license-identifier-Apache-2.0",
26 "SPDX-license-identifier-BSD",
27 ],
28 license_text: [
29 "NOTICE",
30 ],
31}
32
Colin Cross6f82b4d2017-04-20 17:30:33 -070033cc_library_static {
34 name: "libstagefright_amrwbdec",
Jiyong Park308cae02017-08-07 13:17:05 +090035 vendor_available: true,
Automerger Merge Worker110b8172020-03-12 01:29:00 +000036 host_supported: true,
Jooyung Handdd58702020-04-30 04:20:25 +090037 min_sdk_version: "29",
Colin Cross6f82b4d2017-04-20 17:30:33 -070038
39 srcs: [
40 "src/agc2_amr_wb.cpp",
41 "src/band_pass_6k_7k.cpp",
42 "src/dec_acelp_2p_in_64.cpp",
43 "src/dec_acelp_4p_in_64.cpp",
44 "src/dec_alg_codebook.cpp",
45 "src/dec_gain2_amr_wb.cpp",
46 "src/deemphasis_32.cpp",
47 "src/dtx_decoder_amr_wb.cpp",
48 "src/get_amr_wb_bits.cpp",
49 "src/highpass_400hz_at_12k8.cpp",
50 "src/highpass_50hz_at_12k8.cpp",
51 "src/homing_amr_wb_dec.cpp",
52 "src/interpolate_isp.cpp",
53 "src/isf_extrapolation.cpp",
54 "src/isp_az.cpp",
55 "src/isp_isf.cpp",
56 "src/lagconceal.cpp",
57 "src/low_pass_filt_7k.cpp",
58 "src/median5.cpp",
59 "src/mime_io.cpp",
60 "src/noise_gen_amrwb.cpp",
61 "src/normalize_amr_wb.cpp",
62 "src/oversamp_12k8_to_16k.cpp",
63 "src/phase_dispersion.cpp",
64 "src/pit_shrp.cpp",
65 "src/pred_lt4.cpp",
66 "src/preemph_amrwb_dec.cpp",
67 "src/pvamrwb_math_op.cpp",
68 "src/pvamrwbdecoder.cpp",
69 "src/q_gain2_tab.cpp",
70 "src/qisf_ns.cpp",
71 "src/qisf_ns_tab.cpp",
72 "src/qpisf_2s.cpp",
73 "src/qpisf_2s_tab.cpp",
74 "src/scale_signal.cpp",
75 "src/synthesis_amr_wb.cpp",
76 "src/voice_factor.cpp",
77 "src/wb_syn_filt.cpp",
78 "src/weight_amrwb_lpc.cpp",
79 ],
80
Wonsik Kime1cf6e32018-03-15 20:11:16 -070081 export_include_dirs: [
82 "src",
83 "include",
84 ],
Colin Cross6f82b4d2017-04-20 17:30:33 -070085
86 cflags: [
87 "-DOSCL_UNUSED_ARG(x)=(void)(x)",
88 "-DOSCL_IMPORT_REF=",
89
90 "-Werror",
91 ],
92
93 sanitize: {
94 misc_undefined: [
95 "signed-integer-overflow",
96 ],
97 },
Automerger Merge Worker110b8172020-03-12 01:29:00 +000098
99 target: {
100 darwin: {
101 enabled: false,
102 },
103 },
Colin Cross6f82b4d2017-04-20 17:30:33 -0700104}
105
106//###############################################################################
107cc_test {
108 name: "libstagefright_amrwbdec_test",
109 gtest: false,
Automerger Merge Worker110b8172020-03-12 01:29:00 +0000110 host_supported: true,
Colin Cross6f82b4d2017-04-20 17:30:33 -0700111
112 srcs: ["test/amrwbdec_test.cpp"],
113
Chih-Hung Hsieh5cf07512017-10-02 13:59:12 -0700114 cflags: ["-Wall", "-Werror"],
115
Colin Cross6f82b4d2017-04-20 17:30:33 -0700116 static_libs: [
117 "libstagefright_amrwbdec",
118 "libsndfile",
119 ],
120
121 local_include_dirs: ["src"],
122
Kevin Rocard07be14f2018-01-24 06:14:03 +0000123 shared_libs: ["libaudioutils"],
Colin Cross6f82b4d2017-04-20 17:30:33 -0700124
125 sanitize: {
126 misc_undefined: [
127 "signed-integer-overflow",
128 ],
129 },
Automerger Merge Worker110b8172020-03-12 01:29:00 +0000130
131 target: {
132 darwin: {
133 enabled: false,
134 },
135 },
Colin Cross6f82b4d2017-04-20 17:30:33 -0700136}