Lines Matching refs:bitRate
111 const INT bitRate,
123 return (bitRate*(frameLength>>shift)) / (samplingRate>>shift);
143 static AAC_ENCODER_ERROR FDKaacEnc_InitCheckAncillary(INT bitRate,
155 INT bitRate,
171 prevBitRate = bitRate;
172 averageBitsPerFrame = (bitRate*(frameLength>>shift)) / (coreSamplingRate>>shift) / nSubFrames;
185 bitRate = FDKmax(bitRate, ((((40 * nChannels) + transportBits) * (coreSamplingRate)) / frameLength) );
186 FDK_ASSERT(bitRate >= 0);
188 bitRate = FDKmin(bitRate, ((nChannelsEff * MIN_BUFSIZE_PER_EFF_CHAN)*(coreSamplingRate>>shift)) / (frameLength>>shift)) ;
189 FDK_ASSERT(bitRate >= 0);
191 } while (prevBitRate != bitRate && iter++ < 3) ;
193 return bitRate;
215 description: Get VBR bitrate from vbr quality
218 returns: vbr bitrate
223 INT bitrate = 0;
236 bitrate = configTabVBR[bitrateMode].chanBitrate[monoStereoMode];
243 bitrate = 0;
247 /* convert channel bitrate to overall bitrate*/
248 bitrate *= FDKaacEnc_GetChannelModeConfiguration(channelMode)->nChannelsEff;
250 return bitrate;
275 transporBitreservoir = FDK_INT_MAX; /* signal variable bitrate */
308 config->ancDataBitRate = 0; /* no additional consumed bitrate */
311 config->bitRate = -1; /* bitrate must be set*/
312 config->averageBits = -1; /* instead of bitrate/s we can configure bits/superframe */
456 /* bitrate has to be set */
457 bitRate==-1) {
469 config->bitRate,
474 ) != config->bitRate
512 ErrorStatus = FDKaacEnc_InitCheckAncillary(config->bitRate,
521 /* update estimated consumed bitrate */
531 encBitrate = (config->bitRate/*-config->ancDataBitRate*/)- (INT)(config->nChannels*8000);
552 config->bitRate - config->ancDataBitRate,
564 psyBitrate = config->bitRate - config->ancDataBitRate;
685 qcInit.bitrate = config->bitRate - config->ancDataBitRate;
839 /* granted frame dse bitrate */
843 /* write anc data if bitrate constraint fulfilled */
889 /* frame wise bitrate adaption */
893 hAacEnc->config->bitRate,
897 /* adjust super frame bitrate */
1024 static AAC_ENCODER_ERROR FDKaacEnc_InitCheckAncillary(INT bitRate,
1038 /* ancRate <= 15% of bitrate && ancRate < 19200 */
1040 ( (ancillaryRate * 20) > (bitRate * 3) ) ) {
1046 stated, then generate a ancillary rate matching to the bitrate */
1047 if (bitRate >= (MAX_ANCRATE * 10)) {
1051 else { /* 10% of bitrate */
1052 ancillaryRate = bitRate / 10;