/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | aacenc.c | 145 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 …]
|
D | aacenc_core.c | 46 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()
|
D | qc_main.c | 61 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()
|
D | block_switch.c | 73 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()
|
D | tns.c | 135 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/ |
D | SoftMPEG4Encoder.cpp | 131 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/ |
D | MediaRecorder.java | 675 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/ |
D | AAC_E_SAMPLES.c | 55 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/ |
D | MediaRecorderStressTestRunner.java | 70 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/ |
D | WebmWriter.cpp | 145 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/ |
D | SoftAVCEncoder.cpp | 370 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/ |
D | MediaRecorderStressTest.java | 179 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/ |
D | MediaProfiles.h | 184 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/ |
D | voAAC.h | 46 int bitRate; /*! encoder bit rate in bits/sec */ member
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
D | tns_param.h | 48 Word32 bitRate, Word16 channels, Word16 blockType);
|
D | block_switch.h | 59 const Word32 bitRate, const Word16 nChannels);
|
D | aacenc_core.h | 41 Word32 bitRate; /* encoder bit rate in bits/sec */ member
|
D | qc_main.h | 61 Word32 bitRate,
|
D | psy_main.h | 51 Word32 bitRate,
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/ |
D | mp4enc_api.h | 167 Int bitRate[2]; member 413 …OSCL_IMPORT_REF Bool PVUpdateBitRate(VideoEncControls *encCtrl, Int *bitRate); /* for…
|
/frameworks/av/media/libstagefright/ |
D | OMXCodec.cpp | 582 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/ |
D | OMXCodec.h | 245 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/ |
D | pvmp3decoder_api.h | 205 int32 bitRate; member
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.cpp | 377 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()
|
D | StagefrightRecorder.h | 155 status_t setParamAudioEncodingBitRate(int32_t bitRate); 161 status_t setParamVideoEncodingBitRate(int32_t bitRate);
|