Searched refs:bitrate (Results 1 - 25 of 35) 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.c323 int ret, i, bitrate, tmp; local
365 /* check the bitrate */
381 bitrate = config.bitRate / config.nChannelsOut;
382 bitrate = bitrate * tmp / config.sampleRate;
386 if (rates[i] >= bitrate)
448 bitrate = config.bitRate / config.nChannelsOut;
449 bitrate = bitrate * tmp / config.sampleRate;
453 if (rates[i] >= bitrate)
[all...]
H A Daacenc_core.c120 qcInit.bitrate = config.bitRate;
128 hAacEnc->bseInit.bitrate = config.bitRate;
173 /* adjust bitrate and frame length */
/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)) {
302 // result in an extra 1152 samples being output. In addition, the bitrate
309 int bitrate; local
311 header, &frame_size, &sample_rate, &num_channels, &bitrate);
324 int bitrate; local
326 header, &frame_size, &sample_rate, &num_channels, &bitrate);
345 mMeta->setInt32(kKeyBitRate, bitrate * 1000);
353 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate;
499 int32_t bitrate; local
525 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.cpp637 // Disallow "free" bitrate.
670 int bitrate = local
676 *out_bitrate = bitrate;
679 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
702 int bitrate; local
704 bitrate = (layer == 2 /* L2 */)
714 bitrate = kBitrateV2[bitrate_index - 1];
721 *out_bitrate = bitrate;
725 *frame_size = 144000 * bitrate / sampling_rate + padding;
729 *frame_size = tmp * bitrate / sampling_rat
[all...]
H A DMediaCodecListOverrides.cpp75 static void getMeasureBitrate(sp<MediaCodecInfo::Capabilities> caps, int32_t *bitrate) { argument
78 *bitrate = 200000;
80 if (!caps->getDetails()->findString("bitrate-range", &bitrateRange)) {
89 *bitrate = strtol(minBitrate.c_str(), NULL, 10);
98 int32_t bitrate = 0; local
99 getMeasureBitrate(caps, &bitrate);
100 format->setInt32("bitrate", bitrate);
H A DAwesomePlayer.cpp395 // Attempt to approximate overall stream bitrate by summing all
396 // tracks' individual bitrates, if not all of them advertise bitrate,
405 int32_t bitrate; local
406 if (!meta->findInt32(kKeyBitRate, &bitrate)) {
409 ALOGV("track of type '%s' does not publish bitrate", mime);
415 totalBitRate += bitrate;
653 bool AwesomePlayer::getBitrate(int64_t *bitrate) { argument
657 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec
662 *bitrate = mBitrate;
666 *bitrate
673 int64_t bitrate; local
[all...]
H A DACodec.cpp1643 // FLAC encoder doesn't need a bitrate, other encoders do
1645 && !msg->findInt32("bitrate", &bitRate)) {
2561 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) { argument
2574 def.eAMRBandMode = pickModeFromBitRate(isWAMR, bitrate);
2978 int32_t width, height, bitrate; local
2981 || !msg->findInt32("bitrate", &bitrate)) {
3063 video_def->nBitrate = bitrate;
3159 if (!msg->findInt32("bitrate-mode", &tmp)) {
3167 int32_t bitrate, iFrameInterva local
3248 int32_t bitrate, iFrameInterval; local
3324 getAVCLevelFor( int width, int height, int rate, int bitrate, OMX_VIDEO_AVCPROFILETYPE profile) argument
3376 int32_t bitrate, iFrameInterval; local
3484 int32_t bitrate, iFrameInterval; local
3540 int32_t bitrate; local
3645 configureBitrate( int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode) argument
[all...]
/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:__anon465
/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/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp265 int32_t bitrate; local
266 if (totalBitrate >= 0 && meta->findInt32(kKeyBitRate, &bitrate)) {
267 totalBitrate += bitrate;
686 int64_t bitrate = 0ll; local
688 bitrate = size * 8000000ll / mDurationUs;
690 bitrate = mBitrate;
692 if (bitrate > 0) {
693 cachedDurationUs = cachedDataRemaining * 8000000ll / bitrate;
/frameworks/av/include/media/stagefright/
H A DACodec.h91 int width, int height, int rate, int bitrate,
373 int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode);
/frameworks/av/media/libstagefright/codecs/avcenc/
H A DSoftAVCEnc.h157 // If a request for a change it bitrate has been received.
214 // Updates bitrate to reflect port settings.
216 const OMX_VIDEO_PARAM_BITRATETYPE *bitrate);

Completed in 347 milliseconds

12