/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()
|
D | psy_main.c | 192 Word32 bitRate, in psyMainInit() argument 198 Word32 channelBitRate = bitRate/channels; in psyMainInit() 207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels, in psyMainInit() 217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels, in psyMainInit() 225 bitRate, channels); in psyMainInit()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
D | SoftMPEG4Encoder.cpp | 137 mEncParams->bitRate[0] = mBitrate; in initEncParams() 220 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local 223 if (!isValidOMXParam(bitRate)) { in internalGetParameter() 227 if (bitRate->nPortIndex != 1) { in internalGetParameter() 231 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter() 232 bitRate->nTargetBitrate = mBitrate; in internalGetParameter() 301 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local 304 if (!isValidOMXParam(bitRate)) { in internalSetParameter() 308 if (bitRate->nPortIndex != 1 || in internalSetParameter() 309 bitRate->eControlRate != OMX_Video_ControlRateVariable) { in internalSetParameter() [all …]
|
/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/base/media/java/android/media/ |
D | MediaRecorder.java | 761 public void setAudioEncodingBitRate(int bitRate) { in setAudioEncodingBitRate() argument 762 if (bitRate <= 0) { in setAudioEncodingBitRate() 765 setParameter("audio-param-encoding-bitrate=" + bitRate); in setAudioEncodingBitRate() 777 public void setVideoEncodingBitRate(int bitRate) { in setVideoEncodingBitRate() argument 778 if (bitRate <= 0) { in setVideoEncodingBitRate() 781 setParameter("video-param-encoding-bitrate=" + bitRate); in setVideoEncodingBitRate()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 170 uint64_t WebmWriter::estimateCuesSize(int32_t bitRate) { in estimateCuesSize() argument 197 if (bitRate > 0) { in estimateCuesSize() 198 int64_t size2 = ((mMaxFileDurationLimitUs * bitRate * 6) / 1000 / 8000000); in estimateCuesSize() 224 mMaxFileSizeLimitBytes, mMaxFileDurationLimitUs, bitRate, size); in estimateCuesSize() 486 int32_t bitRate = -1; in start() local 488 params->findInt32(kKeyBitRate, &bitRate); in start() 490 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/media/libmedia/include/media/ |
D | MediaProfiles.h | 209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 211 mBitRate(bitRate), in VideoCodec() 234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 236 mBitRate(bitRate), in AudioCodec()
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec() 211 mBitRate(bitRate), in VideoCodec() 234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec() 236 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/codecs/mp3dec/include/ |
D | pvmp3decoder_api.h | 205 int32 bitRate; member
|
/frameworks/av/media/libstagefright/codecs/avcenc/ |
D | SoftAVCEnc.cpp | 911 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalGetParameter() local 914 if (!isValidOMXParam(bitRate)) { in internalGetParameter() 918 if (bitRate->nPortIndex != 1) { in internalGetParameter() 922 bitRate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter() 923 bitRate->nTargetBitrate = mBitrate; in internalGetParameter() 973 OMX_VIDEO_PARAM_BITRATETYPE *bitRate = in internalSetParameter() local 976 if (!isValidOMXParam(bitRate)) { in internalSetParameter() 980 return internalSetBitrateParams(bitRate); in internalSetParameter()
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.h | 170 status_t setParamAudioEncodingBitRate(int32_t bitRate); 176 status_t setParamVideoEncodingBitRate(int32_t bitRate);
|
D | StagefrightRecorder.cpp | 504 status_t StagefrightRecorder::setParamAudioEncodingBitRate(int32_t bitRate) { in setParamAudioEncodingBitRate() argument 505 ALOGV("setParamAudioEncodingBitRate: %d", bitRate); in setParamAudioEncodingBitRate() 506 if (bitRate <= 0) { in setParamAudioEncodingBitRate() 507 ALOGE("Invalid audio encoding bit rate: %d", bitRate); in setParamAudioEncodingBitRate() 515 mAudioBitRate = bitRate; in setParamAudioEncodingBitRate() 519 status_t StagefrightRecorder::setParamVideoEncodingBitRate(int32_t bitRate) { in setParamVideoEncodingBitRate() argument 520 ALOGV("setParamVideoEncodingBitRate: %d", bitRate); in setParamVideoEncodingBitRate() 521 if (bitRate <= 0) { in setParamVideoEncodingBitRate() 522 ALOGE("Invalid video encoding bit rate: %d", bitRate); in setParamVideoEncodingBitRate() 530 mVideoBitRate = bitRate; in setParamVideoEncodingBitRate()
|