Home
last modified time | relevance | path

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

12

/external/libopus/celt/
Dmathops.h47 static OPUS_INLINE opus_val32 celt_maxabs16(const opus_val16 *x, int len) in celt_maxabs16()
63 static OPUS_INLINE opus_val32 celt_maxabs32(const opus_val32 *x, int len) in celt_maxabs32()
66 opus_val32 maxval = 0; in celt_maxabs32()
67 opus_val32 minval = 0; in celt_maxabs32()
157 static OPUS_INLINE opus_int16 celt_zlog2(opus_val32 x) in celt_zlog2()
162 opus_val16 celt_rsqrt_norm(opus_val32 x);
164 opus_val32 celt_sqrt(opus_val32 x);
166 opus_val16 celt_cos_norm(opus_val32 x);
169 static OPUS_INLINE opus_val16 celt_log2(opus_val32 x) in celt_log2()
195 static OPUS_INLINE opus_val32 celt_exp2_frac(opus_val16 x) in celt_exp2_frac()
[all …]
Dfixed_generic.h37 #define MULT16_16SU(a,b) ((opus_val32)(opus_val16)(a)*(opus_val32)(opus_uint16)(b))
52 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits))))
55 #define QCONST32(x,bits) ((opus_val32)(.5+(x)*(((opus_val32)1)<<(bits))))
65 #define EXTEND32(x) ((opus_val32)(x))
100 #define ADD32(a,b) ((opus_val32)(a)+(opus_val32)(b))
102 #define SUB32(a,b) ((opus_val32)(a)-(opus_val32)(b))
109 #define MULT16_16(a,b) (((opus_val32)(opus_val16)(a))*((opus_val32)(opus_val16)(b)))
129 #define DIV32_16(a,b) ((opus_val16)(((opus_val32)(a))/((opus_val16)(b))))
132 #define DIV32(a,b) (((opus_val32)(a))/((opus_val32)(b)))
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()
113 opus_val32 mem0, mem1, mem2, mem3, mem4; in celt_fir5()
126 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); in celt_fir5()
151 opus_val32 ac[5]; in pitch_downsample()
158 opus_val32 maxabs = celt_maxabs32(x[0], len); in pitch_downsample()
161 opus_val32 maxabs_1 = celt_maxabs32(x[1], len); in pitch_downsample()
[all …]
Dmathops.c69 opus_val32 frac_div32(opus_val32 a, opus_val32 b) in frac_div32()
72 opus_val32 result, rem; in frac_div32()
90 opus_val16 celt_rsqrt_norm(opus_val32 x) in celt_rsqrt_norm()
118 opus_val32 celt_sqrt(opus_val32 x) in celt_sqrt()
122 opus_val32 rt; in celt_sqrt()
156 opus_val16 celt_cos_norm(opus_val32 x) in celt_cos_norm()
180 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()
58 opus_val32 rr = 0; in _celt_lpc()
67 opus_val32 tmp1, tmp2; in _celt_lpc()
116 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); in celt_fir()
126 opus_val32 sum[4]={0,0,0,0}; in celt_fir()
135 opus_val32 sum = 0; in celt_fir()
144 void celt_iir(const opus_val32 *_x, in celt_iir()
[all …]
Darch.h89 typedef opus_int32 opus_val32; typedef
91 typedef opus_val32 celt_sig;
93 typedef opus_val32 celt_ener;
134 typedef float opus_val32; typedef
178 #define MULT16_16(a,b) ((opus_val32)(a)*(opus_val32)(b))
179 #define MAC16_16(c,a,b) ((c)+(opus_val32)(a)*(opus_val32)(b))
198 #define DIV32_16(a,b) (((opus_val32)(a))/(opus_val16)(b))
199 #define DIV32(a,b) (((opus_val32)(a))/(opus_val32)(b))
Dpitch.h60 static OPUS_INLINE void xcorr_kernel(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4],… in xcorr_kernel()
129 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod()
132 opus_val32 xy01=0; in dual_inner_prod()
133 opus_val32 xy02=0; in dual_inner_prod()
145 opus_val32
150 opus_val32 *xcorr, int len, int max_pitch);
157 opus_val32
162 const opus_val16 *, opus_val32 *, int, int);
Dcelt_lpc.h35 void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
44 void celt_iir(const opus_val32 *x,
46 opus_val32 *y,
51 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
Dvq.c78 gain = celt_div((opus_val32)MULT16_16(Q15_ONE,len),(opus_val32)(len+factor*K)); in exp_rotation()
113 int N, opus_val32 Ryy, opus_val16 gain) in normalise_residual()
119 opus_val32 t; in normalise_residual()
166 opus_val32 sum; in alg_quant()
167 opus_val32 xy; in alg_quant()
256 opus_val32 best_num = -VERY_LARGE16; in alg_quant()
326 opus_val32 Ryy; in alg_unquant()
353 opus_val32 E = EPSILON; in renormalise_vector()
355 opus_val32 t; in renormalise_vector()
382 opus_val32 Emid, Eside; in stereo_itheta()
Dcelt.c89 static void comb_filter_const(opus_val32 *y, opus_val32 *x, int T, int N, in comb_filter_const()
92 opus_val32 x0, x1, x2, x3, x4; in comb_filter_const()
114 void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, in comb_filter()
121 opus_val32 x0, x1, x2, x3, x4; in comb_filter()
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()
431 opus_val32 prev[2] = {0, 0}; in unquant_coarse_energy()
[all …]
Dfixed_debug.h44 #define MULT16_16SU(a,b) ((opus_val32)(opus_val16)(a)*(opus_val32)(opus_uint16)(b))
52 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits))))
53 #define QCONST32(x,bits) ((opus_val32)(.5+(x)*(((opus_val32)1)<<(bits))))
226 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift))
442 if (ABS32(b)>=((opus_val32)(1)<<(15+Q))) in MULT16_32_QX_()
482 res = ((((opus_int64)a)*(opus_int64)b) + (((opus_val32)(1)<<Q)>>1))>> Q; in MULT16_32_PX_()
Dcelt_encoder.c86 opus_val32 delayedIntra;
103 opus_val32 preemph_memE[2];
104 opus_val32 preemph_memD[2];
111 opus_val32 overlap_max;
227 static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int C, in transient_analysis()
232 opus_val32 mem0,mem1; in transient_analysis()
255 opus_val32 mean; in transient_analysis()
257 opus_val32 norm; in transient_analysis()
264 opus_val32 x,y; in transient_analysis()
385 opus_val32 mean_diff=0; in patch_transient_decision()
[all …]
Dcelt.h201 void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N,
/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()
87 static OPUS_INLINE opus_val32 MAC16_16_armv5e(opus_val32 c, opus_val16 a, in MAC16_16_armv5e()
103 static OPUS_INLINE opus_val32 MULT16_16_armv5e(opus_val16 a, opus_val16 b) in MULT16_16_armv5e()
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()
74 #define MULT32_32_Q31(a,b) (opus_val32)((((opus_int64)(a)) * ((opus_int64)(b)))>>31)
Dpitch_arm.h36 opus_val32 celt_pitch_xcorr_neon(const opus_val16 *_x, const opus_val16 *_y,
37 opus_val32 *xcorr, int len, int max_pitch);
45 opus_val32 celt_pitch_xcorr_edsp(const opus_val16 *_x, const opus_val16 *_y,
46 opus_val32 *xcorr, int len, int max_pitch);
Darm_celt_map.c37 opus_val32 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
38 const opus_val16 *, opus_val32 *, int , int) = {
Dcelt_pitch_xcorr_arm.s49 ; q0 = opus_val32 sum[4]
51 ; q0 = opus_val32 sum[4]
154 ; opus_val32 celt_pitch_xcorr_neon(opus_val16 *_x, opus_val16 *_y,
155 ; opus_val32 *xcorr, int len, int max_pitch)
160 ; r2 = opus_val32 *xcorr
346 ; r2 = opus_val32 *xcorr
353 ; r6 = opus_val32 sum0
354 ; r7 = opus_val32 sum1
355 ; r8 = opus_val32 sum2
356 ; r9 = opus_val32 sum3
/external/libopus/celt/tests/
Dtest_unit_mathops.c65 opus_val32 val; in testdiv()
196 opus_val32 x; in testlog2()
225 opus_val32 x; in testexp2log2()
239 opus_val32 x; in testilog2()
242 opus_val32 lg; in testilog2()
243 opus_val32 y; in testilog2()
/external/libopus/celt/x86/
Dpitch_sse.h39 static OPUS_INLINE void xcorr_kernel(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], i… in xcorr_kernel()
76 int N, opus_val32 *xy1, opus_val32 *xy2) in dual_inner_prod()
105 static OPUS_INLINE void comb_filter_const(opus_val32 *y, opus_val32 *x, int T, int N, in comb_filter_const()
118 const opus_val32 *xp = &x[i-T-2]; in comb_filter_const()
/external/libopus/src/
Dopus_encoder.c56 opus_val32 XX, XY, YY;
89 opus_val32 hp_mem[4];
285 opus_val32 *S, /* I/O: State vector [2] */ in silk_biquad_float()
293 opus_val32 vout; in silk_biquad_float()
294 opus_val32 inval; in silk_biquad_float()
295 opus_val32 A[2], B[3]; in silk_biquad_float()
297 A[0] = (opus_val32)(A_Q28[0] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
298 A[1] = (opus_val32)(A_Q28[1] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
299 B[0] = (opus_val32)(B_Q28[0] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
300 B[1] = (opus_val32)(B_Q28[1] * (1.f/((opus_int32)1<<28))); in silk_biquad_float()
[all …]
Dopus_multistream_encoder.c85 static opus_val32 *ms_get_preemph_mem(OpusMSEncoder *st) in ms_get_preemph_mem()
101 return (opus_val32*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32)); in ms_get_preemph_mem()
104 static opus_val32 *ms_get_window_mem(OpusMSEncoder *st) in ms_get_window_mem()
120 return (opus_val32*)ptr; in ms_get_window_mem()
186 opus_val32 diff; in logSum()
220 …st CELTMode *celt_mode, const void *pcm, opus_val16 *bandLogE, opus_val32 *mem, opus_val32 *preemp… in surround_analysis()
231 opus_val32 bandE[21]; in surround_analysis()
233 VARDECL(opus_val32, in); in surround_analysis()
235 VARDECL(opus_val32, freq); in surround_analysis()
245 ALLOC(in, frame_size+overlap, opus_val32); in surround_analysis()
[all …]
Dopus_private.h85 typedef void (*downmix_func)(const void *, opus_val32 *, int, int, int, int, int);
86 void downmix_float(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C…
87 void downmix_int(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C);
Dmlp.c42 static OPUS_INLINE opus_val16 tansig_approx(opus_val32 _x) /* Q19 */
102 opus_val32 sum = SHL32(EXTEND32(*W++),8);
110 opus_val32 sum = SHL32(EXTEND32(*W++),14);

12