• Home
  • Raw
  • Download

Lines Matching refs:encControl

142 …silk_EncControlStruct           *encControl,        /* I    Control status                        …  in silk_Encode()  argument
161 if (encControl->reducedDependency) in silk_Encode()
169 if( ( ret = check_control_input( encControl ) ) != 0 ) { in silk_Encode()
175 encControl->switchReady = 0; in silk_Encode()
177 if( encControl->nChannelsInternal > psEnc->nChannelsInternal ) { in silk_Encode()
194 …transition = (encControl->payloadSize_ms != psEnc->state_Fxx[ 0 ].sCmn.PacketSize_ms) || (psEnc->n… in silk_Encode()
196 psEnc->nChannelsAPI = encControl->nChannelsAPI; in silk_Encode()
197 psEnc->nChannelsInternal = encControl->nChannelsInternal; in silk_Encode()
199 nBlocksOf10ms = silk_DIV32( 100 * nSamplesIn, encControl->API_sampleRate ); in silk_Encode()
216 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
224 tmp_payloadSize_ms = encControl->payloadSize_ms; in silk_Encode()
225 encControl->payloadSize_ms = 10; in silk_Encode()
226 tmp_complexity = encControl->complexity; in silk_Encode()
227 encControl->complexity = 0; in silk_Encode()
228 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
234 if( nBlocksOf10ms * encControl->API_sampleRate != 100 * nSamplesIn || nSamplesIn < 0 ) { in silk_Encode()
240 … if( 1000 * (opus_int32)nSamplesIn > encControl->payloadSize_ms * encControl->API_sampleRate ) { in silk_Encode()
247 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
250 …if( ( ret = silk_control_encoder( &psEnc->state_Fxx[ n ], encControl, psEnc->allowBandwidthSwitch,… in silk_Encode()
262 …celt_assert( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->sta… in silk_Encode()
277 if( encControl->nChannelsAPI == 2 && encControl->nChannelsInternal == 2 ) { in silk_Encode()
300 } else if( encControl->nChannelsAPI == 2 && encControl->nChannelsInternal == 1 ) { in silk_Encode()
320 celt_assert( encControl->nChannelsAPI == 1 && encControl->nChannelsInternal == 1 ); in silk_Encode()
327 samplesIn += nSamplesFromInput * encControl->nChannelsAPI; in silk_Encode()
337 …celt_assert( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 1 ].sCmn.inputBufIx == psEnc-… in silk_Encode()
343 …ilk_RSHIFT( 256, ( psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket + 1 ) * encControl->nChannelsIntern… in silk_Encode()
348 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
361 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
365 if( encControl->nChannelsInternal == 2 && n == 0 ) { in silk_Encode()
386 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
396 … nBits = silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms ), 1000 ); in silk_Encode()
404 if( encControl->payloadSize_ms == 10 ) { in silk_Encode()
417 TargetRate_bps = silk_LIMIT( TargetRate_bps, encControl->bitRate, 5000 ); in silk_Encode()
420 if( encControl->nChannelsInternal == 2 ) { in silk_Encode()
423 …targetRates_bps, TargetRate_bps, psEnc->state_Fxx[ 0 ].sCmn.speech_activity_Q8, encControl->toMono, in silk_Encode()
457 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
461 maxBits = encControl->maxBits; in silk_Encode()
471 useCBR = encControl->useCBR && curr_block == tot_blocks - 1; in silk_Encode()
473 if( encControl->nChannelsInternal == 1 ) { in silk_Encode()
480 maxBits -= encControl->maxBits / ( tot_blocks * 2 ); in silk_Encode()
512 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
521 …RangeEnc, flags, ( psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket + 1 ) * encControl->nChannelsIntern… in silk_Encode()
525 …if( psEnc->state_Fxx[ 0 ].sCmn.inDTX && ( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ … in silk_Encode()
530 …psEnc->nBitsExceeded -= silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms )… in silk_Encode()
541 psEnc->timeSinceSwitchAllowed_ms += encControl->payloadSize_ms; in silk_Encode()
554 psEnc->nPrevChannelsInternal = encControl->nChannelsInternal; in silk_Encode()
556 encControl->allowBandwidthSwitch = psEnc->allowBandwidthSwitch; in silk_Encode()
557encControl->inWBmodeWithoutVariableLP = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == 16 && psEnc->state_Fx… in silk_Encode()
558 encControl->internalSampleRate = silk_SMULBB( psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, 1000 ); in silk_Encode()
559 encControl->stereoWidth_Q14 = encControl->toMono ? 0 : psEnc->sStereo.smth_width_Q14; in silk_Encode()
561 encControl->payloadSize_ms = tmp_payloadSize_ms; in silk_Encode()
562 encControl->complexity = tmp_complexity; in silk_Encode()
563 for( n = 0; n < encControl->nChannelsInternal; n++ ) { in silk_Encode()
569 encControl->signalType = psEnc->state_Fxx[0].sCmn.indices.signalType; in silk_Encode()
570 encControl->offset = silk_Quantization_Offsets_Q10 in silk_Encode()