/external/libopus/celt/ |
D | quant_bands.h | 41 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…
|
D | pitch.h | 48 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp, 51 void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTRICT y, 54 opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod, 55 int N, int *T0, int prev_period, opus_val16 prev_gain); 60 static OPUS_INLINE void xcorr_kernel(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4],… in xcorr_kernel() 63 opus_val16 y_0, y_1, y_2, y_3; in xcorr_kernel() 71 opus_val16 tmp; in xcorr_kernel() 99 opus_val16 tmp = *x++; in xcorr_kernel() 108 opus_val16 tmp=*x++; in xcorr_kernel() 117 opus_val16 tmp=*x++; in xcorr_kernel() [all …]
|
D | quant_bands.c | 53 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 …]
|
D | celt_lpc.h | 35 void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p); 37 void celt_fir(const opus_val16 *x, 38 const opus_val16 *num, 39 opus_val16 *y, 42 opus_val16 *mem); 45 const opus_val16 *den, 49 opus_val16 *mem); 51 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac, 52 const opus_val16 *window, int overlap, int lag, int n, int arch);
|
D | mathops.h | 47 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 …]
|
D | mathops.c | 71 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 …]
|
D | fixed_generic.h | 37 #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)))) 63 #define EXTRACT16(x) ((opus_val16)(x)) 96 #define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b))) 98 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) 105 #define MULT16_16_16(a,b) ((((opus_val16)(a))*((opus_val16)(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))))
|
D | pitch.c | 45 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 …]
|
D | celt_lpc.c | 38 opus_val16 *_lpc, /* out: [0...p-1] LPC coefficients */ in _celt_lpc() 91 void celt_fir(const opus_val16 *_x, in celt_fir() 92 const opus_val16 *num, in celt_fir() 93 opus_val16 *_y, in celt_fir() 96 opus_val16 *mem) in celt_fir() 99 VARDECL(opus_val16, rnum); in celt_fir() 100 VARDECL(opus_val16, x); in celt_fir() 103 ALLOC(rnum, ord, opus_val16); in celt_fir() 104 ALLOC(x, N+ord, opus_val16); in celt_fir() 145 const opus_val16 *den, in celt_iir() [all …]
|
D | vq.c | 41 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s) in exp_rotation1() 69 opus_val16 c, s; in exp_rotation() 70 opus_val16 gain, theta; in exp_rotation() 113 int N, opus_val32 Ryy, opus_val16 gain) in normalise_residual() 120 opus_val16 g; in normalise_residual() 156 , opus_val16 gain in alg_quant() 162 VARDECL(opus_val16, signx); in alg_quant() 164 opus_val16 s; in alg_quant() 168 opus_val16 yy; in alg_quant() 177 ALLOC(signx, N, opus_val16); in alg_quant() [all …]
|
D | celt_encoder.c | 93 opus_val16 prefilter_gain; 97 opus_val16 prefilter_gain_old; 112 opus_val16 stereo_saving; 114 opus_val16 *energy_mask; 115 opus_val16 spec_avg; 140 …+ 3*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) in transient_analysis() 231 VARDECL(opus_val16, tmp); in transient_analysis() 236 opus_val16 tf_max; in transient_analysis() 250 ALLOC(tmp, len, opus_val16); in transient_analysis() [all …]
|
D | bands.h | 62 celt_sig * OPUS_RESTRICT freq, const opus_val16 *bandE, int start, int end, int C, int M); 107 int start, int end, opus_val16 *logE, opus_val16 *prev1logE, 108 opus_val16 *prev2logE, int *pulses, opus_uint32 seed); 112 int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis,…
|
D | celt.h | 123 int celt_encode_with_ec(OpusCustomEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_siz… 137 …sCustomDecoder * OPUS_RESTRICT st, const unsigned char *data, int len, opus_val16 * OPUS_RESTRICT … 198 void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp, 199 … int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip); 202 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, 203 const opus_val16 *window, int overlap); 208 void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *co…
|
D | celt.c | 90 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const() 115 opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, in comb_filter() 116 const opus_val16 *window, int overlap) in comb_filter() 120 opus_val16 g00, g01, g02, g10, g11, g12; in comb_filter() 122 static const opus_val16 gains[3][3] = { in comb_filter() 146 opus_val16 f; in comb_filter()
|
D | celt_decoder.c | 84 opus_val16 postfilter_gain; 85 opus_val16 postfilter_gain_old; 109 + channels*LPC_ORDER*sizeof(opus_val16) in opus_custom_decoder_get_size() 110 + 4*2*mode->nbEBands*sizeof(opus_val16); in opus_custom_decoder_get_size() 178 static OPUS_INLINE opus_val16 SIG2WORD16(celt_sig x) in SIG2WORD16() 186 return (opus_val16)x; in SIG2WORD16() 193 void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *co… in deemphasis() 198 opus_val16 coef0; in deemphasis() 205 opus_val16 * OPUS_RESTRICT y; in deemphasis() 212 opus_val16 coef1 = coef[1]; in deemphasis() [all …]
|
D | arch.h | 88 typedef opus_int16 opus_val16; typedef 92 typedef opus_val16 celt_norm; 105 #define VERY_LARGE16 ((opus_val16)32767) 106 #define Q15_ONE ((opus_val16)32767) 133 typedef float opus_val16; typedef 147 #define Q15_ONE ((opus_val16)1.f) 198 #define DIV32_16(a,b) (((opus_val32)(a))/(opus_val16)(b))
|
D | vq.h | 52 , opus_val16 gain 64 ec_dec *dec, opus_val16 gain); 66 void renormalise_vector(celt_norm *X, int N, opus_val16 gain);
|
/external/libopus/celt/arm/ |
D | fixed_armv5e.h | 37 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() 87 static OPUS_INLINE opus_val32 MAC16_16_armv5e(opus_val32 c, opus_val16 a, in MAC16_16_armv5e() 88 opus_val16 b) in MAC16_16_armv5e() 103 static OPUS_INLINE opus_val32 MULT16_16_armv5e(opus_val16 a, opus_val16 b) in MULT16_16_armv5e()
|
D | pitch_arm.h | 36 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,
|
/external/libopus/src/ |
D | mlp.c | 42 static OPUS_INLINE opus_val16 tansig_approx(opus_val32 _x) /* Q19 */ 45 opus_val16 xx; /* Q11 */ 47 opus_val16 dy, yy; /* Q14 */ 93 void mlp_process(const MLP *m, const opus_val16 *in, opus_val16 *out) 96 opus_val16 hidden[MAX_NEURONS]; 97 const opus_val16 *W = m->weights;
|
D | opus_multistream_encoder.c | 64 opus_val16 *dst, 183 static opus_val16 logSum(opus_val16 a, opus_val16 b) in logSum() 185 opus_val16 max; in logSum() 187 opus_val16 frac; in logSum() 188 static const opus_val16 diff_table[17] = { in logSum() 214 opus_val16 logSum(opus_val16 a, opus_val16 b) in logSum() 220 void surround_analysis(const CELTMode *celt_mode, const void *pcm, opus_val16 *bandLogE, opus_val32… in surround_analysis() 230 opus_val16 channel_offset; in surround_analysis() 232 opus_val16 maskLogE[3][21]; in surround_analysis() 234 VARDECL(opus_val16, x); in surround_analysis() [all …]
|
D | opus_decoder.c | 74 opus_val16 softclip_mem[2]; 172 static void smooth_fade(const opus_val16 *in1, const opus_val16 *in2, in smooth_fade() 173 opus_val16 *out, int overlap, int channels, in smooth_fade() 174 const opus_val16 *window, opus_int32 Fs) in smooth_fade() 182 opus_val16 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in smooth_fade() 205 opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec) in opus_decode_frame() 215 VARDECL(opus_val16, pcm_transition_silk); in opus_decode_frame() 217 VARDECL(opus_val16, pcm_transition_celt); in opus_decode_frame() 218 opus_val16 *pcm_transition; in opus_decode_frame() 220 VARDECL(opus_val16, redundant_audio); in opus_decode_frame() [all …]
|
D | opus_encoder.c | 57 opus_val16 smoothed_width; 58 opus_val16 max_follower; 88 opus_val16 prev_HB_gain; 98 opus_val16 * energy_masking; 100 opus_val16 delay_buffer[MAX_ENCODER_BUFFER*2]; 282 const opus_val16 *in, /* I: Input signal */ in silk_biquad_float() 286 opus_val16 *out, /* O: Output signal */ in silk_biquad_float() 320 static void hp_cutoff(const opus_val16 *in, opus_int32 cutoff_Hz, opus_val16 *out, opus_val32 *hp_m… in hp_cutoff() 356 static void dc_reject(const opus_val16 *in, opus_int32 cutoff_Hz, opus_val16 *out, opus_val32 *hp_m… in dc_reject() 381 static void dc_reject(const opus_val16 *in, opus_int32 cutoff_Hz, opus_val16 *out, opus_val32 *hp_m… in dc_reject() [all …]
|
D | opus_private.h | 89 int optimize_framesize(const opus_val16 *x, int len, int C, opus_int32 Fs, 90 int bitrate, opus_val16 tonality, float *mem, int buffering, 105 opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size, 110 opus_val16 *pcm, int frame_size, int decode_fec, int self_delimited,
|
/external/libopus/celt/x86/ |
D | pitch_sse.h | 39 static OPUS_INLINE void xcorr_kernel(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], i… in xcorr_kernel() 75 static OPUS_INLINE void dual_inner_prod(const opus_val16 *x, const opus_val16 *y01, const opus_val1… in dual_inner_prod() 106 opus_val16 g10, opus_val16 g11, opus_val16 g12) in comb_filter_const()
|