/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | aacenc.c | 143 config.bitRate = 128000; in voAACEncInit() 335 config.bitRate = pAAC_param->bitRate; in voAACEncSetParam() 364 if(config.bitRate!=0 && ((config.bitRate/config.nChannelsOut < 4000) || in voAACEncSetParam() 365 (config.bitRate/config.nChannelsOut > 160000) || in voAACEncSetParam() 366 (config.bitRate > config.sampleRate*6*config.nChannelsOut))) in voAACEncSetParam() 368 config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut; in voAACEncSetParam() 370 if(config.bitRate/config.nChannelsOut < 4000) in voAACEncSetParam() 371 config.bitRate = 4000 * config.nChannelsOut; in voAACEncSetParam() 372 else if(config.bitRate > config.sampleRate*6*config.nChannelsOut) in voAACEncSetParam() 373 config.bitRate = config.sampleRate*6*config.nChannelsOut; in voAACEncSetParam() [all …]
|
D | aacenc_core.c | 46 config->bitRate = 128000; in AacInitDefaultConfig() 91 config.bitRate, in AacEncOpen() 111 qcInit.averageBits = (Word16) ((config.bitRate * FRAME_LEN_LONG) / config.sampleRate); in AacEncOpen() 121 qcInit.bitrate = config.bitRate; in AacEncOpen() 129 hAacEnc->bseInit.bitrate = config.bitRate; in AacEncOpen() 176 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 | 76 const Word32 bitRate, const Word16 nChannels) in InitBlockSwitching() argument 80 if ((sub(nChannels,1)==0 && L_sub(bitRate, 24000) > 0) || in InitBlockSwitching() 81 (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/base/media/java/android/media/ |
D | MediaRecorder.java | 640 public void setAudioEncodingBitRate(int bitRate) { in setAudioEncodingBitRate() argument 641 if (bitRate <= 0) { in setAudioEncodingBitRate() 644 setParameter("audio-param-encoding-bitrate=" + bitRate); in setAudioEncodingBitRate() 656 public void setVideoEncodingBitRate(int bitRate) { in setVideoEncodingBitRate() argument 657 if (bitRate <= 0) { in setVideoEncodingBitRate() 660 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/codecs/m4v_h263/enc/ |
D | SoftMPEG4Encoder.cpp | 116 mEncParams->bitRate[0] = mVideoBitRate; in initEncParams() 281 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local 284 if (bitRate->nPortIndex != 1) { in internalGetParameter() 288 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter() 289 bitRate->nTargetBitrate = mVideoBitRate; in internalGetParameter() 413 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local 416 if (bitRate->nPortIndex != 1 || in internalSetParameter() 417 bitRate->eControlRate != OMX_Video_ControlRateVariable) { in internalSetParameter() 421 mVideoBitRate = bitRate->nTargetBitrate; in internalSetParameter()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 177 uint64_t WebmWriter::estimateCuesSize(int32_t bitRate) { in estimateCuesSize() argument 204 if (bitRate > 0) { in estimateCuesSize() 205 int64_t size2 = ((mMaxFileDurationLimitUs * bitRate * 6) / 1000 / 8000000); in estimateCuesSize() 231 mMaxFileSizeLimitBytes, mMaxFileDurationLimitUs, bitRate, size); in estimateCuesSize() 478 int32_t bitRate = -1; in start() local 480 params->findInt32(kKeyBitRate, &bitRate); in start() 482 mEstimatedCuesSize = estimateCuesSize(bitRate); in start()
|
/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 | 228 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 230 mBitRate(bitRate), in VideoCodec() 253 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 255 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/avc/enc/ |
D | SoftAVCEncoder.cpp | 415 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local 418 if (bitRate->nPortIndex != 1) { in internalGetParameter() 422 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter() 423 bitRate->nTargetBitrate = mVideoBitRate; in internalGetParameter() 529 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local 532 if (bitRate->nPortIndex != 1 || in internalSetParameter() 533 bitRate->eControlRate != OMX_Video_ControlRateVariable) { in internalSetParameter() 537 mVideoBitRate = bitRate->nTargetBitrate; in internalSetParameter()
|
/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 | qc_main.h | 61 Word32 bitRate,
|
D | aacenc_core.h | 41 Word32 bitRate; /* encoder bit rate in bits/sec */ member
|
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/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 | 350 status_t StagefrightRecorder::setParamAudioEncodingBitRate(int32_t bitRate) { in setParamAudioEncodingBitRate() argument 351 ALOGV("setParamAudioEncodingBitRate: %d", bitRate); in setParamAudioEncodingBitRate() 352 if (bitRate <= 0) { in setParamAudioEncodingBitRate() 353 ALOGE("Invalid audio encoding bit rate: %d", bitRate); in setParamAudioEncodingBitRate() 361 mAudioBitRate = bitRate; in setParamAudioEncodingBitRate() 365 status_t StagefrightRecorder::setParamVideoEncodingBitRate(int32_t bitRate) { in setParamVideoEncodingBitRate() argument 366 ALOGV("setParamVideoEncodingBitRate: %d", bitRate); in setParamVideoEncodingBitRate() 367 if (bitRate <= 0) { in setParamVideoEncodingBitRate() 368 ALOGE("Invalid video encoding bit rate: %d", bitRate); in setParamVideoEncodingBitRate() 376 mVideoBitRate = bitRate; in setParamVideoEncodingBitRate()
|
D | StagefrightRecorder.h | 152 status_t setParamAudioEncodingBitRate(int32_t bitRate); 158 status_t setParamVideoEncodingBitRate(int32_t bitRate);
|
/frameworks/av/media/libstagefright/ |
D | OMXCodec.cpp | 577 int32_t bitRate = 0; in configureCodec() local 579 CHECK(meta->findInt32(kKeyBitRate, &bitRate)); in configureCodec() 582 setAMRFormat(false /* isWAMR */, bitRate); in configureCodec() 584 setAMRFormat(true /* isWAMR */, bitRate); in configureCodec() 599 status_t err = setAACFormat(numChannels, sampleRate, bitRate, aacProfile, isADTS); in configureCodec() 878 int32_t width, height, frameRate, bitRate, stride, sliceHeight; in setVideoInputFormat() local 882 success = success && meta->findInt32(kKeyBitRate, &bitRate); in setVideoInputFormat() 954 video_def->nBitrate = bitRate; // Q16 format in setVideoInputFormat() 1030 status_t OMXCodec::setupBitRate(int32_t bitRate) { in setupBitRate() argument 1041 bitrateType.nTargetBitrate = bitRate; in setupBitRate() [all …]
|