Lines Matching refs:bitRate
247 ULONG bitrateRange; /*!< Lower bitrate range for config entry. */
283 * This function finds default SBR configuration for ELD based on sampling rate and channel bitrate.
288 * \param totalBitrate Overall bitrate.
463 cc->bitRate = hAacConfig->bitRate;
556 config->userBitrate = hAacConfig->bitRate;
597 void aacEncDistributeSbrBits(CHANNEL_MAPPING *channelMapping, SBR_ELEMENT_INFO *sbrElInfo, INT bitRate)
599 INT codebits = bitRate;
607 sbrElInfo[el].bitRate = (INT)(fMultNorm(channelMapping->elInfo[el].relativeBits, (FIXP_DBL)bitRate));
611 codebits -= sbrElInfo[el].bitRate;
613 sbrElInfo[0].bitRate += codebits;
624 INT bitRate,
644 bitRate = FDKmin(360000*nChannels, bitRate);
645 bitRate = FDKmax(8000*nChannels, bitRate);
649 bitRate = FDKmin(576000*nChannels, bitRate);
650 /*bitRate = FDKmax(0*nChannels, bitRate);*/
655 bitRate = FDKaacEnc_LimitBitrate(
661 bitRate,
673 initialBitrate = adjustedBitrate = bitRate;
675 /* Find total bitrate which provides valid configuration for each SBR element. */
693 sbrElementBitRateIn = sbrElInfo[e].bitRate;
700 Abort element loop and restart with adapted bitrate. */
721 /* Unequal bitrates mean that no reasonable bitrate configuration found. */
722 bitRate = (initialBitrate==adjustedBitrate) ? adjustedBitrate : 0;
725 FDK_ASSERT(bitRate > 0);
727 return bitRate;
755 hAacConfig->bitRate = config->userBitrate;
817 /* bitreservoir = (maxBitRes-minBitRes)/(maxBitRate-minBitrate)*(bitRate-minBitrate)+minBitRes; */
820 INT brPerChannel = hAacConfig->bitRate/hAacConfig->nChannels;
835 hAacConfig->bitRate = config->userBitrate;
837 /* get bitrate in VBR configuration */
839 /* In VBR mode; SBR-modul depends on bitrate, core encoder on bitrateMode. */
840 hAacConfig->bitRate = FDKaacEnc_GetVBRBitrate(hAacConfig->bitrateMode, hAacConfig->channelMode);
845 /* Set default bitrate if no external bitrate declared. */
847 INT bitrate = FDKaacEnc_GetChannelModeConfiguration(hAacConfig->channelMode)->nChannelsEff * hAacConfig->sampleRate;
850 hAacConfig->bitRate = (bitrate>>1); /* 0.5 bit per sample */
855 hAacConfig->bitRate = (bitrate + (bitrate>>2))>>1; /* 0.625 bits per sample */
858 hAacConfig->bitRate = (bitrate + (bitrate>>3)); /* 1.125 bits per sample */
862 hAacConfig->bitRate = bitrate + (bitrate>>1); /* 1.5 bits per sample */
868 hAacConfig->maxBitsPerFrame = (FDKaacEnc_CalcBitsPerFrame(fMax(hAacConfig->bitRate
874 hAacConfig->minBitsPerFrame = fMin(32*8, FDKaacEnc_CalcBitsPerFrame(hAacConfig->bitRate, hAacConfig->framelength, hAacConfig->sampleRate))&~7;
888 hAacConfig->bitRate,
931 hAacConfig->bitRate = aacEncoder_LimitBitrate(
937 hAacConfig->bitRate,
1075 aacEncDistributeSbrBits(&channelMapping, sbrElInfo, hAacConfig->bitRate);
1113 /* estimated bitrate consumed by SBR or PS */
2043 value = (UINT)((hAacEncoder->aacConfig.bitrateMode==AACENC_BR_MODE_CBR) ? hAacEncoder->aacConfig.bitRate : -1);
2100 value = (UINT)-1; /* peak bitrate parameter is meaningless */
2102 value = (UINT)(fMax((INT)hAacEncoder->extParam.userPeakBitrate, hAacEncoder->aacConfig.bitRate)); /* peak bitrate parameter is in use */