Home
last modified time | relevance | path

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

1234

/ohos5.0/foundation/multimedia/av_codec/services/engine/codeclist/
H A Daudio_codeclist_info.cpp124 audioOpusCapability.bitrate = Range(1, MAX_BIT_RATE_OPUS); in GetOpusDecoderCapability()
138 audioFlacCapability.bitrate = Range(1, MAX_BIT_RATE_FLAC); in GetFlacDecoderCapability()
166 audioAmrnbCapability.bitrate = Range(1, MAX_BIT_RATE_AMRNB); in GetAmrnbDecoderCapability()
180 audioAmrwbCapability.bitrate = Range(1, MAX_BIT_RATE_AMRWB); in GetAmrwbDecoderCapability()
194 audioApeCapability.bitrate = Range(0, MAX_BIT_RATE_APE); in GetAPEDecoderCapability()
223 audioAmrnbCapability.bitrate = Range(1, MAX_BIT_RATE_AMRNB); in GetAmrnbEncoderCapability()
256 audioLbvcCapability.bitrate = Range(0, 0); in GetLbvcDecoderCapability()
284 audioLbvcCapability.bitrate = Range(0, 0); in GetLbvcEncoderCapability()
310 audioAacCapability.bitrate = Range(0, 0); in GetVendorAacEncoderCapability()
352 audioOpusCapability.bitrate = Range(1, MAX_BIT_RATE_OPUS); in GetOpusEncoderCapability()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeFunctionTest.cpp119 int32_t& sampleRate, long& bitrate) in getParamsByName() argument
132 bitrate = atol(bitStr.c_str()); in getParamsByName()
143 bitrate = atol(bitStr.c_str()); in getParamsByName()
154 bitrate = atol(bitStr.c_str()); in getParamsByName()
165 bitrate = atol(bitStr.c_str()); in getParamsByName()
174 long bitrate; in runDecode() local
849 long bitrate = atol(bitStr.c_str()); variable
892 long bitrate = atol(bitStr.c_str()); variable
934 long bitrate = atol(bitStr.c_str()); variable
977 long bitrate = atol(bitStr.c_str()); variable
[all …]
H A DNativeStablityTest.cpp93 int32_t& sampleRate, long& bitrate) in GetParamsByName() argument
106 bitrate = atol(bitStr.c_str()); in GetParamsByName()
117 bitrate = atol(bitStr.c_str()); in GetParamsByName()
128 bitrate = atol(bitStr.c_str()); in GetParamsByName()
139 bitrate = atol(bitStr.c_str()); in GetParamsByName()
148 long bitrate; in GetAVFormatByDecoder() local
657 long bitrate = atol(bitStr.c_str()); variable
663 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
746 long bitrate = atol(bitStr.c_str()); variable
752 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
[all …]
H A DNativeFuzzTest.cpp182 int32_t bitrate = getIntRand(); variable
188 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
192 …ut << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl;
243 int32_t bitrate = getIntRand(); variable
249 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
253 …ut << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl;
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dformat_test.cpp164 int64_t bitrate = 0; in CheckVideoKey() local
173 ASSERT_EQ(bitrateResult, bitrate); in CheckVideoKey()
202 int64_t bitrate = 0; in CheckAudioKey() local
223 ASSERT_EQ(bitrateResult, bitrate); in CheckAudioKey()
245 int64_t bitrate = 0; in CheckAudioKeyVvc() local
254 ASSERT_EQ(bitrateResult, bitrate); in CheckAudioKeyVvc()
355 int64_t bitrate = 0; in AvcVideoParam() local
378 ASSERT_EQ(AVC_BITRATE, bitrate); in AvcVideoParam()
393 int64_t bitrate = 0; in HevcVideoParam() local
421 ASSERT_EQ(HEVC_BITRATE, bitrate); in HevcVideoParam()
[all …]
H A Dnet2_test.cpp120 int64_t bitrate = 0; in CheckVideoKey() local
127 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckVideoKey()
129 ASSERT_EQ(bitrateResult, bitrate); in CheckVideoKey()
157 int64_t bitrate = 0; in CheckAudioKey() local
176 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckAudioKey()
178 ASSERT_EQ(bitrateResult, bitrate); in CheckAudioKey()
199 int64_t bitrate = 0; in CheckAudioKeyVVC() local
206 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckAudioKeyVVC()
208 ASSERT_EQ(bitrateResutlt, bitrate); in CheckAudioKeyVVC()
/ohos5.0/foundation/multimedia/player_framework/interfaces/inner_api/native/
H A Dcodec_capability.h66 CodecRange bitrate; variable
81 if (!(bitrate.Marshalling(parcel) && frameRate.Marshalling(parcel) in Marshalling()
102 bitrate.Unmarshalling(parcel); in Unmarshalling()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/source_test/
H A Dsource_unit_test.cpp157 std::vector<uint32_t> bitrate; variable
158 EXPECT_NE(Status::OK, source_->GetBitRates(bitrate));
162 EXPECT_EQ(Status::OK, source_->GetBitRates(bitrate));
172 uint32_t bitrate = 0; variable
173 EXPECT_NE(Status::OK, source_->SelectBitRate(bitrate));
177 EXPECT_EQ(Status::OK, source_->SelectBitRate(bitrate));
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/audioencoder_fuzzer/
H A Daudio_encoder_demo.cpp176 long bitrate = BIT_RATE_64000; in Setformat() local
182 bitrate = BIT_RATE_96000; in Setformat()
186 bitrate = BIT_RATE_64000; in Setformat()
191 bitrate = BIT_RATE_64000; in Setformat()
194 bitrate = BIT_RATE_6000; // 码率 6000 in Setformat()
198 bitrate = BIT_RATE_64000; in Setformat()
202 bitrate = BIT_RATE_6700; in Setformat()
205 bitrate = BIT_RATE_8850; in Setformat()
208 bitrate = BIT_RATE_64000; in Setformat()
214 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in Setformat()
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/audioencoderflush_fuzzer/
H A Daudio_encoder_flush_demo.cpp155 long bitrate = BIT_RATE_64000; in Setformat() local
161 bitrate = BIT_RATE_96000; in Setformat()
165 bitrate = BIT_RATE_64000; in Setformat()
170 bitrate = BIT_RATE_64000; in Setformat()
173 bitrate = BIT_RATE_6000; // 码率 6000 in Setformat()
177 bitrate = BIT_RATE_64000; in Setformat()
181 bitrate = BIT_RATE_6700; in Setformat()
184 bitrate = BIT_RATE_8850; in Setformat()
187 bitrate = BIT_RATE_64000; in Setformat()
193 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in Setformat()
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/audioencoderreset_fuzzer/
H A Daudio_encoder_reset_demo.cpp155 long bitrate = BIT_RATE_64000; in Setformat() local
161 bitrate = BIT_RATE_96000; in Setformat()
165 bitrate = BIT_RATE_64000; in Setformat()
170 bitrate = BIT_RATE_64000; in Setformat()
173 bitrate = BIT_RATE_6000; // 码率 6000 in Setformat()
177 bitrate = BIT_RATE_64000; in Setformat()
181 bitrate = BIT_RATE_6700; in Setformat()
184 bitrate = BIT_RATE_8850; in Setformat()
187 bitrate = BIT_RATE_64000; in Setformat()
193 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in Setformat()
/ohos5.0/docs/zh-cn/application-dev/media/avcodec/
H A Dobtain-supported-codecs.md157 int32_t bitrate = 3000000;
173 if (bitrate > bitrateRange.maxVal || bitrate < bitrateRange.minVal) {
180 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, static_cast<int64_t>(bitrate)) == false) {
258 int32_t bitrate = 261000;
294 if (bitrate > bitrateRange.maxVal || bitrate < bitrateRange.minVal ) {
302 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, static_cast<int64_t>(bitrate)) == false) {
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/
H A DInnerFunctionTest.cpp393 int32_t bitrate = bitrateList[i]; variable
397 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate);
401 string outputFile = "FUNCTION_009_16000_2_" + to_string(bitrate) + "_aac_output.pcm";
425 int32_t bitrate = bitrateList[i]; variable
428 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate);
430 string inputFile = "fltp_" + to_string((int)(bitrate/1000)) + "k_44100_2_dayuhaitang.mp3";
431 string outputFile = "FUNCTION_010_44100_2_" + to_string(bitrate) + "_mp3_output.pcm";
456 int32_t bitrate = bitrateList[i]; variable
460 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate);
464 …string outputFile = "FUNCTION_011_"+ to_string(sample_rate) +"_2_" + to_string(bitrate) + "_flac_o…
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/
H A DNativeFuzzTest.cpp181 int32_t bitrate = getIntRand(); variable
191 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
195 …ut << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl;
248 int32_t bitrate = getIntRand(); variable
258 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate);
262 …ut << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl;
H A DNativeFunctionTest.cpp141 OH_AVFormat* getAVFormatAAC(int32_t channelCount, int32_t sampleRate, int64_t bitrate) in getAVFormatAAC() argument
165 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in getAVFormatAAC()
171 …t* getAVFormatFlac(int32_t channelCount, int32_t sampleRate, int32_t sampleFormat, int64_t bitrate) in getAVFormatFlac() argument
206 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in getAVFormatFlac()
400 long bitrate = 500000; variable
419 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate);
450 long bitrate = 500000; variable
470 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate);
/ohos5.0/foundation/multimedia/player_framework/services/services/sa_media/ipc/
H A Drecorder_profiles_parcel.cpp39 (void)parcel.WriteInt32(profileCapabilityData.audioCaps.bitrate.minVal); in MarshallingRecorderProfilesData()
40 (void)parcel.WriteInt32(profileCapabilityData.audioCaps.bitrate.maxVal); in MarshallingRecorderProfilesData()
108 profileCapabilityData.audioCaps.bitrate.minVal = parcel.ReadInt32(); in UnmarshallingRecorderProfilesData()
109 profileCapabilityData.audioCaps.bitrate.maxVal = parcel.ReadInt32(); in UnmarshallingRecorderProfilesData()
/ohos5.0/foundation/multimedia/media_foundation/test/scenetest/helper/
H A Dtest_recorder.hpp49 void GetBitRate(int64_t& bitrate) const in GetBitRate()
51 bitrate = bitRate_; in GetBitRate()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/codeclist_test/coverage_unit_test/
H A Dcodeclist_core_coverage_unit_test.cpp100 constexpr uint64_t bitrate = 300000; variable
101 format_.PutLongValue(Tag::MEDIA_BITRATE, bitrate);
113 constexpr uint64_t bitrate = 300000000; variable
114 format_.PutLongValue(Tag::MEDIA_BITRATE, bitrate);
/ohos5.0/drivers/peripheral/format/interfaces/include/
H A Dformat_type.h227 uint32_t bitrate; /**< Audio and video bit rate */ member
245 uint32_t bitrate; /**< <Video bit rate, in bit/s */ member
349 uint32_t bitrate; /**< Bit rate of the movie file */ member
/ohos5.0/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/
H A Dcodeclist_parcel.cpp34 (void)parcel.WriteInt32(capabilityData.bitrate.minVal); in Marshalling()
35 (void)parcel.WriteInt32(capabilityData.bitrate.maxVal); in Marshalling()
111 capabilityData.bitrate.minVal = parcel.ReadInt32(); in Unmarshalling()
112 capabilityData.bitrate.maxVal = parcel.ReadInt32(); in Unmarshalling()
/ohos5.0/foundation/multimedia/av_codec/services/services/codec/server/
H A Dcodec_param_checker.cpp280 int64_t bitrate; in BitrateAndQualityChecker() local
283 bool bitrateExist = format.GetLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in BitrateAndQualityChecker()
286 PrintParam(bitrateExist, MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in BitrateAndQualityChecker()
294 bool bitrateValid = capData.bitrate.InRange(bitrate); in BitrateAndQualityChecker()
297 MediaDescriptionKey::MD_KEY_BITRATE.data(), static_cast<int32_t>(bitrate), in BitrateAndQualityChecker()
298 capData.bitrate.minVal, capData.bitrate.maxVal); in BitrateAndQualityChecker()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/
H A Davcodec_audio_avbuffer_encoder_demo.cpp115 int32_t &sampleRate, long &bitrate) in GetParamsByName() argument
133 bitrate = atol(bitStr.c_str()); in GetParamsByName()
144 bitrate = atol(bitStr.c_str()); in GetParamsByName()
232 long bitrate; in RunCase() local
239 …GetParamsByName("OH.Media.Codec.Encoder.Audio.Opus", inputFile, channelCount, sampleRate, bitrate); in RunCase()
245 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in RunCase()
253 bitrate = BIT_RATE_64000; in RunCase()
256 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in RunCase()
/ohos5.0/docs/zh-cn/application-dev/media/media/
H A Dstreaming-media-playback-development-guide.md94 avPlayer.on('bitrateDone', (bitrate: number) => {
95 consle.info('bitrateDone called, and bitrate value is: ' + bitrate);
98 let bitrate: number = 96000;
99 avPlayer.setBitrate(bitrate);
/ohos5.0/foundation/multimedia/av_codec/test/unittest/dash_test/
H A Ddash_mpd_downloader_unit_test.cpp179 for (auto bitrate : bitrates) { variable
180 if (bitrate != stream->bandwidth_) {
181 switchingBitrate = bitrate;
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/
H A Ddash_media_downloader.h54 bool SelectBitRate(uint32_t bitrate) override;
83 bool AutoSelectBitrateInternal(uint32_t bitrate);

1234