Lines Matching refs:decControl
134 …silk_DecControlStruct* decControl, /* I/O Control Structure … in silk_Decode() argument
161 celt_assert( decControl->nChannelsInternal == 1 || decControl->nChannelsInternal == 2 ); in silk_Decode()
167 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
173 if( decControl->nChannelsInternal > psDec->nChannelsInternal ) { in silk_Decode()
177 stereo_to_mono = decControl->nChannelsInternal == 1 && psDec->nChannelsInternal == 2 && in silk_Decode()
178 ( decControl->internalSampleRate == 1000*channel_state[ 0 ].fs_kHz ); in silk_Decode()
181 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
183 if( decControl->payloadSize_ms == 0 ) { in silk_Decode()
187 } else if( decControl->payloadSize_ms == 10 ) { in silk_Decode()
190 } else if( decControl->payloadSize_ms == 20 ) { in silk_Decode()
193 } else if( decControl->payloadSize_ms == 40 ) { in silk_Decode()
196 } else if( decControl->payloadSize_ms == 60 ) { in silk_Decode()
204 fs_kHz_dec = ( decControl->internalSampleRate >> 10 ) + 1; in silk_Decode()
210 … ret += silk_decoder_set_fs( &channel_state[ n ], fs_kHz_dec, decControl->API_sampleRate ); in silk_Decode()
214 …if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 2 && ( psDec->nChannelsAPI =… in silk_Decode()
219 psDec->nChannelsAPI = decControl->nChannelsAPI; in silk_Decode()
220 psDec->nChannelsInternal = decControl->nChannelsInternal; in silk_Decode()
222 …if( decControl->API_sampleRate > (opus_int32)MAX_API_FS_KHZ * 1000 || decControl->API_sampleRate <… in silk_Decode()
231 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
238 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
255 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
260 if( decControl->nChannelsInternal == 2 && n == 0 ) { in silk_Decode()
282 if( decControl->nChannelsInternal == 2 ) { in silk_Decode()
303 …if( decControl->nChannelsInternal == 2 && decode_only_middle == 0 && psDec->prev_decode_only_middl… in silk_Decode()
315 delay_stack_alloc = decControl->internalSampleRate*decControl->nChannelsInternal in silk_Decode()
316 < decControl->API_sampleRate*decControl->nChannelsAPI; in silk_Decode()
318 : decControl->nChannelsInternal*(channel_state[ 0 ].frame_length + 2 ), in silk_Decode()
333 …|| (decControl->nChannelsInternal == 2 && lostFlag == FLAG_DECODE_LBRR && channel_state[1].LBRR_fl… in silk_Decode()
335 channel_state[ 0 ].sPLC.enable_deep_plc = decControl->enable_deep_plc; in silk_Decode()
337 for( n = 0; n < decControl->nChannelsInternal; n++ ) { in silk_Decode()
356 if ( channel_state[n].osce.method != decControl->osce_method ) { in silk_Decode()
357 osce_reset( &channel_state[n].osce, decControl->osce_method ); in silk_Decode()
374 if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 2 ) { in silk_Decode()
384 …*nSamplesOut = silk_DIV32( nSamplesOutDec * decControl->API_sampleRate, silk_SMULBB( channel_state… in silk_Decode()
388 decControl->nChannelsAPI == 2 ? *nSamplesOut : ALLOC_NONE, opus_int16 ); in silk_Decode()
389 if( decControl->nChannelsAPI == 2 ) { in silk_Decode()
396 ? decControl->nChannelsInternal*(channel_state[ 0 ].frame_length + 2 ) in silk_Decode()
400 …OPUS_COPY(samplesOut1_tmp_storage2, samplesOut, decControl->nChannelsInternal*(channel_state[ 0 ].… in silk_Decode()
404 for( n = 0; n < silk_min( decControl->nChannelsAPI, decControl->nChannelsInternal ); n++ ) { in silk_Decode()
410 if( decControl->nChannelsAPI == 2 ) { in silk_Decode()
418 if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 1 ) { in silk_Decode()
437 …decControl->prevPitchLag = channel_state[ 0 ].lagPrev * mult_tab[ ( channel_state[ 0 ].fs_kHz - 8 … in silk_Decode()
439 decControl->prevPitchLag = 0; in silk_Decode()