Lines Matching refs:bitrate
157 channels, bitrate, sample rate and core coder
164 getSbrTuningTableIndex(UINT bitrate, /*! the total bitrate in bits/sec */
185 if ((bitrate >= sbrTuningTable [i].bitrateFrom) &&
186 (bitrate < sbrTuningTable [i].bitrateTo)) {
187 bitRateClosestLower = bitrate;
188 bitRateClosestUpper = bitrate;
192 if ( sbrTuningTable [i].bitrateFrom > bitrate ) {
198 if ( sbrTuningTable [i].bitrateTo <= bitrate ) {
216 distanceLower = sbrTuningTable [bitRateClosestLowerIndex].bitrateFrom - bitrate;
219 distanceUpper = bitrate - sbrTuningTable [bitRateClosestUpperIndex].bitrateTo;
238 \brief Selects the PS tuning settings to use dependent on bitrate
245 getPsTuningTableIndex(UINT bitrate, UINT *pBitRateClosest){
252 if ((bitrate >= psTuningTable [i].bitrateFrom) &&
253 (bitrate < psTuningTable [i].bitrateTo)) {
256 if ( psTuningTable [i].bitrateFrom > bitrate ) {
262 if ( psTuningTable [i].bitrateTo <= bitrate ) {
275 distanceLower = sbrTuningTable [bitRateClosestLowerIndex].bitrateFrom - bitrate;
278 distanceUpper = bitrate - sbrTuningTable [bitRateClosestUpperIndex].bitrateTo;
341 \brief tells us, if for the given coreCoder, bitrate, number of channels
350 UINT bitrate, /*! the total bitrate in bits/sec */
351 UINT vbrMode, /*! the vbr paramter, 0 means constant bitrate */
363 if (bitrate==0) {
364 /* map vbr quality to bitrate */
366 bitrate = 24000;
368 bitrate = 28000;
370 bitrate = 32000;
372 bitrate = 40000;
374 bitrate = 48000;
375 bitrate *= numOutputChannels;
378 idx = getSbrTuningTableIndex(bitrate, numOutputChannels, sampleRateCore, core, NULL);
395 UINT bitRate, /*! the total bitrate in bits/sec */
400 UINT standardBitrate, /*! the standard bitrate per channel in bits/sec */
409 config->codecSettings.bitRate = bitRate;
415 if (bitRate < 28000) {
419 else if (bitRate >= 28000 && bitRate <= 48000) {
427 else if (bitRate > 48000) {
432 if (bitRate==0) {
433 /* map vbr quality to bitrate */
435 bitRate = 24000;
437 bitRate = 28000;
439 bitRate = 32000;
441 bitRate = 40000;
443 bitRate = 48000;
444 bitRate *= numChannels;
448 if (vbrMode<40) bitRate = 32000;
453 idx = getSbrTuningTableIndex(bitRate,numChannels,sampleRateCore, core, NULL);
491 if (bitRate <= (useSpeechConfig?24000U:20000U)) {
497 if (bitRate < 36000)
499 if (bitRate < 26000) {
512 if (bitRate <= 28000) {
518 if (bitRate < 72000) {
521 if (bitRate < 52000) {
529 if (bitRate <= 28000) {
538 /* adjust usage of parametric coding dependent on bitrate and speech config flag */
543 if (bitRate < 28000)
549 if (bitRate < 16000) {
554 if (bitRate < 20000) {
1866 bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE aot)
1874 index = getPsTuningTableIndex(bitRate, &newBitRate);
1876 bitRate = newBitRate;
1884 index = getSbrTuningTableIndex(bitRate, numChannels, coreSampleRate, aot, &newBitRate);
1886 newBitRate = bitRate;
1935 /* check whether SBR setting is available for the current encoder configuration (bitrate, samplerate) */
1981 /* check whether SBR setting is available for the current encoder configuration (bitrate, coreSampleRate) */
1994 if ( !FDKsbrEnc_IsSbrSettingAvail (elInfo[coreEl].bitRate, 0, elInfo[coreEl].nChannelsInEl, inputSampleRate, *coreSampleRate, aot) )
2112 elInfo[coreEl].bitRate,
2211 /* Estimate sbr bitrate, 2.5 kBit/s per sbr channel */
2219 INT psTuningTableIdx = getPsTuningTableIndex(elInfo[0].bitRate, NULL);