Home
last modified time | relevance | path

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

123

/external/libopus/celt/x86/
Dx86_celt_map.c44 const opus_val16 *x,
45 const opus_val16 *num,
46 opus_val16 *y,
49 opus_val16 *mem,
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,
[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,
44 opus_val16 *mem,
54 const opus_val16 *x,
55 const opus_val16 *num,
56 opus_val16 *y,
59 opus_val16 *mem,
Dcelt_lpc_sse.c43 void celt_fir_sse4_1(const opus_val16 *_x, in celt_fir_sse4_1()
44 const opus_val16 *num, in celt_fir_sse4_1()
45 opus_val16 *_y, in celt_fir_sse4_1()
48 opus_val16 *mem, in celt_fir_sse4_1()
52 VARDECL(opus_val16, rnum); in celt_fir_sse4_1()
53 VARDECL(opus_val16, x); in celt_fir_sse4_1()
59 ALLOC(rnum, ord, opus_val16); in celt_fir_sse4_1()
60 ALLOC(x, N+ord, opus_val16); in celt_fir_sse4_1()
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.h54 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp,
57 void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTRICT y,
60 opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
61 int N, int *T0, int prev_period, opus_val16 prev_gain, int arch);
66 static OPUS_INLINE void xcorr_kernel_c(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4… in xcorr_kernel_c()
69 opus_val16 y_0, y_1, y_2, y_3; in xcorr_kernel_c()
77 opus_val16 tmp; in xcorr_kernel_c()
105 opus_val16 tmp = *x++; in xcorr_kernel_c()
114 opus_val16 tmp=*x++; in xcorr_kernel_c()
123 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 …]
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,
48 opus_val16 *mem,
57 const opus_val16 *den,
61 opus_val16 *mem,
64 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
65 const opus_val16 *window, int overlap, int lag, int n, int arch);
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))
112 #define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b)))
114 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b))
121 #define MULT16_16_16(a,b) ((((opus_val16)(a))*((opus_val16)(b))))
125 #define MULT16_16(a,b) (((opus_val32)(opus_val16)(a))*((opus_val32)(opus_val16)(b)))
[all …]
Dmathops.h47 static OPUS_INLINE opus_val32 celt_maxabs16(const opus_val16 *x, int len) in celt_maxabs16()
50 opus_val16 maxval = 0; in celt_maxabs16()
51 opus_val16 minval = 0; in celt_maxabs16()
162 opus_val16 celt_rsqrt_norm(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()
172 opus_val16 n, frac; in celt_log2()
175 static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; in celt_log2()
195 static OPUS_INLINE opus_val32 celt_exp2_frac(opus_val16 x) in celt_exp2_frac()
197 opus_val16 frac; in celt_exp2_frac()
[all …]
Dmathops.c71 opus_val16 rcp; in frac_div32()
90 opus_val16 celt_rsqrt_norm(opus_val32 x) in celt_rsqrt_norm()
92 opus_val16 n; in celt_rsqrt_norm()
93 opus_val16 r; in celt_rsqrt_norm()
94 opus_val16 r2; in celt_rsqrt_norm()
95 opus_val16 y; in celt_rsqrt_norm()
121 opus_val16 n; in celt_sqrt()
123 static const opus_val16 C[5] = {23175, 11561, -3011, 1699, -664}; in celt_sqrt()
142 static OPUS_INLINE opus_val16 _celt_cos_pi_2(opus_val16 x) in _celt_cos_pi_2()
144 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(const opus_val16 *x, in celt_fir5()
106 const opus_val16 *num, in celt_fir5()
107 opus_val16 *y, in celt_fir5()
109 opus_val16 *mem) in celt_fir5()
112 opus_val16 num0, num1, num2, num3, num4; in celt_fir5()
147 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp, in pitch_downsample()
152 opus_val16 tmp=Q15ONE; in pitch_downsample()
[all …]
Dcelt.h123 int celt_encode_with_ec(OpusCustomEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_siz…
138 int len, opus_val16 * OPUS_RESTRICT pcm, int frame_size, ec_dec *dec, int accum);
199 void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
200 … int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip);
203 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1,
204 const opus_val16 *window, int overlap, int arch);
208 opus_val16 g10, opus_val16 g11, opus_val16 g12);
219 void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *co…
221 opus_val16 *oldBandE, int start, int effEnd, int C, int CC, int isTransient,
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()
97 opus_val16 *mem, in celt_fir_c()
101 VARDECL(opus_val16, rnum); in celt_fir_c()
102 VARDECL(opus_val16, x); in celt_fir_c()
105 ALLOC(rnum, ord, opus_val16); in celt_fir_c()
106 ALLOC(x, N+ord, opus_val16); in celt_fir_c()
148 const opus_val16 *den, in celt_iir()
[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()
163 , opus_val16 gain in alg_quant()
169 VARDECL(opus_val16, signx); in alg_quant()
171 opus_val16 s; in alg_quant()
175 opus_val16 yy; in alg_quant()
[all …]
Dcelt_encoder.c92 opus_val16 prefilter_gain;
96 opus_val16 prefilter_gain_old;
111 opus_val16 stereo_saving;
113 opus_val16 *energy_mask;
114 opus_val16 spec_avg;
139 …+ 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; … in opus_custom_encoder_get_size()
226 opus_val16 *tf_estimate, int *tf_chan) in transient_analysis()
229 VARDECL(opus_val16, tmp); in transient_analysis()
234 opus_val16 tf_max; in transient_analysis()
248 ALLOC(tmp, len, opus_val16); in transient_analysis()
[all …]
Dbands.h62 celt_sig * OPUS_RESTRICT freq, const opus_val16 *bandE, int start,
112 int end, const opus_val16 *logE, const opus_val16 *prev1logE,
113 const opus_val16 *prev2logE, const int *pulses, opus_uint32 seed,
118 int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis,…
Dcelt.c99 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const_c()
157 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const_c()
184 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, in comb_filter()
185 const opus_val16 *window, int overlap, int arch) in comb_filter()
189 opus_val16 g00, g01, g02, g10, g11, g12; in comb_filter()
191 static const opus_val16 gains[3][3] = { in comb_filter()
218 opus_val16 f; in comb_filter()
/external/libopus/celt/arm/
Dpitch_arm.h36 opus_val32 celt_pitch_xcorr_neon(const opus_val16 *_x, const opus_val16 *_y,
45 opus_val32 celt_pitch_xcorr_edsp(const opus_val16 *_x, const opus_val16 *_y,
54 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
55 const opus_val16 *, opus_val32 *, int, int);
72 const opus_val16 *x,
73 const opus_val16 *y,
82 const opus_val16 *x,
83 const opus_val16 *y,
101 void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
108 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
[all …]
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()
Darm_celt_map.c42 opus_val32 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
43 const opus_val16 *, opus_val32 *, int , int) = {
53 void (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *,
54 const opus_val16 *, opus_val32 *, int, int) = {
67 const opus_val16 *x,
68 const opus_val16 *y,
119 const opus_val16 *window,
131 const opus_val16 *window,
/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.h40 …idual(int * OPUS_RESTRICT iy, celt_norm * OPUS_RESTRICT X, int N, opus_val32 Ryy, opus_val16 gain);
42 static void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int arch);
45 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s) in exp_rotation1()
48 opus_val16 ms; in exp_rotation1()
76 void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int arch) in renormalise_vector_mips()
83 opus_val16 g; in renormalise_vector_mips()
/external/libopus/src/
Dmlp.c42 static OPUS_INLINE opus_val16 tansig_approx(opus_val32 _x) /* Q19 */
45 opus_val16 xx; /* Q11 */
47 opus_val16 dy, yy; /* Q14 */
98 void mlp_process(const MLP *m, const opus_val16 *in, opus_val16 *out)
101 opus_val16 hidden[MAX_NEURONS];
102 const opus_val16 *W = m->weights;

123