Lines Matching refs:bitRate
122 INT FDKaacEnc_CalcBitsPerFrame(const INT bitRate, const INT frameLength, in FDKaacEnc_CalcBitsPerFrame() argument
130 return (bitRate * (frameLength >> shift)) / (samplingRate >> shift); in FDKaacEnc_CalcBitsPerFrame()
145 INT bitRate, INT framelength, INT ancillaryRate, INT *ancillaryBitsPerFrame,
150 INT nChannelsEff, INT bitRate, INT averageBits, in FDKaacEnc_LimitBitrate() argument
160 prevBitRate = bitRate; in FDKaacEnc_LimitBitrate()
162 FDKaacEnc_CalcBitsPerFrame(bitRate, frameLength, coreSamplingRate) / in FDKaacEnc_LimitBitrate()
176 bitRate = fMax(bitRate, in FDKaacEnc_LimitBitrate()
180 FDK_ASSERT(bitRate >= 0); in FDKaacEnc_LimitBitrate()
182 bitRate = fMin(bitRate, FDKaacEnc_CalcBitrate( in FDKaacEnc_LimitBitrate()
185 FDK_ASSERT(bitRate >= 0); in FDKaacEnc_LimitBitrate()
187 } while (prevBitRate != bitRate && iter++ < 3); in FDKaacEnc_LimitBitrate()
189 return bitRate; in FDKaacEnc_LimitBitrate()
304 config->bitRate = -1; /* bitrate must be set*/ in FDKaacEnc_AacInitDefaultConfig()
430 if (config->bitRate == -1) { in FDKaacEnc_Initialize()
441 config->bitRate, config->averageBits, &averageBitsPerFrame, in FDKaacEnc_Initialize()
442 config->bitrateMode, config->nSubFrames) != config->bitRate && in FDKaacEnc_Initialize()
477 config->bitRate, config->framelength, config->anc_Rate, in FDKaacEnc_Initialize()
490 (config->bitRate - (config->nChannels * 8000)), in FDKaacEnc_Initialize()
509 config->bandWidth, config->bitRate - config->ancDataBitRate, in FDKaacEnc_Initialize()
517 psyBitrate = config->bitRate - config->ancDataBitRate; in FDKaacEnc_Initialize()
555 INT brPerChannel = config->bitRate / config->nChannels; in FDKaacEnc_Initialize()
692 qcInit.bitrate = config->bitRate - config->ancDataBitRate; in FDKaacEnc_Initialize()
889 hAacEnc->qcKernel, cm, &avgTotalBits, hAacEnc->config->bitRate, in FDKaacEnc_EncodeFrame()
997 INT bitRate, INT framelength, INT ancillaryRate, INT *ancillaryBitsPerFrame, in FDKaacEnc_InitCheckAncillary() argument
1006 ((ancillaryRate * 20) > (bitRate * 3))) { in FDKaacEnc_InitCheckAncillary()
1012 if (bitRate >= (MAX_ANCRATE * 10)) { in FDKaacEnc_InitCheckAncillary()
1016 ancillaryRate = bitRate / 10; in FDKaacEnc_InitCheckAncillary()