/external/chromium_org/third_party/opus/src/silk/ |
D | decoder_set_fs.c | 37 …opus_int fs_kHz, /* I Sampling frequency (kHz) … in silk_decoder_set_fs() argument 43 silk_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 */ 74 opus_int fs_kHz, ret = 0; in silk_control_encoder() local 89 if( psEnc->sCmn.API_fs_Hz != psEnc->sCmn.prev_API_fs_Hz && psEnc->sCmn.fs_kHz > 0 ) { in silk_control_encoder() 91 ret += silk_setup_resamplers( psEnc, psEnc->sCmn.fs_kHz ); in silk_control_encoder() 101 fs_kHz = silk_control_audio_bandwidth( &psEnc->sCmn, encControl ); in silk_control_encoder() 103 fs_kHz = force_fs_kHz; in silk_control_encoder() 108 ret += silk_setup_resamplers( psEnc, fs_kHz ); in silk_control_encoder() 113 ret += silk_setup_fs( psEnc, fs_kHz, encControl->payloadSize_ms ); in silk_control_encoder() 137 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 44 fs_kHz = psEncC->fs_kHz; in silk_control_audio_bandwidth() 45 fs_Hz = silk_SMULBB( fs_kHz, 1000 ); in silk_control_audio_bandwidth() 49 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 55 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 64 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth() 79 fs_kHz = psEncC->fs_kHz == 16 ? 12 : 8; in silk_control_audio_bandwidth() 93 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth() 98 fs_kHz = psEncC->fs_kHz == 8 ? 12 : 16; in silk_control_audio_bandwidth() 125 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, 900 ); 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 | 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() 239 opus_int force_fs_kHz = (n==1) ? psEnc->state_Fxx[0].sCmn.fs_kHz : 0; in silk_Encode() 252 …->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->state_Fxx[ 1 ].sCmn.fs_kHz… in silk_Encode() 256 10 * nBlocksOf10ms * psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; in silk_Encode() 260 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 265 …SamplesToBuffer * psEnc->state_Fxx[ 0 ].sCmn.API_fs_Hz, psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 282 …esToBuffer = silk_min( nSamplesToBuffer, 10 * nBlocksOf10ms * psEnc->state_Fxx[ 1 ].sCmn.fs_kHz ); in silk_Encode() 407 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode() 541 …encControl->inWBmodeWithoutVariableLP = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == 16 && psEnc->state_Fx… in silk_Encode() [all …]
|
D | control_SNR.c | 51 if( psEncC->fs_kHz == 8 ) { in silk_control_SNR() 53 } else if( psEncC->fs_kHz == 12 ) { in silk_control_SNR()
|
D | CNG.c | 93 if( psDec->fs_kHz != psCNG->fs_kHz ) { in silk_CNG() 97 psCNG->fs_kHz = psDec->fs_kHz; in silk_CNG()
|
D | structs.h | 152 …opus_int fs_kHz; /* Internal sampling frequency (kH… member 242 opus_int fs_kHz; member 254 opus_int fs_kHz; member 267 …opus_int fs_kHz; /* Sampling frequency in kHz … member
|
D | PLC.c | 72 if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { in silk_PLC() 74 psDec->sPLC.fs_kHz = psDec->fs_kHz; in silk_PLC() 153 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update() 314 … 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 | 120 ( decControl->internalSampleRate == 1000*channel_state[ 0 ].fs_kHz ); in silk_Decode() 296 …mplesOut1_tmp[ 0 ], samplesOut1_tmp[ 1 ], MS_pred_Q13, channel_state[ 0 ].fs_kHz, nSamplesOutDec ); in silk_Decode() 304 …V32( nSamplesOutDec * decControl->API_sampleRate, silk_SMULBB( channel_state[ 0 ].fs_kHz, 1000 ) ); in silk_Decode() 348 …ol->prevPitchLag = channel_state[ 0 ].lagPrev * mult_tab[ ( channel_state[ 0 ].fs_kHz - 8 ) >> 2 ]; in silk_Decode()
|
/external/libopus/silk/ |
D | decoder_set_fs.c | 37 …opus_int fs_kHz, /* I Sampling frequency (kHz) … in silk_decoder_set_fs() argument 43 silk_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 */ 74 opus_int fs_kHz, ret = 0; in silk_control_encoder() local 89 if( psEnc->sCmn.API_fs_Hz != psEnc->sCmn.prev_API_fs_Hz && psEnc->sCmn.fs_kHz > 0 ) { in silk_control_encoder() 91 ret += silk_setup_resamplers( psEnc, psEnc->sCmn.fs_kHz ); in silk_control_encoder() 101 fs_kHz = silk_control_audio_bandwidth( &psEnc->sCmn, encControl ); in silk_control_encoder() 103 fs_kHz = force_fs_kHz; in silk_control_encoder() 108 ret += silk_setup_resamplers( psEnc, fs_kHz ); in silk_control_encoder() 113 ret += silk_setup_fs( psEnc, fs_kHz, encControl->payloadSize_ms ); in silk_control_encoder() 137 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 44 fs_kHz = psEncC->fs_kHz; in silk_control_audio_bandwidth() 45 fs_Hz = silk_SMULBB( fs_kHz, 1000 ); in silk_control_audio_bandwidth() 49 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 55 fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); in silk_control_audio_bandwidth() 64 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth() 79 fs_kHz = psEncC->fs_kHz == 16 ? 12 : 8; in silk_control_audio_bandwidth() 93 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth() 98 fs_kHz = psEncC->fs_kHz == 8 ? 12 : 16; in silk_control_audio_bandwidth() 125 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, 900 ); 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 | 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() 239 opus_int force_fs_kHz = (n==1) ? psEnc->state_Fxx[0].sCmn.fs_kHz : 0; in silk_Encode() 252 …->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->state_Fxx[ 1 ].sCmn.fs_kHz… in silk_Encode() 256 10 * nBlocksOf10ms * psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; in silk_Encode() 260 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 265 …SamplesToBuffer * psEnc->state_Fxx[ 0 ].sCmn.API_fs_Hz, psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); in silk_Encode() 282 …esToBuffer = silk_min( nSamplesToBuffer, 10 * nBlocksOf10ms * psEnc->state_Fxx[ 1 ].sCmn.fs_kHz ); in silk_Encode() 407 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode() 541 …encControl->inWBmodeWithoutVariableLP = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == 16 && psEnc->state_Fx… in silk_Encode() [all …]
|
D | control_SNR.c | 51 if( psEncC->fs_kHz == 8 ) { in silk_control_SNR() 53 } else if( psEncC->fs_kHz == 12 ) { in silk_control_SNR()
|
D | CNG.c | 93 if( psDec->fs_kHz != psCNG->fs_kHz ) { in silk_CNG() 97 psCNG->fs_kHz = psDec->fs_kHz; in silk_CNG()
|
D | structs.h | 152 …opus_int fs_kHz; /* Internal sampling frequency (kH… member 242 opus_int fs_kHz; member 254 opus_int fs_kHz; member 267 …opus_int fs_kHz; /* Sampling frequency in kHz … member
|
D | PLC.c | 72 if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { in silk_PLC() 74 psDec->sPLC.fs_kHz = psDec->fs_kHz; in silk_PLC() 153 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update() 314 … 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 | 120 ( decControl->internalSampleRate == 1000*channel_state[ 0 ].fs_kHz ); in silk_Decode() 296 …mplesOut1_tmp[ 0 ], samplesOut1_tmp[ 1 ], MS_pred_Q13, channel_state[ 0 ].fs_kHz, nSamplesOutDec ); in silk_Decode() 304 …V32( nSamplesOutDec * decControl->API_sampleRate, silk_SMULBB( channel_state[ 0 ].fs_kHz, 1000 ) ); in silk_Decode() 348 …ol->prevPitchLag = channel_state[ 0 ].lagPrev * mult_tab[ ( channel_state[ 0 ].fs_kHz - 8 ) >> 2 ]; in silk_Decode()
|
/external/libopus/silk/float/ |
D | noise_shape_analysis_FLP.c | 182 nSamples = 2 * psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP() 233 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FLP() 314 b = 0.2f / psEnc->sCmn.fs_kHz + 3.0f / psEncCtrl->pitchL[ k ]; in silk_noise_shape_analysis_FLP() 321 b = 1.3f / psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
|