Home
last modified time | relevance | path

Searched refs:opus_val32 (Results 1 – 25 of 46) sorted by relevance

12

/external/libopus/celt/arm/
Dfixed_armv5e.h37 static OPUS_INLINE opus_val32 MULT16_32_Q16_armv5e(opus_val16 a, opus_val32 b) in MULT16_32_Q16_armv5e()
53 static OPUS_INLINE opus_val32 MULT16_32_Q15_armv5e(opus_val16 a, opus_val32 b) in MULT16_32_Q15_armv5e()
71 static OPUS_INLINE opus_val32 MAC16_32_Q15_armv5e(opus_val32 c, opus_val16 a, in MAC16_32_Q15_armv5e()
72 opus_val32 b) in MAC16_32_Q15_armv5e()
88 static OPUS_INLINE opus_val32 MAC16_32_Q16_armv5e(opus_val32 c, opus_val16 a, in MAC16_32_Q16_armv5e()
89 opus_val32 b) in MAC16_32_Q16_armv5e()
104 static OPUS_INLINE opus_val32 MAC16_16_armv5e(opus_val32 c, opus_val16 a, in MAC16_16_armv5e()
120 static OPUS_INLINE opus_val32 MULT16_16_armv5e(opus_val16 a, opus_val16 b) in MULT16_16_armv5e()
136 static OPUS_INLINE opus_val16 SIG2WORD16_armv6(opus_val32 x) in SIG2WORD16_armv6()
Dpitch_arm.h34 opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N);
36 const opus_val16 *y02, int N, opus_val32 *xy1, opus_val32 *xy2);
48 extern opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_va…
60 const opus_val16 *y01, const opus_val16 *y02, int N, opus_val32 *xy1, opus_val32 *xy2);
72 opus_val32 celt_pitch_xcorr_neon(const opus_val16 *_x, const opus_val16 *_y,
73 opus_val32 *xcorr, int len, int max_pitch, int arch);
81 opus_val32 celt_pitch_xcorr_edsp(const opus_val16 *_x, const opus_val16 *_y,
82 opus_val32 *xcorr, int len, int max_pitch, int arch);
89 extern opus_val32
91 const opus_val16 *, opus_val32 *, int, int, int);
[all …]
Dpitch_neon_intr.c37 opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N) in celt_inner_prod_neon()
40 opus_val32 xy; in celt_inner_prod_neon()
76 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod_neon()
79 opus_val32 xy01, xy02; in dual_inner_prod_neon()
121 opus_val32 xy1_c, xy2_c; in dual_inner_prod_neon()
140 static opus_val32 celt_inner_prod_neon_float_c_simulation(const opus_val16 *x, const opus_val16 *y,… in celt_inner_prod_neon_float_c_simulation()
143 opus_val32 xy, xy0 = 0, xy1 = 0, xy2 = 0, xy3 = 0; in celt_inner_prod_neon_float_c_simulation()
163 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod_neon_float_c_simulation()
166opus_val32 xy01, xy02, xy01_0 = 0, xy01_1 = 0, xy01_2 = 0, xy01_3 = 0, xy02_0 = 0, xy02_1 = 0, xy0… in dual_inner_prod_neon_float_c_simulation()
195 opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N) in celt_inner_prod_neon()
[all …]
Darm_celt_map.c39 opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y,…
47 int N, opus_val32 *xy1, opus_val32 *xy2) = {
59 opus_val32 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
60 const opus_val16 *, opus_val32 *, int, int, int) = {
71 const opus_val16 *, opus_val32 *, int, int, int) = {
86 opus_val32 sum[4],
Dfixed_armv4.h32 static OPUS_INLINE opus_val32 MULT16_32_Q16_armv4(opus_val16 a, opus_val32 b) in MULT16_32_Q16_armv4()
49 static OPUS_INLINE opus_val32 MULT16_32_Q15_armv4(opus_val16 a, opus_val32 b) in MULT16_32_Q15_armv4()
78 #define MULT32_32_Q31(a,b) (opus_val32)((((opus_int64)(a)) * ((opus_int64)(b)))>>31)
/external/libopus/celt/
Dfixed_generic.h37 #define MULT16_16SU(a,b) ((opus_val32)(opus_val16)(a)*(opus_val32)(opus_uint16)(b))
41 #define MULT16_32_Q16(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),16))
48 #define MULT16_32_P16(a,b) ((opus_val32)PSHR((opus_int64)((opus_val16)(a))*(b),16))
55 #define MULT16_32_Q15(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),15))
62 #define MULT32_32_Q31(a,b) ((opus_val32)SHR((opus_int64)(a)*(opus_int64)(b),31))
68 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits))))
71 #define QCONST32(x,bits) ((opus_val32)(.5+(x)*(((opus_val32)1)<<(bits))))
81 #define EXTEND32(x) ((opus_val32)(x))
119 #define ADD32(a,b) ((opus_val32)(a)+(opus_val32)(b))
121 #define SUB32(a,b) ((opus_val32)(a)-(opus_val32)(b))
[all …]
Dmathops.h80 static OPUS_INLINE opus_val32 celt_maxabs16(const opus_val16 *x, int len) in celt_maxabs16()
96 static OPUS_INLINE opus_val32 celt_maxabs32(const opus_val32 *x, int len) in celt_maxabs32()
99 opus_val32 maxval = 0; in celt_maxabs32()
100 opus_val32 minval = 0; in celt_maxabs32()
189 static OPUS_INLINE opus_int16 celt_zlog2(opus_val32 x) in celt_zlog2()
194 opus_val16 celt_rsqrt_norm(opus_val32 x);
196 opus_val32 celt_sqrt(opus_val32 x);
198 opus_val16 celt_cos_norm(opus_val32 x);
201 static OPUS_INLINE opus_val16 celt_log2(opus_val32 x) in celt_log2()
227 static OPUS_INLINE opus_val32 celt_exp2_frac(opus_val16 x) in celt_exp2_frac()
[all …]
Dpitch.c45 static void find_best_pitch(opus_val32 *xcorr, opus_val16 *y, int len, in find_best_pitch()
48 , int yshift, opus_val32 maxcorr in find_best_pitch()
53 opus_val32 Syy=1; in find_best_pitch()
55 opus_val32 best_den[2]; in find_best_pitch()
75 opus_val32 xcorr16; in find_best_pitch()
111 opus_val32 mem0, mem1, mem2, mem3, mem4; in celt_fir5()
124 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); in celt_fir5()
144 opus_val32 ac[5]; in pitch_downsample()
151 opus_val32 maxabs = celt_maxabs32(x[0], len); in pitch_downsample()
154 opus_val32 maxabs_1 = celt_maxabs32(x[1], len); in pitch_downsample()
[all …]
Dmathops.c70 opus_val32 frac_div32(opus_val32 a, opus_val32 b) in frac_div32()
73 opus_val32 result, rem; in frac_div32()
91 opus_val16 celt_rsqrt_norm(opus_val32 x) in celt_rsqrt_norm()
119 opus_val32 celt_sqrt(opus_val32 x) in celt_sqrt()
123 opus_val32 rt; in celt_sqrt()
157 opus_val16 celt_cos_norm(opus_val32 x) in celt_cos_norm()
181 opus_val32 celt_rcp(opus_val32 x) in celt_rcp()
Dcelt_lpc.c39 const opus_val32 *ac, /* in: [0...p] autocorrelation values */ in _celt_lpc()
44 opus_val32 r; in _celt_lpc()
45 opus_val32 error = ac[0]; in _celt_lpc()
47 opus_val32 lpc[LPC_ORDER]; in _celt_lpc()
57 opus_val32 rr = 0; in _celt_lpc()
66 opus_val32 tmp1, tmp2; in _celt_lpc()
108 opus_val32 sum[4]; in celt_fir_c()
121 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); in celt_fir_c()
129 void celt_iir(const opus_val32 *_x, in celt_iir()
131 opus_val32 *_y, in celt_iir()
[all …]
Dpitch.h65 static OPUS_INLINE void xcorr_kernel_c(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4… in xcorr_kernel_c()
138 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod_c()
141 opus_val32 xy01=0; in dual_inner_prod_c()
142 opus_val32 xy02=0; in dual_inner_prod_c()
159 static OPUS_INLINE opus_val32 celt_inner_prod_c(const opus_val16 *x, in celt_inner_prod_c()
163 opus_val32 xy=0; in celt_inner_prod_c()
175 void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N,
181 opus_val32
186 opus_val32 *xcorr, int len, int max_pitch, int arch);
Darch.h120 typedef opus_int32 opus_val32; typedef
123 typedef opus_val32 celt_sig;
125 typedef opus_val32 celt_ener;
180 typedef float opus_val32; typedef
249 #define MULT16_16(a,b) ((opus_val32)(a)*(opus_val32)(b))
250 #define MAC16_16(c,a,b) ((c)+(opus_val32)(a)*(opus_val32)(b))
270 #define DIV32_16(a,b) (((opus_val32)(a))/(opus_val16)(b))
271 #define DIV32(a,b) (((opus_val32)(a))/(opus_val32)(b))
Dcelt.c98 void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N, in comb_filter_const_c()
101 opus_val32 x0, x1, x2, x3, x4; in comb_filter_const_c()
109 opus_val32 t; in comb_filter_const_c()
144 opus_val32 t; in comb_filter_const_c()
162 void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N, in comb_filter_const_c()
165 opus_val32 x0, x1, x2, x3, x4; in comb_filter_const_c()
190 void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, in comb_filter()
197 opus_val32 x0, x1, x2, x3, x4; in comb_filter()
Dcelt_lpc.h40 void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
55 void celt_iir(const opus_val32 *x,
57 opus_val32 *y,
63 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
Dvq.c83 gain = celt_div((opus_val32)MULT16_16(Q15_ONE,len),(opus_val32)(len+factor*K)); in exp_rotation()
118 int N, opus_val32 Ryy, opus_val16 gain) in normalise_residual()
124 opus_val32 t; in normalise_residual()
167 opus_val32 sum; in op_pvq_search_c()
168 opus_val32 xy; in op_pvq_search_c()
253 opus_val32 best_num; in op_pvq_search_c()
362 opus_val32 Ryy; in alg_unquant()
385 opus_val32 E; in renormalise_vector()
387 opus_val32 t; in renormalise_vector()
411 opus_val32 Emid, Eside; in stereo_itheta()
Dquant_bands.c142 static opus_val32 loss_distortion(const opus_val16 *eBands, opus_val16 *oldEBands, int start, int e… in loss_distortion()
145 opus_val32 dist = 0; in loss_distortion()
164 opus_val32 prev[2] = {0,0}; in quant_coarse_energy_impl()
186 opus_val32 q; in quant_coarse_energy_impl()
188 opus_val32 f, tmp; in quant_coarse_energy_impl()
198 SUB32((opus_val32)oldEBands[i+c*m->nbEBands],max_decay))); in quant_coarse_energy_impl()
248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl()
264 int force_intra, opus_val32 *delayedIntra, int two_pass, int loss_rate, int lfe) in quant_coarse_energy()
274 opus_val32 new_distortion; in quant_coarse_energy()
432 opus_val32 prev[2] = {0, 0}; in unquant_coarse_energy()
[all …]
/external/libopus/celt/x86/
Dpitch_sse.h44 opus_val32 sum[4],
52 opus_val32 sum[4],
71 opus_val32 sum[4],
81 opus_val32 celt_inner_prod_sse4_1(
88 opus_val32 celt_inner_prod_sse2(
95 opus_val32 celt_inner_prod_sse(
121 extern opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK + 1])(
144 opus_val32 *xy1,
145 opus_val32 *xy2);
147 void comb_filter_const_sse(opus_val32 *y,
[all …]
Dx86_celt_map.c62 opus_val32 sum[4],
77 opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK + 1])(
98 opus_val32 sum[4],
108 opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK + 1])(
125 opus_val32 *xy1,
126 opus_val32 *xy2
136 opus_val32 *y,
137 opus_val32 *x,
Dpitch_sse.c43 void xcorr_kernel_sse(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], int len) in xcorr_kernel_sse()
80 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod_sse()
108 opus_val32 celt_inner_prod_sse(const opus_val16 *x, const opus_val16 *y, in celt_inner_prod_sse()
133 void comb_filter_const_sse(opus_val32 *y, opus_val32 *x, int T, int N, in comb_filter_const_sse()
146 const opus_val32 *xp = &x[i-T-2]; in comb_filter_const_sse()
/external/libopus/celt/mips/
Dpitch_mipsr1.h39 int N, opus_val32 *xy1, opus_val32 *xy2, int arch) in dual_inner_prod()
42 opus_val32 xy01=0; in dual_inner_prod()
43 opus_val32 xy02=0; in dual_inner_prod()
65 const opus_val16 * y, opus_val32 sum[4], int len) in xcorr_kernel_mips()
151 sum[0] = (opus_val32)sum_0; in xcorr_kernel_mips()
152 sum[1] = (opus_val32)sum_1; in xcorr_kernel_mips()
153 sum[2] = (opus_val32)sum_2; in xcorr_kernel_mips()
154 sum[3] = (opus_val32)sum_3; in xcorr_kernel_mips()
Dcelt_mipsr1.h57 void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, in comb_filter()
62 opus_val32 x0, x1, x2, x3, x4; in comb_filter()
98 opus_val32 res; in comb_filter()
135 opus_val32 res; in comb_filter()
/external/libopus/celt/tests/
Dtest_unit_mathops.c56 opus_val32 val; in testdiv()
187 opus_val32 x; in testlog2()
216 opus_val32 x; in testexp2log2()
230 opus_val32 x; in testilog2()
233 opus_val32 lg; in testilog2()
234 opus_val32 y; in testilog2()
/external/libopus/src/
Dopus_encoder.c61 opus_val32 XX, XY, YY;
99 opus_val32 hp_mem[4];
116 opus_val32 peak_signal_energy;
310 opus_val32 *S, /* I/O: State vector [2] */ in silk_biquad_float()
318 opus_val32 vout; in silk_biquad_float()
319 opus_val32 inval; in silk_biquad_float()
320 opus_val32 A[2], B[3]; in silk_biquad_float()
322 A[0] = (opus_val32)(A_Q28[0] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
323 A[1] = (opus_val32)(A_Q28[1] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
324 B[0] = (opus_val32)(B_Q28[0] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
[all …]
Dopus_multistream_encoder.c64 static opus_val32 *ms_get_preemph_mem(OpusMSEncoder *st) in ms_get_preemph_mem()
81 return (opus_val32*)(void*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32)); in ms_get_preemph_mem()
84 static opus_val32 *ms_get_window_mem(OpusMSEncoder *st) in ms_get_window_mem()
101 return (opus_val32*)(void*)ptr; in ms_get_window_mem()
190 opus_val32 diff; in logSum()
224 …st CELTMode *celt_mode, const void *pcm, opus_val16 *bandLogE, opus_val32 *mem, opus_val32 *preemp… in surround_analysis()
236 opus_val32 bandE[21]; in surround_analysis()
238 VARDECL(opus_val32, in); in surround_analysis()
240 VARDECL(opus_val32, freq); in surround_analysis()
252 ALLOC(in, frame_size+overlap, opus_val32); in surround_analysis()
[all …]
Dopus_private.h135 typedef void (*downmix_func)(const void *, opus_val32 *, int, int, int, int, int);
136 void downmix_float(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C…
137 void downmix_int(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C);
155 struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;}; in align()

12