Home
last modified time | relevance | path

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

1234

/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp363 static void SetMimeBitrate(AMediaFormat* format, std::string mime, int32_t bitrate) { in SetMimeBitrate() argument
365 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in SetMimeBitrate()
372 [mime = "video/avc", bitrate = 12000000](AMediaFormat* dstFormat) { in BM_1920x1080_Avc22Mbps2Avc12Mbps()
373 SetMimeBitrate(dstFormat, mime, bitrate); in BM_1920x1080_Avc22Mbps2Avc12Mbps()
381 [mime = "video/avc", bitrate = 8000000](AMediaFormat* dstFormat) { in BM_1920x1080_Avc15Mbps2Avc8Mbps()
382 SetMimeBitrate(dstFormat, mime, bitrate); in BM_1920x1080_Avc15Mbps2Avc8Mbps()
396 [mime = "video/avc", bitrate = 8000000](AMediaFormat* dstFormat) { in BM_1920x1080_Avc15MbpsAac2Avc8Mbps()
397 SetMimeBitrate(dstFormat, mime, bitrate); in BM_1920x1080_Avc15MbpsAac2Avc8Mbps()
405 [mime = "video/avc", bitrate = 8000000](AMediaFormat* dstFormat) { in BM_1920x1080_Avc15MbpsAac2Avc8MbpsAac()
406 SetMimeBitrate(dstFormat, mime, bitrate); in BM_1920x1080_Avc15MbpsAac2Avc8MbpsAac()
[all …]
/frameworks/base/media/java/android/media/
DEncoderProfiles.java143 return bitrate; in getBitrate()
245 int bitrate, in VideoProfile() argument
254 this.bitrate = bitrate; in VideoProfile()
265 int bitrate, in VideoProfile() argument
267 this(codec, width, height, frameRate, bitrate, profile, in VideoProfile()
275 private int bitrate; field in EncoderProfiles.VideoProfile
414 return bitrate; in getBitrate()
454 int bitrate, in AudioProfile() argument
459 this.bitrate = bitrate; in AudioProfile()
466 private int bitrate; field in EncoderProfiles.AudioProfile
/frameworks/av/media/module/codecs/mp3dec/test/
Dmp3reader.cpp114 int bitrate = in parseHeader() local
120 *out_bitrate = bitrate; in parseHeader()
123 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseHeader()
146 int bitrate; in parseHeader() local
148 bitrate = (layer == 2 /* L2 */) in parseHeader()
158 bitrate = kBitrateV2[bitrate_index - 1]; in parseHeader()
165 *out_bitrate = bitrate; in parseHeader()
169 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseHeader()
173 *frame_size = tmp * bitrate / sampling_rate + padding; in parseHeader()
294 uint32_t sample_rate, num_channels, bitrate; in resync() local
[all …]
/frameworks/av/media/module/codecs/mp3dec/fuzzer/
Dmp3_dec_fuzzer.cpp75 int bitrate = in parseMp3Header() local
79 *out_bitrate = bitrate; in parseMp3Header()
81 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header()
91 int bitrate; in parseMp3Header() local
93 bitrate = in parseMp3Header()
100 bitrate = kBitrateV2[bitrate_index - 1]; in parseMp3Header()
107 *out_bitrate = bitrate; in parseMp3Header()
111 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header()
114 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
/frameworks/av/media/libstagefright/rtsp/
DQualManager.cpp162 void QualManager::setBitrateData(int32_t bitrate, int64_t /*now*/) { in setBitrateData() argument
164 if (bitrate >= mMinBitrate && mTargetBitrate >= mMinBitrate) { in setBitrateData()
166 } else if (bitrate < mMinBitrate){ in setBitrateData()
171 int32_t QualManager::clampingBitrate(int32_t bitrate) { in clampingBitrate() argument
172 return std::min(std::max(mMinBitrate, bitrate), mMaxBitrate); in clampingBitrate()
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp346 OMX_VIDEO_PARAM_BITRATETYPE *bitrate = in internalGetParameter() local
349 if (!isValidOMXParam(bitrate)) { in internalGetParameter()
353 if (bitrate->nPortIndex != kOutputPortIndex) { in internalGetParameter()
357 bitrate->nTargetBitrate = mBitrate; in internalGetParameter()
360 bitrate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter()
362 bitrate->eControlRate = OMX_Video_ControlRateConstant; in internalGetParameter()
450 OMX_VIDEO_PARAM_BITRATETYPE* bitrate) { in internalGetBitrateParams() argument
451 if (bitrate->nPortIndex != kOutputPortIndex) { in internalGetBitrateParams()
455 bitrate->nTargetBitrate = mBitrate; in internalGetBitrateParams()
458 bitrate->eControlRate = OMX_Video_ControlRateVariable; in internalGetBitrateParams()
[all …]
DSoftVPXEncoder.h120 OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
124 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
/frameworks/av/media/module/extractors/mp3/
DMP3Extractor.cpp146 int sample_rate, num_channels, bitrate; in Resync() local
149 &sample_rate, &num_channels, &bitrate)) { in Resync()
303 int bitrate; in MP3Extractor() local
305 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
318 int bitrate; in MP3Extractor() local
320 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
341 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, bitrate * 1000); in MP3Extractor()
354 durationUs = 8000LL * dataLength / bitrate; in MP3Extractor()
498 int32_t bitrate; in read() local
499 if (!AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate)) { in read()
[all …]
/frameworks/av/media/module/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp95 int32_t bitrate; in main() local
96 bitrate = atoi(argv[7]); in main()
97 if (bitrate > kMaxBitrate || bitrate <= 0) { in main()
98 fprintf(stderr, "Unsupported bitrate %d\n", bitrate); in main()
158 encParams.bitRate[0] = bitrate * 1024; in main()
/frameworks/av/media/module/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 …]
/frameworks/av/media/module/libmediatranscoding/transcoder/tools/
DTranscode.cpp77 int32_t bitrate = -1; member
113 if (config.bitrate > 0) { in transcode()
114 AMediaFormat_setInt32(dstFormat, AMEDIAFORMAT_KEY_BIT_RATE, config.bitrate); in transcode()
185 config.bitrate = atoi(optarg); in main()
186 if (config.bitrate <= 0) { in main()
/frameworks/base/media/java/android/media/tv/tuner/frontend/
DIptvFrontendSettings.java97 long bitrate, @NonNull String contentUrl) { in IptvFrontendSettings() argument
106 mBitrate = bitrate; in IptvFrontendSettings()
283 public Builder setBitrate(@IntRange(from = 0) long bitrate) { in setBitrate()
284 mBitrate = bitrate; in setBitrate()
/frameworks/av/media/module/foundation/
Davc_utils.cpp707 int bitrate = in GetMPEGAudioFrameSize() local
713 *out_bitrate = bitrate; in GetMPEGAudioFrameSize()
716 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in GetMPEGAudioFrameSize()
739 int bitrate; in GetMPEGAudioFrameSize() local
741 bitrate = (layer == 2 /* L2 */) in GetMPEGAudioFrameSize()
751 bitrate = kBitrateV2[bitrate_index - 1]; in GetMPEGAudioFrameSize()
758 *out_bitrate = bitrate; in GetMPEGAudioFrameSize()
762 *frame_size = 144000 * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
766 *frame_size = tmp * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
/frameworks/av/media/tests/benchmark/tests/
DEncoderTest.cpp113 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &encParams.bitrate); in TEST_P()
114 if (encParams.bitrate <= 0 || encParams.frameRate <= 0) { in TEST_P()
117 encParams.bitrate = kEncodeMinVideoBitRate; in TEST_P()
119 encParams.bitrate = kEncodeDefaultVideoBitRate; in TEST_P()
131 encParams.bitrate = kEncodeDefaultAudioBitRate; in TEST_P()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp212 int bitrate = (version == 3 /* V1 */) ? kBitrateV1[bitrate_index - 1] : in parseMp3Header() local
216 *out_bitrate = bitrate; in parseMp3Header()
218 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header()
238 int bitrate; in parseMp3Header() local
240 bitrate = (layer == 2 /* L2 */) ? kBitrateV1L2[bitrate_index - 1] : in parseMp3Header()
247 bitrate = kBitrateV2[bitrate_index - 1]; in parseMp3Header()
254 *out_bitrate = bitrate; in parseMp3Header()
258 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header()
261 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/
DQualManager.h35 void setBitrateData(int32_t bitrate, int64_t now);
71 int32_t clampingBitrate(int32_t bitrate);
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp72 static void getMeasureBitrate(const sp<MediaCodecInfo::Capabilities> &caps, int32_t *bitrate) { in getMeasureBitrate() argument
75 *bitrate = 200000; in getMeasureBitrate()
86 *bitrate = strtol(minBitrate.c_str(), NULL, 10); in getMeasureBitrate()
95 int32_t bitrate = 0; in getMeasureFormat() local
96 getMeasureBitrate(caps, &bitrate); in getMeasureFormat()
97 format->setInt32("bitrate", bitrate); in getMeasureFormat()
DNuMediaExtractor.cpp222 int32_t bitrate; in updateDurationAndBitrate() local
223 if (!meta->findInt32(kKeyBitRate, &bitrate)) { in updateDurationAndBitrate()
230 mTotalBitrate += bitrate; in updateDurationAndBitrate()
819 bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const { in getTotalBitrate()
821 *bitrate = mTotalBitrate; in getTotalBitrate()
827 *bitrate = size * 8000000LL / mDurationUs; // in bits/sec in getTotalBitrate()
842 int64_t bitrate; in getCachedDuration() local
844 && getTotalBitrate(&bitrate)) { in getCachedDuration()
845 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
/frameworks/av/media/module/codecs/mp3dec/src/
Dpvmp3_framedecoder.cpp232 int bitrate = in parseHeader() local
238 *out_bitrate = bitrate; in parseHeader()
241 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseHeader()
264 int bitrate; in parseHeader() local
266 bitrate = (layer == 2 /* L2 */) in parseHeader()
276 bitrate = kBitrateV2[bitrate_index - 1]; in parseHeader()
283 *out_bitrate = bitrate; in parseHeader()
287 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseHeader()
291 *frame_size = tmp * bitrate / sampling_rate + padding; in parseHeader()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp178 int32_t bitrate = 0) { in testTranscodeVideo() argument
180 [dstMime, bitrate](AMediaFormat* sourceFormat) { in testTranscodeVideo()
187 (bitrate > 0 || dstMime != nullptr)) { in testTranscodeVideo()
190 if (bitrate > 0) { in testTranscodeVideo()
192 format, AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in testTranscodeVideo()
DMediaSampleReaderNDKTests.cpp395 int32_t bitrate; in TEST_F() local
396 EXPECT_EQ(sampleReader->getEstimatedBitrateForTrack(trackIndex, &bitrate), AMEDIA_OK); in TEST_F()
397 EXPECT_GT(bitrate, 0); in TEST_F()
398 EXPECT_LT(bitrate, kMaxEstimatedBitrate); in TEST_F()
403 EXPECT_EQ(bitrate, actualTrackBitrates[trackIndex]); in TEST_F()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp187 const C2P<C2StreamBitrateInfo::output> &bitrate) { in ProfileLevelSetter() argument
203 uint32_t bitrate; in ProfileLevelSetter() member
230 auto vbvSize = bitrate.v.value * VBV_DELAY; in ProfileLevelSetter()
252 bitrate.v.value <= limit.bitrate && frameRate.v.value <= limit.frameRate) { in ProfileLevelSetter()
539 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process() local
542 if (bitrate != mBitrate) { in process()
543 mBitrate = bitrate; in process()
/frameworks/proto_logging/stats/message/
Dmediametrics_message.proto160 // The bitrate presented to the underlying codec, after any modifications by
162 // If the framework changed this, the app-requested bitrate is in
164 optional int32 bitrate = 24; field
170 // this yields the encoding's realized bitrate.
188 // The app-requested bitrate, present only if the framework modified the
189 // bitrate before passing it to the underlying codec.
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h132 VideoCodec(video_encoder codec, int bitrate, int frameWidth, int frameHeight, int frameRate,
138 mBitRate(bitrate), in mCodec()
224 AudioCodec(audio_encoder codec, int bitrate, int sampleRate, int channels, int profile = -1)
226 mBitRate(bitrate), in mCodec()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/fuzzer/
DREADME.md17 6. Bitrate (parameter name: `bitrate`)
26 | `bitrate` | In the range `0` to `500000000` | All bits of 4th and 5th byte of data |

1234