HomeSort by relevance Sort by last modified time
    Searched refs:psEnc (Results 1 - 20 of 20) sorted by null

  /external/libopus/silk/
init_encoder.c 43 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */
50 silk_memset( psEnc, 0, sizeof( silk_encoder_state_Fxx ) );
52 psEnc->sCmn.arch = arch;
54 psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ), 8 );
55 psEnc->sCmn.variable_HP_smth2_Q15 = psEnc->sCmn.variable_HP_smth1_Q15;
58 psEnc->sCmn.first_frame_after_reset = 1;
61 ret += silk_VAD_Init( &psEnc->sCmn.sVAD );
control_codec.c 43 silk_encoder_state_Fxx *psEnc, /* I/O */
48 silk_encoder_state_Fxx *psEnc, /* I/O */
66 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */
76 psEnc->sCmn.useDTX = encControl->useDTX;
77 psEnc->sCmn.useCBR = encControl->useCBR;
78 psEnc->sCmn.API_fs_Hz = encControl->API_sampleRate;
79 psEnc->sCmn.maxInternal_fs_Hz = encControl->maxInternalSampleRate;
80 psEnc->sCmn.minInternal_fs_Hz = encControl->minInternalSampleRate;
81 psEnc->sCmn.desiredInternal_fs_Hz = encControl->desiredInternalSampleRate;
82 psEnc->sCmn.useInBandFEC = encControl->useInBandFEC
    [all...]
enc_API.c 76 silk_encoder *psEnc;
79 psEnc = (silk_encoder *)encState;
82 silk_memset( psEnc, 0, sizeof( silk_encoder ) );
84 if( ret += silk_init_encoder( &psEnc->state_Fxx[ n ], arch ) ) {
89 psEnc->nChannelsAPI = 1;
90 psEnc->nChannelsInternal = 1;
110 silk_encoder *psEnc = (silk_encoder *)encState;
112 state_Fxx = psEnc->state_Fxx;
114 encStatus->nChannelsAPI = psEnc->nChannelsAPI;
115 encStatus->nChannelsInternal = psEnc->nChannelsInternal
    [all...]
  /external/libopus/silk/fixed/
find_pitch_lags_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
62 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
64 x_buf = x - psEnc->sCmn.ltp_mem_length;
72 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 );
75 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
77 silk_apply_sine_window( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
80 Wsig_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */
45 silk_encoder_state_FIX *psEnc /* I/O Pointer to Silk FIX encoder state */
51 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
56 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
57 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
58 psEnc->sCmn.noSpeechCounter++;
59 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
60 psEnc->sCmn.inDTX = 0;
61 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
55 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
77 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder
78 + psEnc->sCmn.frame_length, opus_int16 );
79 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
85 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
87 ALLOC( WLTP, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 )
    [all...]
LTP_scale_ctrl_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
45 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
46 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT(
50 psEnc->sCmn.indices.LTP_scaleIndex = 0;
52 psEncCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ];
process_gains_FIX.c 37 silk_encoder_state_FIX *psEnc, /* I/O Encoder state */
42 silk_shape_state_FIX *psShapeSt = &psEnc->sShape;
47 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
58 silk_SMULWB( SILK_FIX_CONST( 21 + 16 / 0.33, 7 ) - psEnc->sCmn.SNR_dB_Q7, SILK_FIX_CONST( 0.33, 16 ) ) ), psEnc->sCmn.subfr_length );
60 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
90 silk_memcpy( psEncCtrl->GainsUnq_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
94 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, psEncCtrl->Gains_Q16,
95 &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr )
    [all...]
noise_shape_analysis_FIX.c 145 silk_encoder_state_FIX *psEnc, /* I/O Encoder state FIX */
152 silk_shape_state_FIX *psShapeSt = &psEnc->sShape;
166 x_ptr = x - psEnc->sCmn.la_shape;
171 SNR_adj_dB_Q7 = psEnc->sCmn.SNR_dB_Q7;
174 psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_bands_Q15[ 0 ]
175 + psEnc->sCmn.input_quality_bands_Q15[ 1 ], 2 );
182 if( psEnc->sCmn.useCBR == 0 ) {
183 b_Q8 = SILK_FIX_CONST( 1.0, 8 ) - psEnc->sCmn.speech_activity_Q8;
190 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
192 SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( HARM_SNR_INCR_dB, 8 ), psEnc->LTPCorr_Q15 )
    [all...]
