Home
last modified time | relevance | path

Searched refs:psDec (Results 1 – 11 of 11) sorted by relevance

/external/libopus/silk/
Ddecoder_set_fs.c36 …silk_decoder_state *psDec, /* I/O Decoder state pointer … in silk_decoder_set_fs() argument
44 silk_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); in silk_decoder_set_fs()
47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
51 if( psDec->fs_kHz != fs_kHz || psDec->fs_API_hz != fs_API_Hz ) { in silk_decoder_set_fs()
53 … ret += silk_resampler_init( &psDec->resampler_state, silk_SMULBB( fs_kHz, 1000 ), fs_API_Hz, 0 ); in silk_decoder_set_fs()
55 psDec->fs_API_hz = fs_API_Hz; in silk_decoder_set_fs()
58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { in silk_decoder_set_fs()
60 if( psDec->nb_subfr == MAX_NB_SUBFR ) { in silk_decoder_set_fs()
61 psDec->pitch_contour_iCDF = silk_pitch_contour_NB_iCDF; in silk_decoder_set_fs()
[all …]
Ddecode_indices.c36 …silk_decoder_state *psDec, /* I/O State … in silk_decode_indices() argument
51 if( decode_LBRR || psDec->VAD_flags[ FrameIndex ] ) { in silk_decode_indices()
56 psDec->indices.signalType = (opus_int8)silk_RSHIFT( Ix, 1 ); in silk_decode_indices()
57 psDec->indices.quantOffsetType = (opus_int8)( Ix & 1 ); in silk_decode_indices()
65psDec->indices.GainsIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); in silk_decode_indices()
68psDec->indices.GainsIndices[ 0 ] = (opus_int8)silk_LSHIFT( ec_dec_icdf( psRangeDec, silk_gain_iCD… in silk_decode_indices()
69psDec->indices.GainsIndices[ 0 ] += (opus_int8)ec_dec_icdf( psRangeDec, silk_uniform8_iCDF, 8 ); in silk_decode_indices()
73 for( i = 1; i < psDec->nb_subfr; i++ ) { in silk_decode_indices()
74psDec->indices.GainsIndices[ i ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); in silk_decode_indices()
80psDec->indices.NLSFIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, &psDec->psNLSF_CB->CB1_iCDF[… in silk_decode_indices()
[all …]
Ddecode_frame.c40 …silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state … in silk_decode_frame() argument
53 L = psDec->frame_length; in silk_decode_frame()
63 ( lostFlag == FLAG_DECODE_LBRR && psDec->LBRR_flags[ psDec->nFramesDecoded ] == 1 ) ) in silk_decode_frame()
68 silk_decode_indices( psDec, psRangeDec, psDec->nFramesDecoded, lostFlag, condCoding ); in silk_decode_frame()
73 silk_decode_pulses( psRangeDec, pulses, psDec->indices.signalType, in silk_decode_frame()
74 psDec->indices.quantOffsetType, psDec->frame_length ); in silk_decode_frame()
79 silk_decode_parameters( psDec, psDecCtrl, condCoding ); in silk_decode_frame()
84 silk_decode_core( psDec, psDecCtrl, pOut, pulses ); in silk_decode_frame()
89 silk_PLC( psDec, psDecCtrl, pOut, 0 ); in silk_decode_frame()
91 psDec->lossCnt = 0; in silk_decode_frame()
[all …]
Ddecode_parameters.c36 …silk_decoder_state *psDec, /* I/O State … in silk_decode_parameters() argument
46 silk_gains_dequant( psDecCtrl->Gains_Q16, psDec->indices.GainsIndices, in silk_decode_parameters()
47 &psDec->LastGainIndex, condCoding == CODE_CONDITIONALLY, psDec->nb_subfr ); in silk_decode_parameters()
52 silk_NLSF_decode( pNLSF_Q15, psDec->indices.NLSFIndices, psDec->psNLSF_CB ); in silk_decode_parameters()
55 silk_NLSF2A( psDecCtrl->PredCoef_Q12[ 1 ], pNLSF_Q15, psDec->LPC_order ); in silk_decode_parameters()
59 if( psDec->first_frame_after_reset == 1 ) { in silk_decode_parameters()
60 psDec->indices.NLSFInterpCoef_Q2 = 4; in silk_decode_parameters()
63 if( psDec->indices.NLSFInterpCoef_Q2 < 4 ) { in silk_decode_parameters()
66 for( i = 0; i < psDec->LPC_order; i++ ) { in silk_decode_parameters()
67 …pNLSF0_Q15[ i ] = psDec->prevNLSF_Q15[ i ] + silk_RSHIFT( silk_MUL( psDec->indices.NLSFInterpCoef_… in silk_decode_parameters()
[all …]
Ddecode_core.c39 …silk_decoder_state *psDec, /* I/O Decoder state … in silk_decode_core() argument
55 silk_assert( psDec->prev_gain_Q16 != 0 ); in silk_decode_core()
57 ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 ); in silk_decode_core()
58 ALLOC( sLTP_Q15, psDec->ltp_mem_length + psDec->frame_length, opus_int32 ); in silk_decode_core()
59 ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); in silk_decode_core()
60 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); in silk_decode_core()
62 …offset_Q10 = silk_Quantization_Offsets_Q10[ psDec->indices.signalType >> 1 ][ psDec->indices.quant… in silk_decode_core()
64 if( psDec->indices.NLSFInterpCoef_Q2 < 1 << 2 ) { in silk_decode_core()
71 rand_seed = psDec->indices.Seed; in silk_decode_core()
72 for( i = 0; i < psDec->frame_length; i++ ) { in silk_decode_core()
[all …]
DPLC.c42 silk_decoder_state *psDec, /* I/O Decoder state */
47 silk_decoder_state *psDec, /* I/O Decoder state */
54 silk_decoder_state *psDec /* I/O Decoder state */ in silk_PLC_Reset() argument
57 psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 ); in silk_PLC_Reset()
58 psDec->sPLC.prevGain_Q16[ 0 ] = SILK_FIX_CONST( 1, 16 ); in silk_PLC_Reset()
59 psDec->sPLC.prevGain_Q16[ 1 ] = SILK_FIX_CONST( 1, 16 ); in silk_PLC_Reset()
60 psDec->sPLC.subfr_length = 20; in silk_PLC_Reset()
61 psDec->sPLC.nb_subfr = 2; in silk_PLC_Reset()
65 silk_decoder_state *psDec, /* I/O Decoder state */ in silk_PLC() argument
72 if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { in silk_PLC()
[all …]
DCNG.c64 …silk_decoder_state *psDec /* I/O Decoder state … in silk_CNG_Reset() argument
69 NLSF_step_Q15 = silk_DIV32_16( silk_int16_MAX, psDec->LPC_order + 1 ); in silk_CNG_Reset()
71 for( i = 0; i < psDec->LPC_order; i++ ) { in silk_CNG_Reset()
73 psDec->sCNG.CNG_smth_NLSF_Q15[ i ] = NLSF_acc_Q15; in silk_CNG_Reset()
75 psDec->sCNG.CNG_smth_Gain_Q16 = 0; in silk_CNG_Reset()
76 psDec->sCNG.rand_seed = 3176576; in silk_CNG_Reset()
81 …silk_decoder_state *psDec, /* I/O Decoder state … in silk_CNG() argument
90 silk_CNG_struct *psCNG = &psDec->sCNG; in silk_CNG()
93 if( psDec->fs_kHz != psCNG->fs_kHz ) { in silk_CNG()
95 silk_CNG_Reset( psDec ); in silk_CNG()
[all …]
Ddec_API.c97 silk_decoder *psDec = ( silk_decoder * )decState; in silk_Decode() local
98 silk_decoder_state *channel_state = psDec->channel_state; in silk_Decode()
115 if( decControl->nChannelsInternal > psDec->nChannelsInternal ) { in silk_Decode()
119 stereo_to_mono = decControl->nChannelsInternal == 1 && psDec->nChannelsInternal == 2 && in silk_Decode()
156 …ChannelsAPI == 2 && decControl->nChannelsInternal == 2 && ( psDec->nChannelsAPI == 1 || psDec->nCh… in silk_Decode()
157 silk_memset( psDec->sStereo.pred_prev_Q13, 0, sizeof( psDec->sStereo.pred_prev_Q13 ) ); in silk_Decode()
158 silk_memset( psDec->sStereo.sSide, 0, sizeof( psDec->sStereo.sSide ) ); in silk_Decode()
161 psDec->nChannelsAPI = decControl->nChannelsAPI; in silk_Decode()
162 psDec->nChannelsInternal = decControl->nChannelsInternal; in silk_Decode()
239 MS_pred_Q13[ n ] = psDec->sStereo.pred_prev_Q13[ n ]; in silk_Decode()
[all …]
Dinit_decoder.c38 …silk_decoder_state *psDec /* I/O Decoder state pointer … in silk_init_decoder() argument
42 silk_memset( psDec, 0, sizeof( silk_decoder_state ) ); in silk_init_decoder()
45 psDec->first_frame_after_reset = 1; in silk_init_decoder()
46 psDec->prev_gain_Q16 = 65536; in silk_init_decoder()
49 silk_CNG_Reset( psDec ); in silk_init_decoder()
52 silk_PLC_Reset( psDec ); in silk_init_decoder()
DPLC.h44 silk_decoder_state *psDec /* I/O Decoder state */
48 silk_decoder_state *psDec, /* I/O Decoder state */
55 silk_decoder_state *psDec, /* I/O decoder state */
Dmain.h357 …silk_decoder_state *psDec /* I/O Decoder state pointer …
362 …silk_decoder_state *psDec, /* I/O Decoder state pointer …
371 …silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state …
381 …silk_decoder_state *psDec, /* I/O State …
390 …silk_decoder_state *psDec, /* I/O State …
397 …silk_decoder_state *psDec, /* I/O Decoder state …
418 …silk_decoder_state *psDec /* I/O Decoder state …
423 …silk_decoder_state *psDec, /* I/O Decoder state …