Home
last modified time | relevance | path

Searched refs:bitrate (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dpsy_configuration.c193 const Word32 bitrate, in initSpreading() argument
203 if (bitrate > 22000) in initSpreading()
278 static void initMinSnr(const Word32 bitrate, in initMinSnr() argument
296 pePerWindow = bits2pe(extract_l((bitrate * numLines) / samplerate)); in initMinSnr()
345 Word16 InitPsyConfigurationLong(Word32 bitrate, in InitPsyConfigurationLong() argument
388 bitrate, in InitPsyConfigurationLong()
411 initMinSnr(bitrate, in InitPsyConfigurationLong()
429 Word16 InitPsyConfigurationShort(Word32 bitrate, in InitPsyConfigurationShort() argument
470 bitrate, in InitPsyConfigurationShort()
495 initMinSnr(bitrate, in InitPsyConfigurationShort()
Daacenc.c317 int ret, i, bitrate, tmp; in voAACEncSetParam() local
375 bitrate = config.bitRate / config.nChannelsOut; in voAACEncSetParam()
376 bitrate = bitrate * tmp / config.sampleRate; in voAACEncSetParam()
380 if (rates[i] >= bitrate) in voAACEncSetParam()
442 bitrate = config.bitRate / config.nChannelsOut; in voAACEncSetParam()
443 bitrate = bitrate * tmp / config.sampleRate; in voAACEncSetParam()
447 if (rates[i] >= bitrate) in voAACEncSetParam()
Daacenc_core.c121 qcInit.bitrate = config.bitRate; in AacEncOpen()
129 hAacEnc->bseInit.bitrate = config.bitRate; in AacEncOpen()
/frameworks/av/media/libstagefright/
DMP3Extractor.cpp148 int sample_rate, num_channels, bitrate; in Resync() local
151 &sample_rate, &num_channels, &bitrate)) { in Resync()
289 int bitrate; in MP3Extractor() local
291 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
312 mMeta->setInt32(kKeyBitRate, bitrate * 1000); in MP3Extractor()
341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; in MP3Extractor()
486 int32_t bitrate; in read() local
487 if (!mMeta->findInt32(kKeyBitRate, &bitrate)) { in read()
495 mCurrentPos = mFirstFramePos + seekTimeUs * bitrate / 8000000; in read()
512 int bitrate; in read() local
[all …]
Davc_utils.cpp625 int bitrate = in GetMPEGAudioFrameSize() local
631 *out_bitrate = bitrate; in GetMPEGAudioFrameSize()
634 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in GetMPEGAudioFrameSize()
657 int bitrate; in GetMPEGAudioFrameSize() local
659 bitrate = (layer == 2 /* L2 */) in GetMPEGAudioFrameSize()
669 bitrate = kBitrateV2[bitrate_index - 1]; in GetMPEGAudioFrameSize()
676 *out_bitrate = bitrate; in GetMPEGAudioFrameSize()
680 *frame_size = 144000 * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
684 *frame_size = tmp * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
DNuMediaExtractor.cpp188 int32_t bitrate; in updateDurationAndBitrate() local
189 if (!meta->findInt32(kKeyBitRate, &bitrate)) { in updateDurationAndBitrate()
196 mTotalBitrate += bitrate; in updateDurationAndBitrate()
536 bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const { in getTotalBitrate()
538 *bitrate = mTotalBitrate; in getTotalBitrate()
544 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec in getTotalBitrate()
556 int64_t bitrate; in getCachedDuration() local
566 && getTotalBitrate(&bitrate)) { in getCachedDuration()
574 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
DAwesomePlayer.cpp384 int32_t bitrate; in setDataSource_l() local
385 if (!meta->findInt32(kKeyBitRate, &bitrate)) { in setDataSource_l()
394 totalBitRate += bitrate; in setDataSource_l()
624 bool AwesomePlayer::getBitrate(int64_t *bitrate) { in getBitrate() argument
628 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec in getBitrate()
633 *bitrate = mBitrate; in getBitrate()
637 *bitrate = 0; in getBitrate()
644 int64_t bitrate; in getCachedDuration_l() local
646 if (mCachedSource != NULL && getBitrate(&bitrate) && (bitrate > 0)) { in getCachedDuration_l()
649 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration_l()
[all …]
DACodec.cpp1521 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) { in setupAMRCodec() argument
1534 def.eAMRBandMode = pickModeFromBitRate(isWAMR, bitrate); in setupAMRCodec()
1826 int32_t width, height, bitrate; in setupVideoEncoder() local
1829 || !msg->findInt32("bitrate", &bitrate)) { in setupVideoEncoder()
1906 video_def->nBitrate = bitrate; in setupVideoEncoder()
2005 int32_t bitrate, iFrameInterval; in setupMPEG4EncoderParameters() local
2006 if (!msg->findInt32("bitrate", &bitrate) in setupMPEG4EncoderParameters()
2076 err = configureBitrate(bitrate, bitrateMode); in setupMPEG4EncoderParameters()
2086 int32_t bitrate, iFrameInterval; in setupH263EncoderParameters() local
2087 if (!msg->findInt32("bitrate", &bitrate) in setupH263EncoderParameters()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp79 rc[n]->bitrate = LayerBitRate[n]; in RC_Initialize()
85 …e_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitrate / rc[n]->framerat… in RC_Initialize()
107 rc[n]->bitrate = LayerBitRate[n] - LayerBitRate[n-1]; in RC_Initialize()
116 …pMP[n]->counter_BTsrc = (Int)((rc[n]->Bs / 2.0 - rc[n]->Bs / 3.0) / (rc[n]->bitrate / rc[n]->frame… in RC_Initialize()
117 …rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framer… in RC_Initialize()
124 rc[n]->VBV_fullness = rc[n]->Bs - (Int)(video->encParams->VBV_delay * rc[n]->bitrate); in RC_Initialize()
136 pMP[n]->bitrate = rc[n]->bitrate; in RC_Initialize()
138 pMP[n]->target_bits_per_frame = pMP[n]->bitrate / pMP[n]->framerate; in RC_Initialize()
250 pMP->bitrate = rc->bitrate; /* calculated in RCVopQPSetting */ in RC_VopQPSetting()
324 (pMP->bitrate / (pMP->framerate + 0.0001) + 0.0001) / 0.1); in RC_VopUpdateStat()
[all …]
Drate_control.h88 Int bitrate; member
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
Dtns_func.h31 Word16 InitTnsConfigurationLong(Word32 bitrate,
38 Word16 InitTnsConfigurationShort(Word32 bitrate,
Dpsy_configuration.h94 Word16 InitPsyConfigurationLong(Word32 bitrate,
99 Word16 InitPsyConfigurationShort(Word32 bitrate,
Dbitenc.h34 Word32 bitrate; member
Dqc_data.h73 Word32 bitrate; member
/frameworks/av/libvideoeditor/vss/mcs/src/
DM4MCS_API.c129 M4OSA_Int32 level, M4OSA_Int32 bitrate);
131 M4OSA_Int32 level, M4OSA_Int32 bitrate);
133 M4OSA_Int32 level, M4OSA_Int32 bitrate);
10707 M4OSA_Int32 level, M4OSA_Int32 bitrate) { in M4MCS_intLimitBitrateForH264Enc() argument
10718 vidBitrate = (bitrate > 64000) ? 64000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
10722 vidBitrate = (bitrate > 128000) ? 128000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
10726 vidBitrate = (bitrate > 192000) ? 192000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
10730 vidBitrate = (bitrate > 384000) ? 384000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
10734 vidBitrate = (bitrate > 768000) ? 768000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
10738 vidBitrate = (bitrate > 2000000) ? 2000000 : bitrate; in M4MCS_intLimitBitrateForH264Enc()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp379 OMX_VIDEO_PARAM_BITRATETYPE *bitrate = in internalGetParameter() local
382 if (bitrate->nPortIndex != kOutputPortIndex) { in internalGetParameter()
386 bitrate->nTargetBitrate = mBitrate; in internalGetParameter()
389 bitrate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter()
391 bitrate->eControlRate = OMX_Video_ControlRateConstant; in internalGetParameter()
692 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate) { in internalSetBitrateParams() argument
693 if (bitrate->nPortIndex != kOutputPortIndex) { in internalSetBitrateParams()
697 mBitrate = bitrate->nTargetBitrate; in internalSetBitrateParams()
699 if (bitrate->eControlRate == OMX_Video_ControlRateVariable) { in internalSetBitrateParams()
701 } else if (bitrate->eControlRate == OMX_Video_ControlRateConstant) { in internalSetBitrateParams()
DSoftVPXEncoder.h199 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Davcenc_api.h150 uint32 bitrate; /* target encoding bit rate in bits/second */ member
312 OSCL_IMPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate);
Drate_control.cpp242 rateCtrl->pMP->bitrate = rateCtrl->bitRate; in InitRateControlModule()
244 rateCtrl->pMP->target_bits_per_frame = rateCtrl->pMP->bitrate / rateCtrl->pMP->framerate; in InitRateControlModule()
378 pMP->bitrate = rateCtrl->bitRate; /* calculated in RCVopQPSetting */ in RCInitFrameQP()
820 (pMP->bitrate / (pMP->framerate + 0.0001) + 0.0001) / 0.1); in RCUpdateFrame()
826 …rateCtrl->TMN_TH -= (int)((OsclFloat)pMP->bitrate / (pMP->framerate + 0.0001) * (diff_BTCounter * … in RCUpdateFrame()
Davcenc_int.h170 int bitrate; /* bitrate for current frame */ member
Davcenc_api.cpp684 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate) in PVAVCEncUpdateBitRate() argument
687 OSCL_UNUSED_ARG(bitrate); in PVAVCEncUpdateBitRate()
/frameworks/base/media/java/android/media/videoeditor/
DVideoEditor.java382 public void export(String filename, int height, int bitrate, in export() argument
425 public void export(String filename, int height, int bitrate, int audioCodec, in export() argument
DVideoEditorImpl.java338 public void export(String filename, int height, int bitrate, in export() argument
377 switch (bitrate) { in export()
406 final String message = "Unsupported bitrate value " + bitrate; in export()
412 final long fileSize = (mDurationMs * (bitrate + audioBitrate)) / 8000; in export()
457 mMANativeHelper.export(filename, mProjectPath, height,bitrate, in export()
471 public void export(String filename, int height, int bitrate, in export() argument
477 export(filename, height, bitrate, defaultAudiocodec, in export()
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.h71 void setVideoBitrate(int32_t bitrate);
/frameworks/av/include/media/stagefright/
DACodec.h278 int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode);

12