summaryrefslogtreecommitdiff
path: root/pkg/opus/gen.lua
blob: 4ee114fd4c63e955bec4a0ce0735afe544258d3a (plain)
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
cflags{
	'-Wall', '-Wpedantic',
	'-D OPUS_BUILD',
	'-I $srcdir/include',
	'-I $srcdir/celt',
	'-I $srcdir/silk',
	'-I $srcdir/silk/float',
	'-include $dir/config.h',
}

pkg.hdrs = copy('$outdir/include', '$srcdir/include', {
	'opus.h',
	'opus_defines.h',
	'opus_multistream.h',
	'opus_types.h',
})

lib('libopus.a', [[
	src/(
		opus.c
		opus_decoder.c
		opus_encoder.c
		opus_multistream.c
		opus_multistream_encoder.c
		opus_multistream_decoder.c
		repacketizer.c
		opus_projection_encoder.c
		opus_projection_decoder.c
		mapping_matrix.c

		analysis.c
		mlp.c
		mlp_data.c
	)
	celt/(
		bands.c
		celt.c
		celt_encoder.c
		celt_decoder.c
		cwrs.c
		entcode.c
		entdec.c
		entenc.c
		kiss_fft.c
		laplace.c
		mathops.c
		mdct.c
		modes.c
		pitch.c
		celt_lpc.c
		quant_bands.c
		rate.c
		vq.c
	)
	silk/(
		CNG.c
		code_signs.c
		init_decoder.c
		decode_core.c
		decode_frame.c
		decode_parameters.c
		decode_indices.c
		decode_pulses.c
		decoder_set_fs.c
		dec_API.c
		enc_API.c
		encode_indices.c
		encode_pulses.c
		gain_quant.c
		interpolate.c
		LP_variable_cutoff.c
		NLSF_decode.c
		NSQ.c
		NSQ_del_dec.c
		PLC.c
		shell_coder.c
		tables_gain.c
		tables_LTP.c
		tables_NLSF_CB_NB_MB.c
		tables_NLSF_CB_WB.c
		tables_other.c
		tables_pitch_lag.c
		tables_pulses_per_block.c
		VAD.c
		control_audio_bandwidth.c
		quant_LTP_gains.c
		VQ_WMat_EC.c
		HP_variable_cutoff.c
		NLSF_encode.c
		NLSF_VQ.c
		NLSF_unpack.c
		NLSF_del_dec_quant.c
		process_NLSFs.c
		stereo_LR_to_MS.c
		stereo_MS_to_LR.c
		check_control_input.c
		control_SNR.c
		init_encoder.c
		control_codec.c
		A2NLSF.c
		ana_filt_bank_1.c
		biquad_alt.c
		bwexpander_32.c
		bwexpander.c
		debug.c
		decode_pitch.c
		inner_prod_aligned.c
		lin2log.c
		log2lin.c
		LPC_analysis_filter.c
		LPC_inv_pred_gain.c
		table_LSF_cos.c
		NLSF2A.c
		NLSF_stabilize.c
		NLSF_VQ_weights_laroia.c
		pitch_est_tables.c
		resampler.c
		resampler_down2_3.c
		resampler_down2.c
		resampler_private_AR2.c
		resampler_private_down_FIR.c
		resampler_private_IIR_FIR.c
		resampler_private_up2_HQ.c
		resampler_rom.c
		sigm_Q15.c
		sort.c
		sum_sqr_shift.c
		stereo_decode_pred.c
		stereo_encode_pred.c
		stereo_find_predictor.c
		stereo_quant_pred.c
		LPC_fit.c
		float/(
			apply_sine_window_FLP.c
			corrMatrix_FLP.c
			encode_frame_FLP.c
			find_LPC_FLP.c
			find_LTP_FLP.c
			find_pitch_lags_FLP.c
			find_pred_coefs_FLP.c
			LPC_analysis_filter_FLP.c
			LTP_analysis_filter_FLP.c
			LTP_scale_ctrl_FLP.c
			noise_shape_analysis_FLP.c
			process_gains_FLP.c
			regularize_correlations_FLP.c
			residual_energy_FLP.c
			warped_autocorrelation_FLP.c
			wrappers_FLP.c
			autocorrelation_FLP.c
			burg_modified_FLP.c
			bwexpander_FLP.c
			energy_FLP.c
			inner_product_FLP.c
			k2a_FLP.c
			LPC_inv_pred_gain_FLP.c
			pitch_analysis_core_FLP.c
			scale_copy_vector_FLP.c
			scale_vector_FLP.c
			schur_FLP.c
			sort_FLP.c
		)
	)
]])

fetch 'curl'