Home
last modified time | relevance | path

Searched refs:opus_int16 (Results 1 – 25 of 128) sorted by relevance

123456

/external/libopus/silk/
Dmain.h44opus_int16 x1[], /* I/O Left input signal, becomes mid…
45opus_int16 x2[], /* I/O Right input signal, becomes si…
59opus_int16 x1[], /* I/O Left input signal, becomes mid…
60opus_int16 x2[], /* I/O Right input signal, becomes si…
69 …const opus_int16 x[], /* I Basis signal …
70 …const opus_int16 y[], /* I Target signal …
195opus_int16 xi[ MAX_LPC_ORDER ], /* O interpolated vector …
196 …const opus_int16 x0[ MAX_LPC_ORDER ], /* I first vector …
197 …const opus_int16 x1[ MAX_LPC_ORDER ], /* I second vector …
204opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ], /* I/O (un)quantized LTP …
[all …]
Dstructs.h46opus_int16 xq[ 2 * MAX_FRAME_LENGTH ]; /* Buffer for quantized output s…
68opus_int16 HPstate; /* State of differentiator in the lowe…
84 const opus_int16 nVectors;
85 const opus_int16 order;
86 const opus_int16 quantStepSize_Q16;
87 const opus_int16 invQuantStepSize_Q6;
94 const opus_int16 *deltaMin_Q15;
98 opus_int16 pred_prev_Q13[ 2 ];
99 opus_int16 sMid[ 2 ];
100 opus_int16 sSide[ 2 ];
[all …]
DSigProc_FIX.h65opus_int16 out[], /* O Output signal …
66 …const opus_int16 in[], /* I Input signal …
75opus_int16 *out, /* O Output signal [ len ] …
76 …const opus_int16 *in, /* I Input signal [ floor(len/2) ] …
85opus_int16 *out, /* O Output signal [ floor(2*inLen/3) ] …
86 …const opus_int16 *in, /* I Input signal [ inLen ] …
96 …const opus_int16 *in, /* I input signal …
100opus_int16 *out, /* O output signal …
107opus_int16 *out, /* O Output signal …
108 …const opus_int16 *in, /* I Input signal …
[all …]
Dresampler_rom.h45 static const opus_int16 silk_resampler_down2_0 = 9872;
46 static const opus_int16 silk_resampler_down2_1 = 39809 - 65536;
49 static const opus_int16 silk_resampler_up2_hq_0[ 3 ] = { 1746, 14986, 39083 - 65536 };
50 static const opus_int16 silk_resampler_up2_hq_1[ 3 ] = { 6854, 25769, 55542 - 65536 };
53 extern const opus_int16 silk_Resampler_3_4_COEFS[ 2 + 3 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ];
54 extern const opus_int16 silk_Resampler_2_3_COEFS[ 2 + 2 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ];
55 extern const opus_int16 silk_Resampler_1_2_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR1 / 2 ];
56 extern const opus_int16 silk_Resampler_1_3_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ];
57 extern const opus_int16 silk_Resampler_1_4_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ];
58 extern const opus_int16 silk_Resampler_1_6_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ];
[all …]
Dresampler_private.h47 opus_int16 out[], /* O Output signal */
48 const opus_int16 in[], /* I Input signal */
55 opus_int16 out[], /* O Output signal */
56 const opus_int16 in[], /* I Input signal */
63 opus_int16 *out, /* O Output signal [ 2 * len ] */
64 const opus_int16 *in, /* I Input signal [ len ] */
71 opus_int16 *out, /* O Output signal [ 2 * len ] */
72 const opus_int16 *in, /* I Input signal [ len ] */
80 const opus_int16 in[], /* I Input signal */
81 const opus_int16 A_Q14[], /* I AR coefficients, Q14 */
Dstereo_LR_to_MS.c38opus_int16 x1[], /* I/O Left input signal, becomes mid… in silk_stereo_LR_to_MS()
39opus_int16 x2[], /* I/O Right input signal, becomes si… in silk_stereo_LR_to_MS()
53 VARDECL( opus_int16, side ); in silk_stereo_LR_to_MS()
54 VARDECL( opus_int16, LP_mid ); in silk_stereo_LR_to_MS()
55 VARDECL( opus_int16, HP_mid ); in silk_stereo_LR_to_MS()
56 VARDECL( opus_int16, LP_side ); in silk_stereo_LR_to_MS()
57 VARDECL( opus_int16, HP_side ); in silk_stereo_LR_to_MS()
58 opus_int16 *mid = &x1[ -2 ]; in silk_stereo_LR_to_MS()
61 ALLOC( side, frame_length + 2, opus_int16 ); in silk_stereo_LR_to_MS()
66 mid[ n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 ); in silk_stereo_LR_to_MS()
[all …]
DMacroCount.h88 …ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int1… in silk_SMULWB()
95 …((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32… in silk_SMLAWB()
118 ret = (opus_int32)((opus_int16)a32) * (opus_int32)((opus_int16)b32); in silk_SMULBB()
125 ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32); in silk_SMLABB()
133 ret = ((opus_int32)((opus_int16)a32)) * (b32 >> 16); in silk_SMULBT()
141 ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16); in silk_SMLABT()
197 static OPUS_INLINE opus_int64 silk_SMLALBB(opus_int64 a64, opus_int16 b16, opus_int16 c16){ in silk_SMLALBB()
205 static OPUS_INLINE opus_int32 SigProcFIX_CLZ16(opus_int16 in16) in SigProcFIX_CLZ16()
248 return SigProcFIX_CLZ16((opus_int16)(in32 >> 16)); in SigProcFIX_CLZ32()
250 return SigProcFIX_CLZ16((opus_int16)in32) + 16; in SigProcFIX_CLZ32()
[all …]
Dresampler_private_IIR_FIR.c36 static OPUS_INLINE opus_int16 *silk_resampler_private_IIR_FIR_INTERPOL( in silk_resampler_private_IIR_FIR_INTERPOL()
37 opus_int16 *out, in silk_resampler_private_IIR_FIR_INTERPOL()
38 opus_int16 *buf, in silk_resampler_private_IIR_FIR_INTERPOL()
44 opus_int16 *buf_ptr; in silk_resampler_private_IIR_FIR_INTERPOL()
60 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q15, 15 ) ); in silk_resampler_private_IIR_FIR_INTERPOL()
67 opus_int16 out[], /* O Output signal */ in silk_resampler_private_IIR_FIR()
68 const opus_int16 in[], /* I Input signal */ in silk_resampler_private_IIR_FIR()
75 VARDECL( opus_int16, buf ); in silk_resampler_private_IIR_FIR()
78 ALLOC( buf, 2 * S->batchSize + RESAMPLER_ORDER_FIR_12, opus_int16 ); in silk_resampler_private_IIR_FIR()
81 silk_memcpy( buf, S->sFIR.i16, RESAMPLER_ORDER_FIR_12 * sizeof( opus_int16 ) ); in silk_resampler_private_IIR_FIR()
[all …]
Dresampler_rom.c43 silk_DWORD_ALIGN const opus_int16 silk_Resampler_3_4_COEFS[ 2 + 3 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ]…
50 silk_DWORD_ALIGN const opus_int16 silk_Resampler_2_3_COEFS[ 2 + 2 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ]…
56 silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_2_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR1 / 2 ] = {
61 silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_3_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = {
66 silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_4_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = {
71 silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_6_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = {
76 silk_DWORD_ALIGN const opus_int16 silk_Resampler_2_3_COEFS_LQ[ 2 + 2 * 2 ] = {
83 silk_DWORD_ALIGN const opus_int16 silk_resampler_frac_FIR_12[ 12 ][ RESAMPLER_ORDER_FIR_12 / 2 ] = {
Dmacros.h41 … ((((a32) >> 16) * (opus_int32)((opus_int16)(b32))) + ((((a32) & 0x0000FFFF) * (opus_int32…
44 …((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32…
53 …efine silk_SMULBB(a32, b32) ((opus_int32)((opus_int16)(a32)) * (opus_int32)((opus_int16
56 …k_SMLABB(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)((opus_int1…
59 #define silk_SMULBT(a32, b32) ((opus_int32)((opus_int16)(a32)) * ((b32) >> 16))
62 #define silk_SMLABT(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * ((c32) >> 16))
84 static OPUS_INLINE opus_int32 silk_CLZ16(opus_int16 in16) in silk_CLZ16()
Dstereo_MS_to_LR.c37opus_int16 x1[], /* I/O Left input signal, becomes mid… in silk_stereo_MS_to_LR()
38opus_int16 x2[], /* I/O Right input signal, becomes si… in silk_stereo_MS_to_LR()
48 silk_memcpy( x1, state->sMid, 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
49 silk_memcpy( x2, state->sSide, 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
50 silk_memcpy( state->sMid, &x1[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
51 silk_memcpy( state->sSide, &x2[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
65 x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_MS_to_LR()
73 x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_MS_to_LR()
82 x1[ n + 1 ] = (opus_int16)silk_SAT16( sum ); in silk_stereo_MS_to_LR()
83 x2[ n + 1 ] = (opus_int16)silk_SAT16( diff ); in silk_stereo_MS_to_LR()
DNLSF_decode.c36opus_int16 x_Q10[], /* O Output [ order ] … in silk_NLSF_residual_dequant()
40 …const opus_int16 order /* I Number of input values … in silk_NLSF_residual_dequant()
47 pred_Q10 = silk_RSHIFT( silk_SMULBB( out_Q10, (opus_int16)pred_coef_Q8[ i ] ), 8 ); in silk_NLSF_residual_dequant()
64opus_int16 *pNLSF_Q15, /* O Quantized NLSF vector [ LPC_ORDER ] … in silk_NLSF_decode()
71 opus_int16 ec_ix[ MAX_LPC_ORDER ]; in silk_NLSF_decode()
72 opus_int16 res_Q10[ MAX_LPC_ORDER ]; in silk_NLSF_decode()
73 opus_int16 W_tmp_QW[ MAX_LPC_ORDER ]; in silk_NLSF_decode()
80 pNLSF_Q15[ i ] = silk_LSHIFT( (opus_int16)pCB_element[ i ], 7 ); in silk_NLSF_decode()
96 pNLSF_Q15[ i ] = (opus_int16)silk_LIMIT( NLSF_Q15_tmp, 0, 32767 ); in silk_NLSF_decode()
Dana_filt_bank_1.c35 static opus_int16 A_fb1_20 = 5394 << 1;
36 static opus_int16 A_fb1_21 = -24290; /* (opus_int16)(20623 << 1) */
40 …const opus_int16 *in, /* I Input signal [N] … in silk_ana_filt_bank_1()
42opus_int16 *outL, /* O Low band [N/2] … in silk_ana_filt_bank_1()
43opus_int16 *outH, /* O High band [N/2] … in silk_ana_filt_bank_1()
71 outL[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_ADD32( out_2, out_1 ), 11 ) ); in silk_ana_filt_bank_1()
72 outH[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SUB32( out_2, out_1 ), 11 ) ); in silk_ana_filt_bank_1()
DLPC_analysis_filter.c43opus_int16 *out, /* O Output signal … in silk_LPC_analysis_filter()
44 …const opus_int16 *in, /* I Input signal … in silk_LPC_analysis_filter()
45 …const opus_int16 *B, /* I MA prediction coefficients, Q12 [order] … in silk_LPC_analysis_filter()
52 opus_int16 mem[SILK_MAX_ORDER_LPC]; in silk_LPC_analysis_filter()
53 opus_int16 num[SILK_MAX_ORDER_LPC]; in silk_LPC_analysis_filter()
57 const opus_int16 *in_ptr; in silk_LPC_analysis_filter()
100 out[ ix ] = (opus_int16)silk_SAT16( out32 ); in silk_LPC_analysis_filter()
104 silk_memset( out, 0, d * sizeof( opus_int16 ) ); in silk_LPC_analysis_filter()
DNLSF_encode.c40opus_int16 *pNLSF_Q15, /* I/O Quantized NLSF vector [ LPC_ORDER ] … in silk_NLSF_encode()
42 …const opus_int16 *pW_QW, /* I NLSF weight vector [ LPC_ORDER… in silk_NLSF_encode()
54 opus_int16 res_Q15[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
55 opus_int16 res_Q10[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
56 opus_int16 NLSF_tmp_Q15[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
57 opus_int16 W_tmp_QW[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
58 opus_int16 W_adj_Q5[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
60 opus_int16 ec_ix[ MAX_LPC_ORDER ]; in silk_NLSF_encode()
89 NLSF_tmp_Q15[ i ] = silk_LSHIFT16( (opus_int16)pCB_element[ i ], 7 ); in silk_NLSF_encode()
99 res_Q10[ i ] = (opus_int16)silk_RSHIFT( silk_SMULBB( res_Q15[ i ], W_tmp_Q9 ), 14 ); in silk_NLSF_encode()
DPLC.c37 static const opus_int16 HARM_ATT_Q15[NB_ATT] = { 32440, 31130 }; /* 0.99, 0.95 */
38 static const opus_int16 PLC_RAND_ATTENUATE_V_Q15[NB_ATT] = { 31130, 26214 }; /* 0.95, 0.8 */
39 static const opus_int16 PLC_RAND_ATTENUATE_UV_Q15[NB_ATT] = { 32440, 29491 }; /* 0.99, 0.9 */
49 opus_int16 frame[] /* O LPC residual signal */
67 opus_int16 frame[], /* I/O signal */ in silk_PLC()
123 LTP_ORDER * sizeof( opus_int16 ) ); in silk_PLC_update()
129 silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 ) ); in silk_PLC_update()
154 silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 )); in silk_PLC_update()
158 …emcpy( psPLC->prevLPC_Q12, psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order * sizeof( opus_int16 ) ); in silk_PLC_update()
171 opus_int16 frame[] /* O LPC residual signal */ in silk_PLC_conceal()
[all …]
/external/libopus/silk/fixed/
Dmain_FIX.h97 …const opus_int16 x[] /* I Speech signal …
107 …const opus_int16 *pitch_res, /* I LPC residual from …
108 …const opus_int16 *x, /* I Input signal [ fra…
116 …const opus_int16 *input, /* I Input data to corr…
136opus_int16 res[], /* O residual …
137 …const opus_int16 x[], /* I Speech signal …
145 …const opus_int16 res_pitch[], /* I Residual from pitc…
146 …const opus_int16 x[], /* I Speech signal …
153opus_int16 NLSF_Q15[], /* O NLSFs …
154 …const opus_int16 x[], /* I Input signal …
[all …]
Dvector_ops_FIX.c36 opus_int16 *data_out, in silk_scale_copy_vector16()
37 const opus_int16 *data_in, in silk_scale_copy_vector16()
47 data_out[ i ] = (opus_int16)silk_CHECK_FIT16( tmp32 ); in silk_scale_copy_vector16()
71 …const opus_int16 *const inVec1, /* I input vector 1 … in silk_inner_prod_aligned()
72 …const opus_int16 *const inVec2, /* I input vector 2 … in silk_inner_prod_aligned()
85 …const opus_int16 *inVec1, /* I input vector 1 … in silk_inner_prod16_aligned_64()
86 …const opus_int16 *inVec2, /* I input vector 2 … in silk_inner_prod16_aligned_64()
DLTP_analysis_filter_FIX.c35opus_int16 *LTP_res, /* O LTP residual signa… in silk_LTP_analysis_filter_FIX()
36 …const opus_int16 *x, /* I Pointer to input s… in silk_LTP_analysis_filter_FIX()
37 …const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ],/* I LTP_ORDER LTP coef… in silk_LTP_analysis_filter_FIX()
45 const opus_int16 *x_ptr, *x_lag_ptr; in silk_LTP_analysis_filter_FIX()
46 opus_int16 Btmp_Q14[ LTP_ORDER ]; in silk_LTP_analysis_filter_FIX()
47 opus_int16 *LTP_res_ptr; in silk_LTP_analysis_filter_FIX()
72 LTP_res_ptr[ i ] = (opus_int16)silk_SAT16( (opus_int32)x_ptr[ i ] - LTP_est ); in silk_LTP_analysis_filter_FIX()
Dapply_sine_window_FIX.c44 static const opus_int16 freq_table_Q16[ 27 ] = {
51opus_int16 px_win[], /* O Pointer to windowed signal … in silk_apply_sine_window()
52 …const opus_int16 px[], /* I Pointer to input signal … in silk_apply_sine_window()
91 px_win[ k ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k ] ); in silk_apply_sine_window()
92 px_win[ k + 1 ] = (opus_int16)silk_SMULWB( S1_Q16, px[ k + 1] ); in silk_apply_sine_window()
96 px_win[ k + 2 ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k + 2] ); in silk_apply_sine_window()
97 px_win[ k + 3 ] = (opus_int16)silk_SMULWB( S0_Q16, px[ k + 3 ] ); in silk_apply_sine_window()
Dfind_pitch_lags_FIX.c40opus_int16 res[], /* O residual … in silk_find_pitch_lags_FIX()
41 …const opus_int16 x[], /* I Speech signal … in silk_find_pitch_lags_FIX()
47 const opus_int16 *x_buf, *x_buf_ptr; in silk_find_pitch_lags_FIX()
48 VARDECL( opus_int16, Wsig ); in silk_find_pitch_lags_FIX()
49 opus_int16 *Wsig_ptr; in silk_find_pitch_lags_FIX()
51 opus_int16 rc_Q15[ MAX_FIND_PITCH_LPC_ORDER ]; in silk_find_pitch_lags_FIX()
53 opus_int16 A_Q12[ MAX_FIND_PITCH_LPC_ORDER ]; in silk_find_pitch_lags_FIX()
72 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 ); in silk_find_pitch_lags_FIX()
82 …Enc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ) ) * sizeof( opus_int16 ) ); in silk_find_pitch_lags_FIX()
106 A_Q12[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT( A_Q24[ i ], 12 ) ); in silk_find_pitch_lags_FIX()
/external/libopus/include/
Dopus_types.h40 typedef int16_t opus_int16; typedef
50 typedef _G_int16 opus_int16; typedef
53 typedef short opus_int16; typedef
60 typedef short opus_int16; typedef
66 typedef __int16 opus_int16; typedef
73 typedef SInt16 opus_int16; typedef
81 typedef int16_t opus_int16; typedef
90 typedef int16 opus_int16; typedef
98 typedef short opus_int16; typedef
106 typedef short opus_int16; typedef
[all …]
/external/libopus/silk/float/
Dwrappers_FLP.c38opus_int16 *NLSF_Q15, /* O NLSF vector [ LPC… in silk_A2NLSF_FLP()
56 …const opus_int16 *NLSF_Q15, /* I NLSF vector [ LPC… in silk_NLSF2A_FLP()
61 opus_int16 a_fix_Q12[ MAX_LPC_ORDER ]; in silk_NLSF2A_FLP()
76opus_int16 NLSF_Q15[ MAX_LPC_ORDER ], /* I/O Normalized LSFs (quant… in silk_process_NLSFs_FLP()
77 …const opus_int16 prev_NLSF_Q15[ MAX_LPC_ORDER ] /* I Previous Normalized LS… in silk_process_NLSFs_FLP()
81 opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; in silk_process_NLSFs_FLP()
107 silk_DWORD_ALIGN opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; in silk_NSQ_wrapper_FLP()
108 opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ]; in silk_NSQ_wrapper_FLP()
112 opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ]; in silk_NSQ_wrapper_FLP()
136 LTPCoef_Q14[ i ] = (opus_int16)silk_float2int( psEncCtrl->LTPCoef[ i ] * 16384.0f ); in silk_NSQ_wrapper_FLP()
[all …]
/external/libopus/celt/
Dstatic_modes_float.h39 static const opus_int16 logN400[21] = {
45 static const opus_int16 cache_index50[105] = {
343 static const opus_int16 fft_bitrev480[480] = {
381 static const opus_int16 fft_bitrev240[240] = {
403 static const opus_int16 fft_bitrev120[120] = {
417 static const opus_int16 fft_bitrev60[60] = {
Dstatic_modes_fixed.h39 static const opus_int16 logN400[21] = {
45 static const opus_int16 cache_index50[105] = {
343 static const opus_int16 fft_bitrev480[480] = {
381 static const opus_int16 fft_bitrev240[240] = {
403 static const opus_int16 fft_bitrev120[120] = {
417 static const opus_int16 fft_bitrev60[60] = {

123456