Searched defs:psDec (Results 1 - 8 of 8) sorted by relevance

/external/libopus/silk/
H A Ddecoder_set_fs.c36 silk_decoder_state *psDec, /* I/O Decoder state pointer */
44 silk_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 );
47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz );
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length );
51 if( psDec->fs_kHz != fs_kHz || psDec->fs_API_hz != fs_API_Hz ) {
53 ret += silk_resampler_init( &psDec->resampler_state, silk_SMULBB( fs_kHz, 1000 ), fs_API_Hz, 0 );
55 psDec
35 silk_decoder_set_fs( silk_decoder_state *psDec, opus_int fs_kHz, opus_int32 fs_API_Hz ) argument
[all...]
H A Ddecode_frame.c40 silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state */
53 L = psDec->frame_length;
63 ( lostFlag == FLAG_DECODE_LBRR && psDec->LBRR_flags[ psDec->nFramesDecoded ] == 1 ) )
68 silk_decode_indices( psDec, psRangeDec, psDec->nFramesDecoded, lostFlag, condCoding );
73 silk_decode_pulses( psRangeDec, pulses, psDec->indices.signalType,
74 psDec->indices.quantOffsetType, psDec->frame_length );
79 silk_decode_parameters( psDec, psDecCtr
39 silk_decode_frame( silk_decoder_state *psDec, ec_dec *psRangeDec, opus_int16 pOut[], opus_int32 *pN, opus_int lostFlag, opus_int condCoding ) argument
[all...]
H A Ddecode_parameters.c36 silk_decoder_state *psDec, /* I/O State */
46 silk_gains_dequant( psDecCtrl->Gains_Q16, psDec->indices.GainsIndices,
47 &psDec->LastGainIndex, condCoding == CODE_CONDITIONALLY, psDec->nb_subfr );
52 silk_NLSF_decode( pNLSF_Q15, psDec->indices.NLSFIndices, psDec->psNLSF_CB );
55 silk_NLSF2A( psDecCtrl->PredCoef_Q12[ 1 ], pNLSF_Q15, psDec->LPC_order );
59 if( psDec->first_frame_after_reset == 1 ) {
60 psDec->indices.NLSFInterpCoef_Q2 = 4;
63 if( psDec
35 silk_decode_parameters( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl, opus_int condCoding ) argument
[all...]
H A Ddecode_indices.c36 silk_decoder_state *psDec, /* I/O State */
51 if( decode_LBRR || psDec->VAD_flags[ FrameIndex ] ) {
56 psDec->indices.signalType = (opus_int8)silk_RSHIFT( Ix, 1 );
57 psDec->indices.quantOffsetType = (opus_int8)( Ix & 1 );
65 psDec->indices.GainsIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 );
68 psDec->indices.GainsIndices[ 0 ] = (opus_int8)silk_LSHIFT( ec_dec_icdf( psRangeDec, silk_gain_iCDF[ psDec->indices.signalType ], 8 ), 3 );
69 psDec->indices.GainsIndices[ 0 ] += (opus_int8)ec_dec_icdf( psRangeDec, silk_uniform8_iCDF, 8 );
73 for( i = 1; i < psDec->nb_subfr; i++ ) {
74 psDec
35 silk_decode_indices( silk_decoder_state *psDec, ec_dec *psRangeDec, opus_int FrameIndex, opus_int decode_LBRR, opus_int condCoding ) argument
[all...]
H A DCNG.c64 silk_decoder_state *psDec /* I/O Decoder state */
69 NLSF_step_Q15 = silk_DIV32_16( silk_int16_MAX, psDec->LPC_order + 1 );
71 for( i = 0; i < psDec->LPC_order; i++ ) {
73 psDec->sCNG.CNG_smth_NLSF_Q15[ i ] = NLSF_acc_Q15;
75 psDec->sCNG.CNG_smth_Gain_Q16 = 0;
76 psDec->sCNG.rand_seed = 3176576;
81 silk_decoder_state *psDec, /* I/O Decoder state */
90 silk_CNG_struct *psCNG = &psDec->sCNG;
93 if( psDec->fs_kHz != psCNG->fs_kHz ) {
95 silk_CNG_Reset( psDec );
80 silk_CNG( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl, opus_int16 frame[], opus_int length ) argument
[all...]
H A Ddecode_core.c39 silk_decoder_state *psDec, /* I/O Decoder state */
55 silk_assert( psDec->prev_gain_Q16 != 0 );
57 ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 );
58 ALLOC( sLTP_Q15, psDec->ltp_mem_length + psDec->frame_length, opus_int32 );
59 ALLOC( res_Q14, psDec->subfr_length, opus_int32 );
60 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 );
62 offset_Q10 = silk_Quantization_Offsets_Q10[ psDec->indices.signalType >> 1 ][ psDec->indices.quantOffsetType ];
64 if( psDec
38 silk_decode_core( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl, opus_int16 xq[], const opus_int pulses[ MAX_FRAME_LENGTH ] ) argument
[all...]
H A Ddec_API.c97 silk_decoder *psDec = ( silk_decoder * )decState; local
98 silk_decoder_state *channel_state = psDec->channel_state;
115 if( decControl->nChannelsInternal > psDec->nChannelsInternal ) {
119 stereo_to_mono = decControl->nChannelsInternal == 1 && psDec->nChannelsInternal == 2 &&
156 if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 2 && ( psDec->nChannelsAPI == 1 || psDec->nChannelsInternal == 1 ) ) {
157 silk_memset( psDec->sStereo.pred_prev_Q13, 0, sizeof( psDec->sStereo.pred_prev_Q13 ) );
158 silk_memset( psDec->sStereo.sSide, 0, sizeof( psDec
[all...]
H A 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 */
57 psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 );
58 psDec->sPLC.prevGain_Q16[ 0 ] = SILK_FIX_CONST( 1, 16 );
59 psDec->sPLC.prevGain_Q16[ 1 ] = SILK_FIX_CONST( 1, 16 );
60 psDec->sPLC.subfr_length = 20;
61 psDec->sPLC.nb_subfr = 2;
65 silk_decoder_state *psDec, /*
64 silk_PLC( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl, opus_int16 frame[], opus_int lost ) argument
95 silk_PLC_update( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl ) argument
168 silk_PLC_conceal( silk_decoder_state *psDec, silk_decoder_control *psDecCtrl, opus_int16 frame[] ) argument
367 silk_PLC_glue_frames( silk_decoder_state *psDec, opus_int16 frame[], opus_int length ) argument
[all...]

Completed in 154 milliseconds