/external/libopus/silk/ |
D | decoder_set_fs.c | 36 …silk_decoder_state *psDec, /* I/O Decoder state pointer … in silk_decoder_set_fs() argument 44 celt_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 …]
|
D | decode_indices.c | 36 …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() 65 … psDec->indices.GainsIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); in silk_decode_indices() 68 …psDec->indices.GainsIndices[ 0 ] = (opus_int8)silk_LSHIFT( ec_dec_icdf( psRangeDec, silk_gain_iCD… in silk_decode_indices() 69 … psDec->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() 74 … psDec->indices.GainsIndices[ i ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); in silk_decode_indices() 80 …psDec->indices.NLSFIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, &psDec->psNLSF_CB->CB1_iCDF[… in silk_decode_indices() [all …]
|
D | decode_frame.c | 40 …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() 61 ( lostFlag == FLAG_DECODE_LBRR && psDec->LBRR_flags[ psDec->nFramesDecoded ] == 1 ) ) in silk_decode_frame() 69 silk_decode_indices( psDec, psRangeDec, psDec->nFramesDecoded, lostFlag, condCoding ); in silk_decode_frame() 74 silk_decode_pulses( psRangeDec, pulses, psDec->indices.signalType, in silk_decode_frame() 75 psDec->indices.quantOffsetType, psDec->frame_length ); in silk_decode_frame() 80 silk_decode_parameters( psDec, psDecCtrl, condCoding ); in silk_decode_frame() 85 silk_decode_core( psDec, psDecCtrl, pOut, pulses, arch ); in silk_decode_frame() 90 silk_PLC( psDec, psDecCtrl, pOut, 0, arch ); in silk_decode_frame() 92 psDec->lossCnt = 0; in silk_decode_frame() [all …]
|
D | decode_parameters.c | 36 …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, psDec->arch ); 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 …]
|
D | PLC.c | 42 silk_decoder_state *psDec, /* I/O Decoder state */ 47 silk_decoder_state *psDec, /* I/O Decoder state */ 55 silk_decoder_state *psDec /* I/O Decoder state */ in silk_PLC_Reset() argument 58 psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 ); in silk_PLC_Reset() 59 psDec->sPLC.prevGain_Q16[ 0 ] = SILK_FIX_CONST( 1, 16 ); in silk_PLC_Reset() 60 psDec->sPLC.prevGain_Q16[ 1 ] = SILK_FIX_CONST( 1, 16 ); in silk_PLC_Reset() 61 psDec->sPLC.subfr_length = 20; in silk_PLC_Reset() 62 psDec->sPLC.nb_subfr = 2; in silk_PLC_Reset() 66 silk_decoder_state *psDec, /* I/O Decoder state */ in silk_PLC() argument 74 if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { in silk_PLC() [all …]
|
D | decode_core.c | 39 …silk_decoder_state *psDec, /* I/O Decoder state … in silk_decode_core() argument 56 silk_assert( psDec->prev_gain_Q16 != 0 ); in silk_decode_core() 58 ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 ); in silk_decode_core() 59 ALLOC( sLTP_Q15, psDec->ltp_mem_length + psDec->frame_length, opus_int32 ); in silk_decode_core() 60 ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); in silk_decode_core() 61 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); in silk_decode_core() 63 …offset_Q10 = silk_Quantization_Offsets_Q10[ psDec->indices.signalType >> 1 ][ psDec->indices.quant… in silk_decode_core() 65 if( psDec->indices.NLSFInterpCoef_Q2 < 1 << 2 ) { in silk_decode_core() 72 rand_seed = psDec->indices.Seed; in silk_decode_core() 73 for( i = 0; i < psDec->frame_length; i++ ) { in silk_decode_core() [all …]
|
D | CNG.c | 63 …silk_decoder_state *psDec /* I/O Decoder state … in silk_CNG_Reset() argument 68 NLSF_step_Q15 = silk_DIV32_16( silk_int16_MAX, psDec->LPC_order + 1 ); in silk_CNG_Reset() 70 for( i = 0; i < psDec->LPC_order; i++ ) { in silk_CNG_Reset() 72 psDec->sCNG.CNG_smth_NLSF_Q15[ i ] = NLSF_acc_Q15; in silk_CNG_Reset() 74 psDec->sCNG.CNG_smth_Gain_Q16 = 0; in silk_CNG_Reset() 75 psDec->sCNG.rand_seed = 3176576; in silk_CNG_Reset() 80 …silk_decoder_state *psDec, /* I/O Decoder state … in silk_CNG() argument 89 silk_CNG_struct *psCNG = &psDec->sCNG; in silk_CNG() 92 if( psDec->fs_kHz != psCNG->fs_kHz ) { in silk_CNG() 94 silk_CNG_Reset( psDec ); in silk_CNG() [all …]
|
D | dec_API.c | 100 silk_decoder *psDec = ( silk_decoder * )decState; in silk_Decode() local 101 silk_decoder_state *channel_state = psDec->channel_state; in silk_Decode() 119 if( decControl->nChannelsInternal > psDec->nChannelsInternal ) { in silk_Decode() 123 stereo_to_mono = decControl->nChannelsInternal == 1 && psDec->nChannelsInternal == 2 && in silk_Decode() 160 …ChannelsAPI == 2 && decControl->nChannelsInternal == 2 && ( psDec->nChannelsAPI == 1 || psDec->nCh… in silk_Decode() 161 silk_memset( psDec->sStereo.pred_prev_Q13, 0, sizeof( psDec->sStereo.pred_prev_Q13 ) ); in silk_Decode() 162 silk_memset( psDec->sStereo.sSide, 0, sizeof( psDec->sStereo.sSide ) ); in silk_Decode() 165 psDec->nChannelsAPI = decControl->nChannelsAPI; in silk_Decode() 166 psDec->nChannelsInternal = decControl->nChannelsInternal; in silk_Decode() 243 MS_pred_Q13[ n ] = psDec->sStereo.pred_prev_Q13[ n ]; in silk_Decode() [all …]
|
D | init_decoder.c | 38 …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() 47 psDec->arch = opus_select_arch(); in silk_init_decoder() 50 silk_CNG_Reset( psDec ); in silk_init_decoder() 53 silk_PLC_Reset( psDec ); in silk_init_decoder()
|
D | PLC.h | 44 silk_decoder_state *psDec /* I/O Decoder state */ 48 silk_decoder_state *psDec, /* I/O Decoder state */ 56 silk_decoder_state *psDec, /* I/O decoder state */
|
D | main.h | 393 …silk_decoder_state *psDec /* I/O Decoder state pointer … 398 …silk_decoder_state *psDec, /* I/O Decoder state pointer … 407 …silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state … 418 …silk_decoder_state *psDec, /* I/O State … 427 …silk_decoder_state *psDec, /* I/O State … 434 …silk_decoder_state *psDec, /* I/O Decoder state … 456 …silk_decoder_state *psDec /* I/O Decoder state … 461 …silk_decoder_state *psDec, /* I/O Decoder state …
|