Searched refs:bitrate (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitenc.h34 Word32 bitrate; member in struct:BITSTREAMENCODER_INIT
H A Dpsy_configuration.h94 Word16 InitPsyConfigurationLong(Word32 bitrate,
99 Word16 InitPsyConfigurationShort(Word32 bitrate,
H A Dtns_func.h31 Word16 InitTnsConfigurationLong(Word32 bitrate,
38 Word16 InitTnsConfigurationShort(Word32 bitrate,
H A Dqc_data.h73 Word32 bitrate; member in struct:QC_INIT
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_configuration.c193 const Word32 bitrate,
203 if (bitrate > 22000)
278 static void initMinSnr(const Word32 bitrate, argument
296 pePerWindow = bits2pe(extract_l((bitrate * numLines) / samplerate));
345 Word16 InitPsyConfigurationLong(Word32 bitrate, argument
388 bitrate,
411 initMinSnr(bitrate,
429 Word16 InitPsyConfigurationShort(Word32 bitrate, argument
470 bitrate,
495 initMinSnr(bitrate,
187 initSpreading(Word16 numPb, Word16 *pbBarcValue, Word16 *pbMaskLoFactor, Word16 *pbMaskHiFactor, Word16 *pbMaskLoFactorSprEn, Word16 *pbMaskHiFactorSprEn, const Word32 bitrate, const Word16 blockType) argument
[all...]
H A Daacenc.c321 int ret, i, bitrate, tmp; local
363 /* check the bitrate */
379 bitrate = config.bitRate / config.nChannelsOut;
380 bitrate = bitrate * tmp / config.sampleRate;
384 if (rates[i] >= bitrate)
446 bitrate = config.bitRate / config.nChannelsOut;
447 bitrate = bitrate * tmp / config.sampleRate;
451 if (rates[i] >= bitrate)
[all...]
H A Daacenc_core.c121 qcInit.bitrate = config.bitRate;
129 hAacEnc->bseInit.bitrate = config.bitRate;
174 /* adjust bitrate and frame length */
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Drate_control.cpp41 PV_STATUS RC_UpdateBXRCParams(void *input); Parameters update for target bitrate or framerate change
79 rc[n]->bitrate = LayerBitRate[n];
85 rc[n]->max_BitVariance_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitrate / rc[n]->framerate / 10.0)) - 5;
107 rc[n]->bitrate = LayerBitRate[n] - LayerBitRate[n-1];
116 pMP[n]->counter_BTsrc = (Int)((rc[n]->Bs / 2.0 - rc[n]->Bs / 3.0) / (rc[n]->bitrate / rc[n]->framerate / 10.0));
117 rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framerate / 10.0));
124 rc[n]->VBV_fullness = rc[n]->Bs - (Int)(video->encParams->VBV_delay * rc[n]->bitrate);
135 /* Setting the bitrate and framerate */
136 pMP[n]->bitrate = rc[n]->bitrate;
[all...]
H A Drate_control.h85 Int max_BitVariance_num; /* the number of the maximum bit variance within the given buffer with the unit of 10% of bitrate/framerate*/
88 Int bitrate; member in struct:__anon449
H A Dmp4lib_int.h269 Int bitrate; /* bitrate for current frame */ member in struct:tagMultiPass
295 /* For target bitrate or framerate update */
296 float target_bits_per_frame; /* = C = bitrate/framerate */
/frameworks/av/media/libstagefright/
H A DMP3Extractor.cpp43 // protection, bitrate, padding, private bits, mode, mode extension,
148 int sample_rate, num_channels, bitrate; local
151 &sample_rate, &num_channels, &bitrate)) {
289 int bitrate; local
291 header, &frame_size, &sample_rate, &num_channels, &bitrate);
312 mMeta->setInt32(kKeyBitRate, bitrate * 1000);
341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate;
487 int32_t bitrate; local
488 if (!mMeta->findInt32(kKeyBitRate, &bitrate)) {
489 // bitrate i
513 int bitrate; local
[all...]
H A DNuMediaExtractor.cpp190 int32_t bitrate; local
191 if (!meta->findInt32(kKeyBitRate, &bitrate)) {
194 ALOGV("track of type '%s' does not publish bitrate", mime);
198 mTotalBitrate += bitrate;
538 bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const {
540 *bitrate = mTotalBitrate;
546 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec
558 int64_t bitrate; local
568 && getTotalBitrate(&bitrate)) {
576 *durationUs = cachedDataRemaining * 8000000ll / bitrate;
[all...]
H A Davc_utils.cpp622 // Disallow "free" bitrate.
655 int bitrate = local
661 *out_bitrate = bitrate;
664 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
687 int bitrate; local
689 bitrate = (layer == 2 /* L2 */)
699 bitrate = kBitrateV2[bitrate_index - 1];
706 *out_bitrate = bitrate;
710 *frame_size = 144000 * bitrate / sampling_rate + padding;
714 *frame_size = tmp * bitrate / sampling_rat
[all...]
H A DACodec.cpp1187 // FLAC encoder doesn't need a bitrate, other encoders do
1189 && !msg->findInt32("bitrate", &bitRate)) {
2016 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) { argument
2029 def.eAMRBandMode = pickModeFromBitRate(isWAMR, bitrate);
2431 int32_t width, height, bitrate; local
2434 || !msg->findInt32("bitrate", &bitrate)) {
2516 video_def->nBitrate = bitrate;
2610 if (!msg->findInt32("bitrate-mode", &tmp)) {
2618 int32_t bitrate, iFrameInterva local
2699 int32_t bitrate, iFrameInterval; local
2775 getAVCLevelFor( int width, int height, int rate, int bitrate, OMX_VIDEO_AVCPROFILETYPE profile) argument
2827 int32_t bitrate, iFrameInterval; local
2935 int32_t bitrate, iFrameInterval; local
2991 int32_t bitrate; local
3096 configureBitrate( int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode) argument
[all...]
H A DAwesomePlayer.cpp393 // Attempt to approximate overall stream bitrate by summing all
394 // tracks' individual bitrates, if not all of them advertise bitrate,
403 int32_t bitrate; local
404 if (!meta->findInt32(kKeyBitRate, &bitrate)) {
407 ALOGV("track of type '%s' does not publish bitrate", mime);
413 totalBitRate += bitrate;
651 bool AwesomePlayer::getBitrate(int64_t *bitrate) { argument
655 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec
660 *bitrate = mBitrate;
664 *bitrate
671 int64_t bitrate; local
[all...]
/frameworks/av/media/libstagefright/codecs/on2/enc/
H A DSoftVPXEncoder.cpp74 mBitrateControlMode(VPX_VBR), // variable bitrate
166 // bitrate - expressed as percentage of the target bitrate.
169 // bitrate - expressed as percentage of the target bitrate.
253 // Set bitrate values for each layer
359 OMX_VIDEO_PARAM_BITRATETYPE *bitrate = local
362 if (bitrate->nPortIndex != kOutputPortIndex) {
366 bitrate->nTargetBitrate = mBitrate;
369 bitrate
552 internalSetBitrateParams( const OMX_VIDEO_PARAM_BITRATETYPE* bitrate) argument
[all...]
H A DSoftVPXEncoder.h41 // - target bitrate
158 // If a request for a change it bitrate has been received.
232 // Updates bitrate to reflect port settings.
234 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Davcenc_api.h150 uint32 bitrate; /* target encoding bit rate in bits/second */ member in struct:tagAVCEncParam
312 OSCL_IMPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate);
H A Drate_control.cpp241 /* Setting the bitrate and framerate */
242 rateCtrl->pMP->bitrate = rateCtrl->bitRate;
244 rateCtrl->pMP->target_bits_per_frame = rateCtrl->pMP->bitrate / rateCtrl->pMP->framerate;
378 pMP->bitrate = rateCtrl->bitRate; /* calculated in RCVopQPSetting */
607 /* Second, set another upper bound for current bit allocation: 4-5*bitrate/framerate */
820 (pMP->bitrate / (pMP->framerate + 0.0001) + 0.0001) / 0.1);
826 rateCtrl->TMN_TH -= (int)((OsclFloat)pMP->bitrate / (pMP->framerate + 0.0001) * (diff_BTCounter * 0.1));
H A Davcenc_int.h170 int bitrate; /* bitrate for current frame */ member in struct:tagMultiPass
196 /* For target bitrate or framerate update */
197 OsclFloat target_bits_per_frame; /* = C = bitrate/framerate */
219 /* bitrate-robustness tradeoff */
313 int max_BitVariance_num; /* the number of the maximum bit variance within the given buffer with the unit of 10% of bitrate/framerate*/
H A Davcenc_api.cpp684 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate) argument
687 OSCL_UNUSED_ARG(bitrate);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.h71 void setVideoBitrate(int32_t bitrate);
/frameworks/av/include/media/stagefright/
H A DACodec.h86 int width, int height, int rate, int bitrate,
312 int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp256 int32_t bitrate; local
257 if (totalBitrate >= 0 && meta->findInt32(kKeyBitRate, &bitrate)) {
258 totalBitrate += bitrate;
721 int64_t bitrate = 0ll; local
723 bitrate = size * 8000000ll / mDurationUs;
725 bitrate = mBitrate;
727 if (bitrate > 0) {
728 cachedDurationUs = cachedDataRemaining * 8000000ll / bitrate;
/frameworks/av/media/libstagefright/include/
H A DAwesomePlayer.h206 int64_t mBitrate; // total bitrate of the file (in bps) or -1 if unknown.
299 bool getBitrate(int64_t *bitrate);

Completed in 216 milliseconds

12