Home
last modified time | relevance | path

Searched refs:opus_val16 (Results 1 – 25 of 64) sorted by relevance

123

/external/libopus/celt/arm/
Dpitch_arm.h34 opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N);
35 void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01,
36 const opus_val16 *y02, int N, opus_val32 *xy1, opus_val32 *xy2);
48 …s_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y, i…
59 extern void (*const DUAL_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x,
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,
81 opus_val32 celt_pitch_xcorr_edsp(const opus_val16 *_x, const opus_val16 *_y,
90 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
91 const opus_val16 *, opus_val32 *, int, int, int);
[all …]
Darm_celt_map.c39 opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y,…
46 …nst DUAL_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y01, const opus_…
59 opus_val32 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
60 const opus_val16 *, opus_val32 *, int, int, int) = {
70 void (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
71 const opus_val16 *, opus_val32 *, int, int, int) = {
84 const opus_val16 *x,
85 const opus_val16 *y,
136 const opus_val16 *window,
148 const opus_val16 *window,
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()
88 static OPUS_INLINE opus_val32 MAC16_32_Q16_armv5e(opus_val32 c, opus_val16 a, in MAC16_32_Q16_armv5e()
104 static OPUS_INLINE opus_val32 MAC16_16_armv5e(opus_val32 c, opus_val16 a, in MAC16_16_armv5e()
105 opus_val16 b) 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_neon_intr.c37 opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N) in celt_inner_prod_neon()
75 void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, 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()
162 …id dual_inner_prod_neon_float_c_simulation(const opus_val16 *x, const opus_val16 *y01, const opus_… 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()
234 void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, in dual_inner_prod_neon()
/external/libopus/celt/x86/
Dx86_celt_map.c45 const opus_val16 *x,
46 const opus_val16 *num,
47 opus_val16 *y,
60 const opus_val16 *x,
61 const opus_val16 *y,
78 const opus_val16 *x,
79 const opus_val16 *y,
96 const opus_val16 *x,
97 const opus_val16 *y,
109 const opus_val16 *x,
[all …]
Dpitch_sse.h50 const opus_val16 *x,
51 const opus_val16 *y,
69 const opus_val16 *x,
70 const opus_val16 *y,
96 const opus_val16 *x,
97 const opus_val16 *y,
122 const opus_val16 *x,
123 const opus_val16 *y,
140 void dual_inner_prod_sse(const opus_val16 *x,
141 const opus_val16 *y01,
[all …]
Dcelt_lpc_sse.h39 const opus_val16 *x,
40 const opus_val16 *num,
41 opus_val16 *y,
53 const opus_val16 *x,
54 const opus_val16 *num,
55 opus_val16 *y,
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()
79 void dual_inner_prod_sse(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, 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()
134 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const_sse()
/external/libopus/celt/
Dpitch.h53 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp,
56 void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTRICT y,
59 opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
60 int N, int *T0, int prev_period, opus_val16 prev_gain, int arch);
65 static OPUS_INLINE void xcorr_kernel_c(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4… in xcorr_kernel_c()
68 opus_val16 y_0, y_1, y_2, y_3; in xcorr_kernel_c()
76 opus_val16 tmp; in xcorr_kernel_c()
104 opus_val16 tmp = *x++; in xcorr_kernel_c()
113 opus_val16 tmp=*x++; in xcorr_kernel_c()
122 opus_val16 tmp=*x++; in xcorr_kernel_c()
[all …]
Dquant_bands.h41 extern const opus_val16 eMeans[25];
45 celt_ener *bandE, opus_val16 *bandLogE, int C);
48 celt_ener *eBands, const opus_val16 *oldEBands, int C);
51 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget,
52 opus_val16 *error, ec_enc *enc, int C, int LM,
56 void quant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16 *er…
58 void quant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16
60 void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int intra,…
62 void unquant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_qu…
64 void unquant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fin…
Dquant_bands.c53 const opus_val16 eMeans[25] = {
63 static const opus_val16 pred_coef[4] = {29440, 26112, 21248, 16384};
64 static const opus_val16 beta_coef[4] = {30147, 22282, 12124, 6554};
65 static const opus_val16 beta_intra = 4915;
67 static const opus_val16 pred_coef[4] = {29440/32768., 26112/32768., 21248/32768., 16384/32768.};
68 static const opus_val16 beta_coef[4] = {30147/32768., 22282/32768., 12124/32768., 6554/32768.};
69 static const opus_val16 beta_intra = 4915/32768.;
142 static opus_val32 loss_distortion(const opus_val16 *eBands, opus_val16 *oldEBands, int start, int e… in loss_distortion()
149 opus_val16 d = SUB16(SHR16(eBands[i+c*len], 3), SHR16(oldEBands[i+c*len], 3)); in loss_distortion()
157 const opus_val16 *eBands, opus_val16 *oldEBands, in quant_coarse_energy_impl()
[all …]
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))
68 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits))))
79 #define EXTRACT16(x) ((opus_val16)(x))
115 #define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b)))
117 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b))
132 #define MULT16_16_16(a,b) ((((opus_val16)(a))*((opus_val16)(b))))
136 #define MULT16_16(a,b) (((opus_val32)(opus_val16)(a))*((opus_val32)(opus_val16)(b)))
[all …]
Dmathops.c72 opus_val16 rcp; in frac_div32()
91 opus_val16 celt_rsqrt_norm(opus_val32 x) in celt_rsqrt_norm()
93 opus_val16 n; in celt_rsqrt_norm()
94 opus_val16 r; in celt_rsqrt_norm()
95 opus_val16 r2; in celt_rsqrt_norm()
96 opus_val16 y; in celt_rsqrt_norm()
122 opus_val16 n; in celt_sqrt()
124 static const opus_val16 C[5] = {23175, 11561, -3011, 1699, -664}; in celt_sqrt()
143 static OPUS_INLINE opus_val16 _celt_cos_pi_2(opus_val16 x) in _celt_cos_pi_2()
145 opus_val16 x2; in _celt_cos_pi_2()
[all …]
Dpitch.c45 static void find_best_pitch(opus_val32 *xcorr, opus_val16 *y, int len, in find_best_pitch()
54 opus_val16 best_num[2]; in find_best_pitch()
74 opus_val16 num; in find_best_pitch()
105 static void celt_fir5(opus_val16 *x, in celt_fir5()
106 const opus_val16 *num, in celt_fir5()
110 opus_val16 num0, num1, num2, num3, num4; in celt_fir5()
140 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp, in pitch_downsample()
145 opus_val16 tmp=Q15ONE; in pitch_downsample()
146 opus_val16 lpc[4]; in pitch_downsample()
147 opus_val16 lpc2[5]; in pitch_downsample()
[all …]
Dcelt_lpc.h40 void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
43 const opus_val16 *x,
44 const opus_val16 *num,
45 opus_val16 *y,
56 const opus_val16 *den,
60 opus_val16 *mem,
63 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
64 const opus_val16 *window, int overlap, int lag, int n, int arch);
Dmathops.h80 static OPUS_INLINE opus_val32 celt_maxabs16(const opus_val16 *x, int len) in celt_maxabs16()
83 opus_val16 maxval = 0; in celt_maxabs16()
84 opus_val16 minval = 0; in celt_maxabs16()
194 opus_val16 celt_rsqrt_norm(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()
204 opus_val16 n, frac; in celt_log2()
207 static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; in celt_log2()
227 static OPUS_INLINE opus_val32 celt_exp2_frac(opus_val16 x) in celt_exp2_frac()
229 opus_val16 frac; in celt_exp2_frac()
[all …]
Dcelt.h138 int celt_encode_with_ec(OpusCustomEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_siz…
153 int len, opus_val16 * OPUS_RESTRICT pcm, int frame_size, ec_dec *dec, int accum);
221 void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
222 … int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip);
225 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1,
226 const opus_val16 *window, int overlap, int arch);
230 opus_val16 g10, opus_val16 g11, opus_val16 g12);
241 void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *co…
243 opus_val16 *oldBandE, int start, int effEnd, int C, int CC, int isTransient,
Dcelt_encoder.c92 opus_val16 prefilter_gain;
96 opus_val16 prefilter_gain_old;
112 opus_val16 stereo_saving;
114 opus_val16 *energy_mask;
115 opus_val16 spec_avg;
141 …+ 4*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; … in opus_custom_encoder_get_size()
228 opus_val16 *tf_estimate, int *tf_chan, int allow_weak_transients, in transient_analysis()
232 VARDECL(opus_val16, tmp); in transient_analysis()
237 opus_val16 tf_max; in transient_analysis()
243 opus_val16 forward_decay = QCONST16(.0625f,15); in transient_analysis()
[all …]
Dvq.c43 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s) in exp_rotation1()
46 opus_val16 ms; in exp_rotation1()
74 opus_val16 c, s; in exp_rotation()
75 opus_val16 gain, theta; in exp_rotation()
118 int N, opus_val32 Ryy, opus_val16 gain) in normalise_residual()
125 opus_val16 g; in normalise_residual()
161 opus_val16 op_pvq_search_c(celt_norm *X, int *iy, int K, int N, int arch) in op_pvq_search_c()
169 opus_val16 yy; in op_pvq_search_c()
193 opus_val16 rcp; in op_pvq_search_c()
242 opus_val16 tmp = (opus_val16)pulsesLeft; in op_pvq_search_c()
[all …]
Dcelt_lpc.c38 opus_val16 *_lpc, /* out: [0...p-1] LPC coefficients */ in _celt_lpc()
92 const opus_val16 *x, in celt_fir_c()
93 const opus_val16 *num, in celt_fir_c()
94 opus_val16 *y, in celt_fir_c()
100 VARDECL(opus_val16, rnum); in celt_fir_c()
103 ALLOC(rnum, ord, opus_val16); in celt_fir_c()
130 const opus_val16 *den, in celt_iir()
134 opus_val16 *mem, in celt_iir()
156 VARDECL(opus_val16, rden); in celt_iir()
157 VARDECL(opus_val16, y); in celt_iir()
[all …]
Dbands.h65 celt_sig * OPUS_RESTRICT freq, const opus_val16 *bandE, int start,
115 int end, const opus_val16 *logE, const opus_val16 *prev1logE,
116 const opus_val16 *prev2logE, const int *pulses, opus_uint32 seed,
121 int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis,…
Dcelt_decoder.c97 opus_val16 postfilter_gain;
98 opus_val16 postfilter_gain_old;
154 + channels*LPC_ORDER*sizeof(opus_val16) in opus_custom_decoder_get_size()
155 + 4*2*mode->nbEBands*sizeof(opus_val16); in opus_custom_decoder_get_size()
230 static void deemphasis_stereo_simple(celt_sig *in[], opus_val16 *pcm, int N, const opus_val16 coef0, in deemphasis_stereo_simple()
260 void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *co… in deemphasis()
266 opus_val16 coef0; in deemphasis()
287 opus_val16 * OPUS_RESTRICT y; in deemphasis()
294 opus_val16 coef1 = coef[1]; in deemphasis()
295 opus_val16 coef3 = coef[3]; in deemphasis()
[all …]
Dcelt.c99 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const_c()
163 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const_c()
191 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, in comb_filter()
192 const opus_val16 *window, int overlap, int arch) in comb_filter()
196 opus_val16 g00, g01, g02, g10, g11, g12; in comb_filter()
198 static const opus_val16 gains[3][3] = { in comb_filter()
229 opus_val16 f; in comb_filter()
/external/libopus/celt/mips/
Dpitch_mipsr1.h38 static inline void dual_inner_prod(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y0… in dual_inner_prod()
64 static inline void xcorr_kernel_mips(const opus_val16 * x, in xcorr_kernel_mips()
65 const opus_val16 * y, opus_val32 sum[4], int len) in xcorr_kernel_mips()
68 opus_val16 y_0, y_1, y_2, y_3; in xcorr_kernel_mips()
82 opus_val16 tmp; in xcorr_kernel_mips()
119 opus_val16 tmp = *x++; in xcorr_kernel_mips()
130 opus_val16 tmp=*x++; in xcorr_kernel_mips()
141 opus_val16 tmp=*x++; in xcorr_kernel_mips()
Dvq_mipsr1.h39 static void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int arch);
42 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s) in exp_rotation1()
45 opus_val16 ms; in exp_rotation1()
73 void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int arch) in renormalise_vector_mips()
80 opus_val16 g; in renormalise_vector_mips()

123