main_FIX.h 61 silk_encoder_state_FIX *psEnc /* I/O Pointer to Silk FIX encoder state */
66 silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */
76 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */
82 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */
94 silk_encoder_state_FIX *psEnc, /* I/O Encoder state */
105 silk_encoder_state_FIX *psEnc, /* I/O Encoder state FIX */
124 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
134 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
143 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
208 silk_encoder_state_FIX *psEnc, /* I/O Encoder state (…)
    [all...]
prefilter_FIX.c 91 silk_encoder_state_FIX *psEnc, /* I/O Encoder state */
97 silk_prefilter_state_FIX *P = &psEnc->sPrefilt;
114 ALLOC( x_filt_Q12, psEnc->sCmn.subfr_length, opus_int32 );
115 ALLOC( st_res_Q2, psEnc->sCmn.subfr_length, opus_int32 );
116 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
118 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
133 psEnc->sCmn.warping_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.shapingLPCOrder );
143 for( j = 1; j < psEnc->sCmn.subfr_length; j++ )
    [all...]
  /external/libopus/silk/float/
find_pitch_lags_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
59 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
61 x_buf = x - psEnc->sCmn.ltp_mem_length;
70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
72 silk_apply_sine_window_FLP( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
75 Wsig_ptr += psEnc->sCmn.la_pitch;
76 x_buf_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 silk_encoder_state_FLP *psEnc /* I/O Encoder state FLP */
50 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
55 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
56 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
57 psEnc->sCmn.noSpeechCounter++;
58 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
59 psEnc->sCmn.inDTX = 0;
60 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FLP.c 36 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
52 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
62 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
66 psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length );
69 silk_quant_LTP_gains_FLP( psEncCtrl->LTPCoef, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex
    [all...]
LTP_scale_ctrl_FLP.c 35 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
45 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( round_loss * psEncCtrl->LTPredCodGain * 0.1f, 0.0f, 2.0f );
48 psEnc->sCmn.indices.LTP_scaleIndex = 0;
51 psEncCtrl->LTP_scale = (silk_float)silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ] / 16384.0f;
process_gains_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
42 silk_shape_state_FLP *psShapeSt = &psEnc->sShape;
48 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
56 InvMaxSqrVal = ( silk_float )( pow( 2.0f, 0.33f * ( 21.0f - psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) ) ) / psEnc->sCmn.subfr_length );
58 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
66 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
71 silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
75 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, pGains_Q16
    [all...]
noise_shape_analysis_FLP.c 129 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
135 silk_shape_state_FLP *psShapeSt = &psEnc->sShape;
145 x_ptr = x - psEnc->sCmn.la_shape;
150 SNR_adj_dB = psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f );
153 psEncCtrl->input_quality = 0.5f * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] + psEnc->sCmn.input_quality_bands_Q15[ 1 ] ) * ( 1.0f / 32768.0f );
158 if( psEnc->sCmn.useCBR == 0 ) {
160 b = 1.0f - psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f );
164 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
166 SNR_adj_dB += HARM_SNR_INCR_dB * psEnc->LTPCorr
    [all...]
main_FLP.h 59 silk_encoder_state_FLP *psEnc /* I/O Encoder state FLP */
64 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
74 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
80 silk_encoder_state_FLP *psEnc, /* I/O Pointer to Silk encoder state FLP */
92 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
103 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
120 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
130 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
139 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
222 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP *
    [all...]
prefilter_FLP.c 95 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
101 silk_prefilter_state_FLP *P = &psEnc->sPrefilt;
115 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
117 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
133 (silk_float)psEnc->sCmn.warping_Q16 / 65536.0f, psEnc->sCmn.subfr_length, psEnc->sCmn.shapingLPCOrder );
140 for( j = 1; j < psEnc->sCmn.subfr_length; j++ ) {
143 P->sHarmHP = st_res[ psEnc->sCmn.subfr_length - 1 ];
145 silk_prefilt_FLP( P, pxw, pxw, HarmShapeFIR, Tilt, LF_MA_shp, LF_AR_shp, lag, psEnc->sCmn.subfr_length )
    [all...]
wrappers_FLP.c 96 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
120 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
121 for( j = 0; j < psEnc->sCmn.shapingLPCOrder; j++ ) {
126 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
135 for( i = 0; i < psEnc->sCmn.nb_subfr * LTP_ORDER; i++ ) {
140 for( i = 0; i < psEnc->sCmn.predictLPCOrder; i++ ) {
145 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
157 for( i = 0; i < psEnc->sCmn.frame_length; i++ ) {
162 if( psEnc->sCmn.nStatesDelayedDecision > 1 || psEnc->sCmn.warping_Q16 > 0 )
    [all...]

Completed in 106 milliseconds