/external/libopus/silk/ |
D | decoder_set_fs.c | 37 …opus_int fs_kHz, /* I Sampling frequency (kHz) … in silk_decoder_set_fs() argument 43 celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_decoder_set_fs() 47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); 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() 58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { in silk_decoder_set_fs() 59 if( fs_kHz == 8 ) { in silk_decoder_set_fs() 72 if( psDec->fs_kHz != fs_kHz ) { in silk_decoder_set_fs() 73 psDec->ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs() 74 if( fs_kHz == 8 || fs_kHz == 12 ) { in silk_decoder_set_fs() [all …]
|
D | control_codec.c | 44 opus_int fs_kHz /* I */ 49 opus_int fs_kHz, /* I */ 73 opus_int fs_kHz, ret = 0; in silk_control_encoder() local 88 if( psEnc->sCmn.API_fs_Hz != psEnc->sCmn.prev_API_fs_Hz && psEnc->sCmn.fs_kHz > 0 ) { in silk_control_encoder() 90 ret += silk_setup_resamplers( psEnc, psEnc->sCmn.fs_kHz ); in silk_control_encoder() 100 fs_kHz = silk_control_audio_bandwidth( &psEnc->sCmn, encControl ); in silk_control_encoder() 102 fs_kHz = force_fs_kHz; in silk_control_encoder() 107 ret += silk_setup_resamplers( psEnc, fs_kHz ); in silk_control_encoder() 112 ret += silk_setup_fs( psEnc, fs_kHz, encControl->payloadSize_ms ); in silk_control_encoder() 136 opus_int fs_kHz /* I */ in silk_setup_resamplers() argument [all …]
|
D | control_audio_bandwidth.c | 41 opus_int fs_kHz; in silk_control_audio_bandwidth() local 45 orig_kHz = psEncC->fs_kHz; in silk_control_audio_bandwidth() 50 fs_kHz = orig_kHz; in silk_control_audio_bandwidth() 51 fs_Hz = silk_SMULBB( fs_kHz, 1000 ); in silk_control_audio_bandwidth() 55 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 61 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 85 fs_kHz = orig_kHz == 16 ? 12 : 8; in silk_control_audio_bandwidth() 104 fs_kHz = orig_kHz == 8 ? 12 : 16; in silk_control_audio_bandwidth() 131 return fs_kHz; in silk_control_audio_bandwidth()
|
D | encode_indices.c | 134 … pitch_high_bits = silk_DIV32_16( psIndices->lagIndex, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); in silk_encode_indices() 135 …_low_bits = psIndices->lagIndex - silk_SMULBB( pitch_high_bits, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); in silk_encode_indices() 136 silk_assert( pitch_low_bits < psEncC->fs_kHz / 2 ); in silk_encode_indices() 145 … silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices() 146 … ( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices() 147 … ( psIndices->contourIndex < 12 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 2 ) || in silk_encode_indices() 148 … ( psIndices->contourIndex < 3 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 2 ) ); in silk_encode_indices()
|
D | stereo_LR_to_MS.c | 46 …opus_int fs_kHz, /* I Sample rate (kHz) … in silk_stereo_LR_to_MS() argument 95 is10msFrame = frame_length == 10 * fs_kHz; in silk_stereo_LR_to_MS() 112 min_mid_rate_bps = silk_SMLABB( 2000, fs_kHz, 600 ); in silk_stereo_LR_to_MS() 182 state->silent_side_len += frame_length - STEREO_INTERP_LEN_MS * fs_kHz; in silk_stereo_LR_to_MS() 183 if( state->silent_side_len < LA_SHAPE_MS * fs_kHz ) { in silk_stereo_LR_to_MS() 202 denom_Q16 = silk_DIV32_16( (opus_int32)1 << 16, STEREO_INTERP_LEN_MS * fs_kHz ); in silk_stereo_LR_to_MS() 206 for( n = 0; n < STEREO_INTERP_LEN_MS * fs_kHz; n++ ) { in silk_stereo_LR_to_MS() 219 for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { in silk_stereo_LR_to_MS()
|
D | control_SNR.c | 93 TargetRate_bps -= 2000 + psEncC->fs_kHz/16; in silk_control_SNR() 95 if( psEncC->fs_kHz == 8 ) { in silk_control_SNR() 98 } else if( psEncC->fs_kHz == 12 ) { in silk_control_SNR()
|
D | stereo_MS_to_LR.c | 40 …opus_int fs_kHz, /* I Samples rate (kHz) … in silk_stereo_MS_to_LR() argument 56 denom_Q16 = silk_DIV32_16( (opus_int32)1 << 16, STEREO_INTERP_LEN_MS * fs_kHz ); in silk_stereo_MS_to_LR() 59 for( n = 0; n < STEREO_INTERP_LEN_MS * fs_kHz; n++ ) { in silk_stereo_MS_to_LR() 69 for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { in silk_stereo_MS_to_LR()
|
D | enc_API.c | 127 encStatus->internalSampleRate = silk_SMULBB( state_Fxx[ 0 ].sCmn.fs_kHz, 1000 ); in silk_QueryEncoder() 129 …encStatus->inWBmodeWithoutVariableLP = state_Fxx[ 0 ].sCmn.fs_kHz == 16 && state_Fxx[ 0 ].sCmn.sLP… in silk_QueryEncoder() 213 save_LP.saved_fs_kHz = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; in silk_Encode() 249 opus_int force_fs_kHz = (n==1) ? psEnc->state_Fxx[0].sCmn.fs_kHz : 0; in silk_Encode() 262 …->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->state_Fxx[ 1 ].sCmn.fs_kHz… in silk_Encode() 266 10 * nBlocksOf10ms * psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; in silk_Encode() 270 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 276 …SamplesToBuffer * psEnc->state_Fxx[ 0 ].sCmn.API_fs_Hz, psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 293 …esToBuffer = silk_min( nSamplesToBuffer, 10 * nBlocksOf10ms * psEnc->state_Fxx[ 1 ].sCmn.fs_kHz ); in silk_Encode() 435 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode() [all …]
|
D | CNG.c | 92 if( psDec->fs_kHz != psCNG->fs_kHz ) { in silk_CNG() 96 psCNG->fs_kHz = psDec->fs_kHz; in silk_CNG()
|
D | structs.h | 155 …opus_int fs_kHz; /* Internal sampling frequency (kH… member 243 opus_int fs_kHz; member 255 opus_int fs_kHz; member 268 …opus_int fs_kHz; /* Sampling frequency in kHz … member
|
D | PLC.c | 74 if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { in silk_PLC() 76 psDec->sPLC.fs_kHz = psDec->fs_kHz; in silk_PLC() 155 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update() 336 … silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDec->fs_kHz ), 8 ) ); in silk_PLC_conceal()
|
D | dec_API.c | 124 ( decControl->internalSampleRate == 1000*channel_state[ 0 ].fs_kHz ); in silk_Decode() 309 …mplesOut1_tmp[ 0 ], samplesOut1_tmp[ 1 ], MS_pred_Q13, channel_state[ 0 ].fs_kHz, nSamplesOutDec ); in silk_Decode() 317 …V32( nSamplesOutDec * decControl->API_sampleRate, silk_SMULBB( channel_state[ 0 ].fs_kHz, 1000 ) ); in silk_Decode() 370 …ol->prevPitchLag = channel_state[ 0 ].lagPrev * mult_tab[ ( channel_state[ 0 ].fs_kHz - 8 ) >> 2 ]; in silk_Decode()
|
D | main.h | 60 …opus_int fs_kHz, /* I Sample rate (kHz) … 70 …opus_int fs_kHz, /* I Samples rate (kHz) … 399 …opus_int fs_kHz, /* I Sampling frequency (kHz) …
|
D | HP_variable_cutoff.c | 50 …pitch_freq_Hz_Q16 = silk_DIV32_16( silk_LSHIFT( silk_MUL( psEncC1->fs_kHz, 1000 ), 16 ), psEncC1->… in silk_HP_variable_cutoff()
|
D | VAD.c | 255 if( psEncC->frame_length == 20 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_c() 278 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_c()
|
D | decode_parameters.c | 92 …indices.lagIndex, psDec->indices.contourIndex, psDecCtrl->pitchL, psDec->fs_kHz, psDec->nb_subfr ); in silk_decode_parameters()
|
D | decode_indices.c | 118 … = (opus_int16)ec_dec_icdf( psRangeDec, silk_pitch_lag_iCDF, 8 ) * silk_RSHIFT( psDec->fs_kHz, 1 ); in silk_decode_indices()
|
/external/libopus/silk/float/ |
D | noise_shape_analysis_FLP.c | 201 nSamples = 2 * psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP() 240 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FLP() 307 b = 0.2f / psEnc->sCmn.fs_kHz + 3.0f / psEncCtrl->pitchL[ k ]; in silk_noise_shape_analysis_FLP() 314 b = 1.3f / psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
|
D | encode_frame_FLP.c | 131 …silk_short2float_array( x_frame + LA_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEn… in silk_encode_frame_FLP() 135 …x_frame[ LA_SHAPE_MS * psEnc->sCmn.fs_kHz + i * ( psEnc->sCmn.frame_length >> 3 ) ] += ( 1 - ( i &… in silk_encode_frame_FLP() 358 ( psEnc->sCmn.ltp_mem_length + LA_SHAPE_MS * psEnc->sCmn.fs_kHz ) * sizeof( silk_float ) ); in silk_encode_frame_FLP()
|
D | find_pitch_lags_FLP.c | 120 …thrhld, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_subfr, arch ) ==… in silk_find_pitch_lags_FLP()
|
/external/libopus/silk/fixed/mips/ |
D | noise_shape_analysis_FIX_mipsr1.h | 100 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX() 158 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FIX() 273 opus_int fs_kHz_inv = silk_DIV32_16( SILK_FIX_CONST( 0.2, 14 ), psEnc->sCmn.fs_kHz ); in silk_noise_shape_analysis_FIX() 285 b_Q14 = silk_DIV32_16( 21299, psEnc->sCmn.fs_kHz ); /* 1.3_Q0 = 21299_Q14*/ in silk_noise_shape_analysis_FIX()
|
/external/libopus/silk/fixed/ |
D | noise_shape_analysis_FIX.c | 204 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX() 251 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FIX() 354 opus_int fs_kHz_inv = silk_DIV32_16( SILK_FIX_CONST( 0.2, 14 ), psEnc->sCmn.fs_kHz ); in silk_noise_shape_analysis_FIX() 366 b_Q14 = silk_DIV32_16( 21299, psEnc->sCmn.fs_kHz ); /* 1.3_Q0 = 21299_Q14*/ in silk_noise_shape_analysis_FIX()
|
D | find_pitch_lags_FIX.c | 129 …(opus_int)thrhld_Q13, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_su… in silk_find_pitch_lags_FIX()
|
D | encode_frame_FIX.c | 129 …silk_memcpy( x_frame + LA_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.fra… in silk_encode_frame_FIX() 366 ( psEnc->sCmn.ltp_mem_length + LA_SHAPE_MS * psEnc->sCmn.fs_kHz ) * sizeof( opus_int16 ) ); in silk_encode_frame_FIX()
|
/external/libopus/silk/x86/ |
D | VAD_sse4_1.c | 244 if( psEncC->frame_length == 20 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_sse4_1() 267 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_sse4_1()
|