Home
last modified time | relevance | path

Searched refs:psEncC (Results 1 – 14 of 14) sorted by relevance

/external/libopus/silk/
Dcontrol_audio_bandwidth.c37 …silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state … in silk_control_audio_bandwidth() argument
44 fs_kHz = psEncC->fs_kHz; in silk_control_audio_bandwidth()
48 fs_Hz = silk_min( psEncC->desiredInternal_fs_Hz, psEncC->API_fs_Hz ); in silk_control_audio_bandwidth()
50 …} else if( fs_Hz > psEncC->API_fs_Hz || fs_Hz > psEncC->maxInternal_fs_Hz || fs_Hz < psEncC->minIn… in silk_control_audio_bandwidth()
52 fs_Hz = psEncC->API_fs_Hz; in silk_control_audio_bandwidth()
53 fs_Hz = silk_min( fs_Hz, psEncC->maxInternal_fs_Hz ); in silk_control_audio_bandwidth()
54 fs_Hz = silk_max( fs_Hz, psEncC->minInternal_fs_Hz ); in silk_control_audio_bandwidth()
58 if( psEncC->sLP.transition_frame_no >= TRANSITION_FRAMES ) { in silk_control_audio_bandwidth()
60 psEncC->sLP.mode = 0; in silk_control_audio_bandwidth()
62 if( psEncC->allow_bandwidth_switch || encControl->opusCanSwitch ) { in silk_control_audio_bandwidth()
[all …]
Dcontrol_codec.c54 silk_encoder_state *psEncC, /* I/O */
59 silk_encoder_state *psEncC, /* I/O */
314 silk_encoder_state *psEncC, /* I/O */ in silk_setup_complexity() argument
323 psEncC->pitchEstimationComplexity = SILK_PE_MIN_COMPLEX; in silk_setup_complexity()
324 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); in silk_setup_complexity()
325 psEncC->pitchEstimationLPCOrder = 6; in silk_setup_complexity()
326 psEncC->shapingLPCOrder = 8; in silk_setup_complexity()
327 psEncC->la_shape = 3 * psEncC->fs_kHz; in silk_setup_complexity()
328 psEncC->nStatesDelayedDecision = 1; in silk_setup_complexity()
329 psEncC->useInterpolatedNLSFs = 0; in silk_setup_complexity()
[all …]
Dprocess_NLSFs.c36 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_process_NLSFs() argument
49 silk_assert( psEncC->speech_activity_Q8 >= 0 ); in silk_process_NLSFs()
50 silk_assert( psEncC->speech_activity_Q8 <= SILK_FIX_CONST( 1.0, 8 ) ); in silk_process_NLSFs()
51 …silk_assert( psEncC->useInterpolatedNLSFs == 1 || psEncC->indices.NLSFInterpCoef_Q2 == ( 1 << 2 ) … in silk_process_NLSFs()
57 …NLSF_mu_Q20 = silk_SMLAWB( SILK_FIX_CONST( 0.003, 20 ), SILK_FIX_CONST( -0.001, 28 ), psEncC->spee… in silk_process_NLSFs()
58 if( psEncC->nb_subfr == 2 ) { in silk_process_NLSFs()
67 silk_NLSF_VQ_weights_laroia( pNLSFW_QW, pNLSF_Q15, psEncC->predictLPCOrder ); in silk_process_NLSFs()
70 …doInterpolate = ( psEncC->useInterpolatedNLSFs == 1 ) && ( psEncC->indices.NLSFInterpCoef_Q2 < 4 ); in silk_process_NLSFs()
74 psEncC->indices.NLSFInterpCoef_Q2, psEncC->predictLPCOrder ); in silk_process_NLSFs()
77 silk_NLSF_VQ_weights_laroia( pNLSFW0_temp_QW, pNLSF0_temp_Q15, psEncC->predictLPCOrder ); in silk_process_NLSFs()
[all …]
Dencode_indices.c36 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_encode_indices() argument
50 psIndices = &psEncC->indices_LBRR[ FrameIndex ]; in silk_encode_indices()
52 psIndices = &psEncC->indices; in silk_encode_indices()
83 for( i = 1; i < psEncC->nb_subfr; i++ ) { in silk_encode_indices()
91 …psRangeEnc, psIndices->NLSFIndices[ 0 ], &psEncC->psNLSF_CB->CB1_iCDF[ ( psIndices->signalType >> … in silk_encode_indices()
92 silk_NLSF_unpack( ec_ix, pred_Q8, psEncC->psNLSF_CB, psIndices->NLSFIndices[ 0 ] ); in silk_encode_indices()
93 silk_assert( psEncC->psNLSF_CB->order == psEncC->predictLPCOrder ); in silk_encode_indices()
94 for( i = 0; i < psEncC->psNLSF_CB->order; i++ ) { in silk_encode_indices()
96 …ec_enc_icdf( psRangeEnc, 2 * NLSF_QUANT_MAX_AMPLITUDE, &psEncC->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], … in silk_encode_indices()
99 ec_enc_icdf( psRangeEnc, 0, &psEncC->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], 8 ); in silk_encode_indices()
[all …]
Dcontrol_SNR.c37 …silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state … in silk_control_SNR() argument
47 if( TargetRate_bps != psEncC->TargetRate_bps ) { in silk_control_SNR()
48 psEncC->TargetRate_bps = TargetRate_bps; in silk_control_SNR()
51 if( psEncC->fs_kHz == 8 ) { in silk_control_SNR()
53 } else if( psEncC->fs_kHz == 12 ) { in silk_control_SNR()
60 if( psEncC->nb_subfr == 2 ) { in silk_control_SNR()
69psEncC->SNR_dB_Q7 = silk_LSHIFT( silk_SNR_table_Q1[ k - 1 ], 6 ) + silk_MUL( frac_Q6, silk_SNR_tab… in silk_control_SNR()
75 if( psEncC->LBRR_enabled ) { in silk_control_SNR()
76psEncC->SNR_dB_Q7 = silk_SMLABB( psEncC->SNR_dB_Q7, 12 - psEncC->LBRR_GainIncreases, SILK_FIX_CONS… in silk_control_SNR()
DNSQ.c36 const silk_encoder_state *psEncC, /* I Encoder State */
72 …const silk_encoder_state *psEncC, /* I/O Encoder State … in silk_NSQ() argument
115 psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); in silk_NSQ()
116 ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); in silk_NSQ()
117 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ()
119 NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; in silk_NSQ()
120 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ()
121 pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; in silk_NSQ()
122 for( k = 0; k < psEncC->nb_subfr; k++ ) { in silk_NSQ()
140 start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; in silk_NSQ()
[all …]
DVAD.c81 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_VAD_GetSA_Q8() argument
97 silk_VAD_state *psSilk_VAD = &psEncC->sVAD; in silk_VAD_GetSA_Q8()
102 silk_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); in silk_VAD_GetSA_Q8()
103 silk_assert( psEncC->frame_length <= 512 ); in silk_VAD_GetSA_Q8()
104 silk_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8()
109 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8()
110 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8()
111 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8()
129 X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); in silk_VAD_GetSA_Q8()
156 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8()
[all …]
DNSQ_del_dec.c61 const silk_encoder_state *psEncC, /* I Encoder State */
110 …const silk_encoder_state *psEncC, /* I/O Encoder State … in silk_NSQ_del_dec() argument
148 ALLOC( psDelDec, psEncC->nStatesDelayedDecision, NSQ_del_dec_struct ); in silk_NSQ_del_dec()
149 silk_memset( psDelDec, 0, psEncC->nStatesDelayedDecision * sizeof( NSQ_del_dec_struct ) ); in silk_NSQ_del_dec()
150 for( k = 0; k < psEncC->nStatesDelayedDecision; k++ ) { in silk_NSQ_del_dec()
156 psDD->Shape_Q14[ 0 ] = NSQ->sLTP_shp_Q14[ psEncC->ltp_mem_length - 1 ]; in silk_NSQ_del_dec()
164 decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); in silk_NSQ_del_dec()
168 for( k = 0; k < psEncC->nb_subfr; k++ ) { in silk_NSQ_del_dec()
184 psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); in silk_NSQ_del_dec()
185 ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); in silk_NSQ_del_dec()
[all …]
Dmain.h133 …silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state …
139 …silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state …
233 …const silk_encoder_state *psEncC, /* I/O Encoder State …
252 …const silk_encoder_state *psEncC, /* I/O Encoder State …
279 …silk_encoder_state *psEncC, /* I/O Encoder state …
297 …silk_encoder_state *psEncC, /* I/O Encoder state …
431 …silk_encoder_state *psEncC, /* I/O Encoder state …
/external/libopus/silk/float/
Dfind_LPC_FLP.c38 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_find_LPC_FLP() argument
53 subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; in silk_find_LPC_FLP()
56 psEncC->indices.NLSFInterpCoef_Q2 = 4; in silk_find_LPC_FLP()
59 …res_nrg = silk_burg_modified_FLP( a, x, minInvGain, subfr_length, psEncC->nb_subfr, psEncC->predic… in silk_find_LPC_FLP()
61 …if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB… in silk_find_LPC_FLP()
64 …_SUBFR / 2 ) * subfr_length, minInvGain, subfr_length, MAX_NB_SUBFR / 2, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
67 silk_A2NLSF_FLP( NLSF_Q15, a_tmp, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
73 … silk_interpolate( NLSF0_Q15, psEncC->prev_NLSFq_Q15, NLSF_Q15, k, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
76 silk_NLSF2A_FLP( a_tmp, NLSF0_Q15, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
79 … silk_LPC_analysis_filter_FLP( LPC_res, a_tmp, x, 2 * subfr_length, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
[all …]
Dwrappers_FLP.c74 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_process_NLSFs_FLP() argument
83 silk_process_NLSFs( psEncC, PredCoef_Q12, NLSF_Q15, prev_NLSF_Q15); in silk_process_NLSFs_FLP()
86 for( i = 0; i < psEncC->predictLPCOrder; i++ ) { in silk_process_NLSFs_FLP()
Dmain_FLP.h148 …silk_encoder_state *psEncC, /* I/O Encoder state …
292 …silk_encoder_state *psEncC, /* I/O Encoder state …
/external/libopus/silk/fixed/
Dfind_LPC_FIX.c38 …silk_encoder_state *psEncC, /* I/O Encoder state … in silk_find_LPC_FIX() argument
57 subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; in silk_find_LPC_FIX()
60 psEncC->indices.NLSFInterpCoef_Q2 = 4; in silk_find_LPC_FIX()
63 …&res_nrg_Q, a_Q16, x, minInvGain_Q30, subfr_length, psEncC->nb_subfr, psEncC->predictLPCOrder, psE… in silk_find_LPC_FIX()
65 …if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB… in silk_find_LPC_FIX()
69 …_Q16, x + 2 * subfr_length, minInvGain_Q30, subfr_length, 2, psEncC->predictLPCOrder, psEncC->arch… in silk_find_LPC_FIX()
85 silk_A2NLSF( NLSF_Q15, a_tmp_Q16, psEncC->predictLPCOrder ); in silk_find_LPC_FIX()
92 … silk_interpolate( NLSF0_Q15, psEncC->prev_NLSFq_Q15, NLSF_Q15, k, psEncC->predictLPCOrder ); in silk_find_LPC_FIX()
95 silk_NLSF2A( a_tmp_Q12, NLSF0_Q15, psEncC->predictLPCOrder ); in silk_find_LPC_FIX()
98 … silk_LPC_analysis_filter( LPC_res, x, a_tmp_Q12, 2 * subfr_length, psEncC->predictLPCOrder ); in silk_find_LPC_FIX()
[all …]
Dmain_FIX.h152 …silk_encoder_state *psEncC, /* I/O Encoder state …