Home
last modified time | relevance | path

Searched refs:bitRate (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/aacenc/src/
Daacenc.c145 config.bitRate = 128000; in voAACEncInit()
337 config.bitRate = pAAC_param->bitRate; in voAACEncSetParam()
366 if(config.bitRate!=0 && ((config.bitRate/config.nChannelsOut < 4000) || in voAACEncSetParam()
367 (config.bitRate/config.nChannelsOut > 160000) || in voAACEncSetParam()
368 (config.bitRate > config.sampleRate*6*config.nChannelsOut))) in voAACEncSetParam()
370 config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut; in voAACEncSetParam()
372 if(config.bitRate/config.nChannelsOut < 4000) in voAACEncSetParam()
373 config.bitRate = 4000 * config.nChannelsOut; in voAACEncSetParam()
374 else if(config.bitRate > config.sampleRate*6*config.nChannelsOut) in voAACEncSetParam()
375 config.bitRate = config.sampleRate*6*config.nChannelsOut; in voAACEncSetParam()
[all …]
Daacenc_core.c46 config->bitRate = 128000; in AacInitDefaultConfig()
90 config.bitRate, in AacEncOpen()
110 qcInit.averageBits = (Word16) ((config.bitRate * FRAME_LEN_LONG) / config.sampleRate); in AacEncOpen()
120 qcInit.bitrate = config.bitRate; in AacEncOpen()
128 hAacEnc->bseInit.bitrate = config.bitRate; in AacEncOpen()
175 aacEnc->config.bitRate, in AacEncEncode()
Dqc_main.c61 static Word16 calcFrameLen(Word32 bitRate, in calcFrameLen() argument
69 result = (FRAME_LEN_LONG >> 3) * bitRate; in calcFrameLen()
90 static Word16 framePadding(Word32 bitRate, in framePadding() argument
99 difference = calcFrameLen( bitRate, in framePadding()
543 Word32 bitRate, /* total bitrate */ in AdjustBitrate() argument
552 paddingOn = framePadding(bitRate, in AdjustBitrate()
557 frameLen = paddingOn + calcFrameLen(bitRate, in AdjustBitrate()
Dblock_switch.c73 const Word32 bitRate, const Word16 nChannels) in InitBlockSwitching() argument
77 if ((sub(nChannels,1)==0 && L_sub(bitRate, 24000) > 0) || in InitBlockSwitching()
78 (sub(nChannels,1)>0 && bitRate > (nChannels * 16000))) { in InitBlockSwitching()
Dtns.c135 Word16 InitTnsConfigurationLong(Word32 bitRate, /*!< bitrate */ in InitTnsConfigurationLong() argument
150 bitratePerChannel = bitRate >> 1; in InitTnsConfigurationLong()
153 bitratePerChannel = bitRate; in InitTnsConfigurationLong()
202 Word16 InitTnsConfigurationShort(Word32 bitRate, /*!< bitrate */ in InitTnsConfigurationShort() argument
216 bitratePerChannel = L_shr(bitRate,1); in InitTnsConfigurationShort()
219 bitratePerChannel = bitRate; in InitTnsConfigurationShort()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp131 mEncParams->bitRate[0] = mBitrate; in initEncParams()
223 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local
226 if (bitRate->nPortIndex != 1) { in internalGetParameter()
230 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter()
231 bitRate->nTargetBitrate = mBitrate; in internalGetParameter()
292 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local
295 if (bitRate->nPortIndex != 1 || in internalSetParameter()
296 bitRate->eControlRate != OMX_Video_ControlRateVariable) { in internalSetParameter()
300 mBitrate = bitRate->nTargetBitrate; in internalSetParameter()
/frameworks/base/media/java/android/media/
DMediaRecorder.java675 public void setAudioEncodingBitRate(int bitRate) { in setAudioEncodingBitRate() argument
676 if (bitRate <= 0) { in setAudioEncodingBitRate()
679 setParameter("audio-param-encoding-bitrate=" + bitRate); in setAudioEncodingBitRate()
691 public void setVideoEncodingBitRate(int bitRate) { in setVideoEncodingBitRate() argument
692 if (bitRate <= 0) { in setVideoEncodingBitRate()
695 setParameter("video-param-encoding-bitrate=" + bitRate); in setVideoEncodingBitRate()
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
DAAC_E_SAMPLES.c55 param->bitRate = 0; in parsecmdline()
96 param->bitRate = atoi(*argv); in parsecmdline()
113 if(param->bitRate == 0) in parsecmdline()
118 param->bitRate = 640*param->nChannels*param->sampleRate/scale; in parsecmdline()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaRecorderStressTestRunner.java70 String bitRate = (String) icicle.get("bit_rate"); in onCreate() local
92 if (bitRate != null) { in onCreate()
93 mBitRate = Integer.parseInt(bitRate); in onCreate()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp145 uint64_t WebmWriter::estimateCuesSize(int32_t bitRate) { in estimateCuesSize() argument
172 if (bitRate > 0) { in estimateCuesSize()
173 int64_t size2 = ((mMaxFileDurationLimitUs * bitRate * 6) / 1000 / 8000000); in estimateCuesSize()
199 mMaxFileSizeLimitBytes, mMaxFileDurationLimitUs, bitRate, size); in estimateCuesSize()
445 int32_t bitRate = -1; in start() local
447 params->findInt32(kKeyBitRate, &bitRate); in start()
449 mEstimatedCuesSize = estimateCuesSize(bitRate); in start()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp370 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local
373 if (bitRate->nPortIndex != 1) { in internalGetParameter()
377 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter()
378 bitRate->nTargetBitrate = mBitrate; in internalGetParameter()
427 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local
430 if (bitRate->nPortIndex != 1 || in internalSetParameter()
431 bitRate->eControlRate != OMX_Video_ControlRateVariable) { in internalSetParameter()
435 mBitrate = bitRate->nTargetBitrate; in internalSetParameter()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java179 int bitRate; in recordVideoAndPlayback() local
190 bitRate = camcorderProfile.videoBitRate; in recordVideoAndPlayback()
197 bitRate = MediaRecorderStressTestRunner.mBitRate; in recordVideoAndPlayback()
226 Log.v(TAG, "bit rate : " + bitRate); in recordVideoAndPlayback()
238 mRecorder.setVideoEncodingBitRate(bitRate); in recordVideoAndPlayback()
/frameworks/av/include/media/
DMediaProfiles.h184 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
186 mBitRate(bitRate), in VideoCodec()
209 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec()
211 mBitRate(bitRate), in AudioCodec()
/frameworks/av/media/libstagefright/codecs/common/include/
DvoAAC.h46 int bitRate; /*! encoder bit rate in bits/sec */ member
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
Dtns_param.h48 Word32 bitRate, Word16 channels, Word16 blockType);
Dblock_switch.h59 const Word32 bitRate, const Word16 nChannels);
Daacenc_core.h41 Word32 bitRate; /* encoder bit rate in bits/sec */ member
Dqc_main.h61 Word32 bitRate,
Dpsy_main.h51 Word32 bitRate,
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/
Dmp4enc_api.h167 Int bitRate[2]; member
413 …OSCL_IMPORT_REF Bool PVUpdateBitRate(VideoEncControls *encCtrl, Int *bitRate); /* for…
/frameworks/av/media/libstagefright/
DOMXCodec.cpp582 int32_t bitRate = 0; in configureCodec() local
584 CHECK(meta->findInt32(kKeyBitRate, &bitRate)); in configureCodec()
587 setAMRFormat(false /* isWAMR */, bitRate); in configureCodec()
589 setAMRFormat(true /* isWAMR */, bitRate); in configureCodec()
604 status_t err = setAACFormat(numChannels, sampleRate, bitRate, aacProfile, isADTS); in configureCodec()
888 int32_t width, height, frameRate, bitRate, stride, sliceHeight; in setVideoInputFormat() local
892 success = success && meta->findInt32(kKeyBitRate, &bitRate); in setVideoInputFormat()
964 video_def->nBitrate = bitRate; // Q16 format in setVideoInputFormat()
1040 status_t OMXCodec::setupBitRate(int32_t bitRate) { in setupBitRate() argument
1051 bitrateType.nTargetBitrate = bitRate; in setupBitRate()
[all …]
/frameworks/av/include/media/stagefright/
DOMXCodec.h245 void setAMRFormat(bool isWAMR, int32_t bitRate);
248 int32_t numChannels, int32_t sampleRate, int32_t bitRate,
263 status_t setupBitRate(int32_t bitRate);
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
Dpvmp3decoder_api.h205 int32 bitRate; member
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp377 status_t StagefrightRecorder::setParamAudioEncodingBitRate(int32_t bitRate) { in setParamAudioEncodingBitRate() argument
378 ALOGV("setParamAudioEncodingBitRate: %d", bitRate); in setParamAudioEncodingBitRate()
379 if (bitRate <= 0) { in setParamAudioEncodingBitRate()
380 ALOGE("Invalid audio encoding bit rate: %d", bitRate); in setParamAudioEncodingBitRate()
388 mAudioBitRate = bitRate; in setParamAudioEncodingBitRate()
392 status_t StagefrightRecorder::setParamVideoEncodingBitRate(int32_t bitRate) { in setParamVideoEncodingBitRate() argument
393 ALOGV("setParamVideoEncodingBitRate: %d", bitRate); in setParamVideoEncodingBitRate()
394 if (bitRate <= 0) { in setParamVideoEncodingBitRate()
395 ALOGE("Invalid video encoding bit rate: %d", bitRate); in setParamVideoEncodingBitRate()
403 mVideoBitRate = bitRate; in setParamVideoEncodingBitRate()
DStagefrightRecorder.h155 status_t setParamAudioEncodingBitRate(int32_t bitRate);
161 status_t setParamVideoEncodingBitRate(int32_t bitRate);

12