• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_codecs_amrnb_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_amrnb_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
33cc_library_static {
34    name: "libstagefright_amrnbdec",
35    vendor_available: true,
36    host_supported: true,
37    min_sdk_version: "29",
38
39    srcs: [
40        "src/a_refl.cpp",
41        "src/agc.cpp",
42        "src/amrdecode.cpp",
43        "src/b_cn_cod.cpp",
44        "src/bgnscd.cpp",
45        "src/c_g_aver.cpp",
46        "src/d1035pf.cpp",
47        "src/d2_11pf.cpp",
48        "src/d2_9pf.cpp",
49        "src/d3_14pf.cpp",
50        "src/d4_17pf.cpp",
51        "src/d8_31pf.cpp",
52        "src/d_gain_c.cpp",
53        "src/d_gain_p.cpp",
54        "src/d_plsf.cpp",
55        "src/d_plsf_3.cpp",
56        "src/d_plsf_5.cpp",
57        "src/dec_amr.cpp",
58        "src/dec_gain.cpp",
59        "src/dec_input_format_tab.cpp",
60        "src/dec_lag3.cpp",
61        "src/dec_lag6.cpp",
62        "src/dtx_dec.cpp",
63        "src/ec_gains.cpp",
64        "src/ex_ctrl.cpp",
65        "src/if2_to_ets.cpp",
66        "src/int_lsf.cpp",
67        "src/lsp_avg.cpp",
68        "src/ph_disp.cpp",
69        "src/post_pro.cpp",
70        "src/preemph.cpp",
71        "src/pstfilt.cpp",
72        "src/qgain475_tab.cpp",
73        "src/sp_dec.cpp",
74        "src/wmf_to_ets.cpp",
75    ],
76
77    export_include_dirs: ["src"],
78
79    cflags: [
80        "-DOSCL_UNUSED_ARG(x)=(void)(x)",
81        "-DOSCL_IMPORT_REF=",
82
83        "-Werror",
84    ],
85
86    //sanitize: {
87    //    misc_undefined: [
88    //        "signed-integer-overflow",
89    //    ],
90    //},
91
92    shared_libs: [
93        "libstagefright_amrnb_common",
94        "liblog",
95    ],
96
97    target: {
98        darwin: {
99            enabled: false,
100        },
101    },
102}
103
104//###############################################################################
105cc_test {
106    name: "libstagefright_amrnbdec_test",
107    gtest: false,
108    host_supported: true,
109
110    srcs: ["test/amrnbdec_test.cpp"],
111
112    cflags: ["-Wall", "-Werror"],
113
114    local_include_dirs: ["src"],
115
116    static_libs: [
117        "libstagefright_amrnbdec",
118        "libsndfile",
119    ],
120
121    shared_libs: [
122        "libstagefright_amrnb_common",
123        "libaudioutils",
124        "liblog",
125    ],
126
127    target: {
128        darwin: {
129            enabled: false,
130        },
131    },
132
133    //sanitize: {
134    //    misc_undefined: [
135    //        "signed-integer-overflow",
136    //    ],
137    //},
138}
139