You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
4.5 KiB

package {
default_applicable_licenses: [
"frameworks_av_media_codecs_amrwb_enc_license",
],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_av_media_codecs_amrwb_enc_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_static {
name: "libstagefright_amrwbenc",
vendor_available: true,
min_sdk_version: "29",
srcs: [
"src/autocorr.c",
"src/az_isp.c",
"src/bits.c",
"src/c2t64fx.c",
"src/c4t64fx.c",
"src/convolve.c",
"src/cor_h_x.c",
"src/decim54.c",
"src/deemph.c",
"src/dtx.c",
"src/g_pitch.c",
"src/gpclip.c",
"src/homing.c",
"src/hp400.c",
"src/hp50.c",
"src/hp6k.c",
"src/hp_wsp.c",
"src/int_lpc.c",
"src/isp_az.c",
"src/isp_isf.c",
"src/lag_wind.c",
"src/levinson.c",
"src/log2.c",
"src/lp_dec2.c",
"src/math_op.c",
"src/oper_32b.c",
"src/p_med_ol.c",
"src/pit_shrp.c",
"src/pitch_f4.c",
"src/pred_lt4.c",
"src/preemph.c",
"src/q_gain2.c",
"src/q_pulse.c",
"src/qisf_ns.c",
"src/qpisf_2s.c",
"src/random.c",
"src/residu.c",
"src/scale.c",
"src/stream.c",
"src/syn_filt.c",
"src/updt_tar.c",
"src/util.c",
"src/voAMRWBEnc.c",
"src/voicefac.c",
"src/wb_vad.c",
"src/weight_a.c",
"src/mem_align.c",
],
arch: {
arm: {
srcs: [
"src/asm/ARMV5E/convolve_opt.s",
"src/asm/ARMV5E/cor_h_vec_opt.s",
"src/asm/ARMV5E/Deemph_32_opt.s",
"src/asm/ARMV5E/Dot_p_opt.s",
"src/asm/ARMV5E/Filt_6k_7k_opt.s",
"src/asm/ARMV5E/Norm_Corr_opt.s",
"src/asm/ARMV5E/pred_lt4_1_opt.s",
"src/asm/ARMV5E/residu_asm_opt.s",
"src/asm/ARMV5E/scale_sig_opt.s",
"src/asm/ARMV5E/Syn_filt_32_opt.s",
"src/asm/ARMV5E/syn_filt_opt.s",
],
cflags: [
"-DARM",
"-DASM_OPT",
],
local_include_dirs: ["src/asm/ARMV5E"],
instruction_set: "arm",
neon: {
exclude_srcs: [
"src/asm/ARMV5E/convolve_opt.s",
"src/asm/ARMV5E/cor_h_vec_opt.s",
"src/asm/ARMV5E/Deemph_32_opt.s",
"src/asm/ARMV5E/Dot_p_opt.s",
"src/asm/ARMV5E/Filt_6k_7k_opt.s",
"src/asm/ARMV5E/Norm_Corr_opt.s",
"src/asm/ARMV5E/pred_lt4_1_opt.s",
"src/asm/ARMV5E/residu_asm_opt.s",
"src/asm/ARMV5E/scale_sig_opt.s",
"src/asm/ARMV5E/Syn_filt_32_opt.s",
"src/asm/ARMV5E/syn_filt_opt.s",
],
srcs: [
"src/asm/ARMV7/convolve_neon.s",
"src/asm/ARMV7/cor_h_vec_neon.s",
"src/asm/ARMV7/Deemph_32_neon.s",
"src/asm/ARMV7/Dot_p_neon.s",
"src/asm/ARMV7/Filt_6k_7k_neon.s",
"src/asm/ARMV7/Norm_Corr_neon.s",
"src/asm/ARMV7/pred_lt4_1_neon.s",
"src/asm/ARMV7/residu_asm_neon.s",
"src/asm/ARMV7/scale_sig_neon.s",
"src/asm/ARMV7/Syn_filt_32_neon.s",
"src/asm/ARMV7/syn_filt_neon.s",
],
// don't actually generate neon instructions, see bug 26932980
cflags: [
"-DARMV7",
"-mfpu=vfpv3",
],
local_include_dirs: [
"src/asm/ARMV5E",
"src/asm/ARMV7",
],
},
},
},
include_dirs: [
"frameworks/av/include",
"frameworks/av/media/libstagefright/include",
],
local_include_dirs: ["src"],
export_include_dirs: ["inc"],
shared_libs: [
"libstagefright_enc_common",
"liblog",
],
cflags: ["-Werror"],
sanitize: {
cfi: true,
},
host_supported: true,
target: {
darwin: {
enabled: false,
},
},
}