/foundation/multimedia/av_codec/services/engine/codeclist/ |
H A D | audio_codeclist_info.cpp | 77 audioMp3Capability.bitrate = Range(MIN_BIT_RATE_MP3, MAX_BIT_RATE_MP3); in GetMP3DecoderCapability() 91 audioMp3Capability.bitrate = Range(MIN_BIT_RATE_MP3_ENCODE, MAX_BIT_RATE_MP3); in GetMP3EncoderCapability() 105 audioAacCapability.bitrate = Range(MIN_BIT_RATE_AAC, MAX_BIT_RATE_AAC); in GetAacDecoderCapability() 119 audioOpusCapability.bitrate = Range(1, MAX_BIT_RATE_OPUS); in GetOpusDecoderCapability() 133 audioFlacCapability.bitrate = Range(1, MAX_BIT_RATE_FLAC); in GetFlacDecoderCapability() 147 audioVorbisCapability.bitrate = Range(MIN_BIT_RATE_VORBIS, MAX_BIT_RATE_VORBIS); in GetVorbisDecoderCapability() 161 audioAmrnbCapability.bitrate = Range(1, MAX_BIT_RATE_AMRNB); in GetAmrnbDecoderCapability() 175 audioAmrwbCapability.bitrate = Range(1, MAX_BIT_RATE_AMRWB); in GetAmrwbDecoderCapability() 189 audioApeCapability.bitrate = Range(0, MAX_BIT_RATE_APE); in GetAPEDecoderCapability() 204 audioVividCapability.bitrate in GetVividDecoderCapability() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFunctionTest.cpp | 119 int32_t& sampleRate, long& bitrate) in getParamsByName() 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 175 getParamsByName(decoderName, inputFile, channelCount, sampleRate, bitrate); in runDecode() 197 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in runDecode() 259 long bitrate = atol(bitStr.c_str()); in HWTEST_F() local 265 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F() 118 getParamsByName(string decoderName, string inputFile, int32_t& channelCount, int32_t& sampleRate, long& bitrate) getParamsByName() argument 305 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 351 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 397 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 441 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 486 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 531 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 576 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 621 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 668 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 715 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 760 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 805 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 849 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 892 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 934 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 977 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 1078 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 1121 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 1163 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 1206 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 1300 long bitrate = atol(bitStr.c_str()); HWTEST_F() local [all...] |
H A D | NativeStablityTest.cpp | 93 int32_t& sampleRate, long& bitrate) in GetParamsByName() 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 149 GetParamsByName(decoderName, inputFile, channelCount, sampleRate, bitrate); in GetAVFormatByDecoder() 155 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in GetAVFormatByDecoder() 160 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in GetAVFormatByDecoder() 166 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in GetAVFormatByDecoder() 92 GetParamsByName(string decoderName, string inputFile, int32_t& channelCount, int32_t& sampleRate, long& bitrate) GetParamsByName() argument 657 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 746 long bitrate = atol(bitStr.c_str()); HWTEST_F() local 788 long bitrate = atol(bitStr.c_str()); HWTEST_F() local [all...] |
H A D | NativeFuzzTest.cpp | 182 int32_t bitrate = getIntRand(); in HWTEST_F() local 188 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F() 192 cout << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl; in HWTEST_F() 243 int32_t bitrate = getIntRand(); in HWTEST_F() local 249 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F() 253 cout << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl; in HWTEST_F()
|
/foundation/multimedia/player_framework/interfaces/inner_api/native/ |
H A D | codec_capability.h | 66 CodecRange bitrate; member in OHOS::Media::EncoderCapabilityData 81 if (!(bitrate.Marshalling(parcel) && frameRate.Marshalling(parcel) in Marshalling() 102 bitrate.Unmarshalling(parcel); in Unmarshalling()
|
/foundation/multimedia/av_codec/test/unittest/source_test/ |
H A D | source_unit_test.cpp | 157 std::vector<uint32_t> bitrate; in HWTEST_F() local 158 EXPECT_NE(Status::OK, source_->GetBitRates(bitrate)); in HWTEST_F() 162 EXPECT_EQ(Status::OK, source_->GetBitRates(bitrate)); in HWTEST_F() 172 uint32_t bitrate = 0; in HWTEST_F() local 173 EXPECT_NE(Status::OK, source_->SelectBitRate(bitrate)); in HWTEST_F() 177 EXPECT_EQ(Status::OK, source_->SelectBitRate(bitrate)); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/fuzztest/audioencoderreset_fuzzer/ |
H A D | audio_encoder_reset_demo.cpp | 155 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() [all...] |
/foundation/multimedia/av_codec/test/fuzztest/audioencoder_fuzzer/ |
H A D | audio_encoder_demo.cpp | 176 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() [all...] |
/foundation/multimedia/av_codec/test/fuzztest/audioencoderflush_fuzzer/ |
H A D | audio_encoder_flush_demo.cpp | 155 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() [all...] |
/foundation/multimedia/av_codec/test/fuzztest/audioencoderdescription_fuzzer/ |
H A D | audio_encoder_description_demo.cpp | 155 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() [all...] |
/foundation/multimedia/media_foundation/test/scenetest/helper/ |
H A D | test_recorder.hpp | 49 void GetBitRate(int64_t& bitrate) const in GetBitRate() 51 bitrate = bitRate_; in GetBitRate()
|
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
H A D | format_test.cpp | 164 int64_t bitrate = 0; in CheckVideoKey() local 171 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckVideoKey() 173 ASSERT_EQ(bitrateResult, bitrate); in CheckVideoKey() 202 int64_t bitrate = 0; in CheckAudioKey() local 221 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckAudioKey() 223 ASSERT_EQ(bitrateResult, bitrate); in CheckAudioKey() 245 int64_t bitrate = 0; in CheckAudioKeyVvc() local 252 ASSERT_TRUE(OH_AVFormat_GetLongValue(trackFormat, OH_MD_KEY_BITRATE, &bitrate)); in CheckAudioKeyVvc() 254 ASSERT_EQ(bitrateResult, bitrate); in CheckAudioKeyVvc() 355 int64_t bitrate in AvcVideoParam() local 393 int64_t bitrate = 0; HevcVideoParam() local 495 int64_t bitrate = 0; OtherVideoParam() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 181 int32_t bitrate = getIntRand(); in HWTEST_F() local 191 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F() 195 cout << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl; in HWTEST_F() 248 int32_t bitrate = getIntRand(); in HWTEST_F() local 258 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F() 262 cout << "bits_per_coded_sample is: " << codedSample << ", OH_MD_KEY_BITRATE is: " << bitrate << endl; in HWTEST_F()
|
H A D | NativeFunctionTest.cpp | 141 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 OH_AVFormat* 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() 302 * @tc.name : aac(different bitrate) 400 long bitrate = 500000; in HWTEST_F() local 419 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); in HWTEST_F() 450 long bitrate = 500000; in HWTEST_F() local 470 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); in HWTEST_F() 653 sampleRate_Get << ", bitrate i in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerFunctionTest.cpp | 377 * @tc.name : AAC different bitrate 393 int32_t bitrate = bitrateList[i]; in HWTEST_F() local 397 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in HWTEST_F() 401 string outputFile = "FUNCTION_009_16000_2_" + to_string(bitrate) + "_aac_output.pcm"; in HWTEST_F() 410 * @tc.name : mp3 different bitrate 425 int32_t bitrate = bitrateList[i]; in HWTEST_F() local 428 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in HWTEST_F() 430 string inputFile = "fltp_" + to_string((int)(bitrate/1000)) + "k_44100_2_dayuhaitang.mp3"; in HWTEST_F() 431 string outputFile = "FUNCTION_010_44100_2_" + to_string(bitrate) + "_mp3_output.pcm"; in HWTEST_F() 440 * @tc.name : flac different bitrate 456 int32_t bitrate = bitrateList[i]; HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/ |
H A D | codeclist_parcel.cpp | 34 (void)parcel.WriteInt32(capabilityData.bitrate.minVal); in Marshalling() 35 (void)parcel.WriteInt32(capabilityData.bitrate.maxVal); in Marshalling() 110 capabilityData.bitrate.minVal = parcel.ReadInt32(); in Unmarshalling() 111 capabilityData.bitrate.maxVal = parcel.ReadInt32(); in Unmarshalling()
|
/foundation/multimedia/av_codec/test/unittest/codeclist_test/coverage_unit_test/ |
H A D | codeclist_core_coverage_unit_test.cpp | 84 * @tc.desc: format uncontain key bitrate 95 * @tc.desc: format key bitrate in range 100 constexpr uint64_t bitrate = 300000; in HWTEST_F() local 101 format_.PutLongValue(Tag::MEDIA_BITRATE, bitrate); in HWTEST_F() 108 * @tc.desc: format key bitrate out of range 113 constexpr uint64_t bitrate = 300000000; in HWTEST_F() local 114 format_.PutLongValue(Tag::MEDIA_BITRATE, bitrate); in HWTEST_F()
|
/foundation/multimedia/player_framework/services/services/sa_media/ipc/ |
H A D | avcodeclist_parcel.cpp | 33 (void)parcel.WriteInt32(it->bitrate.minVal); in Marshalling() 34 (void)parcel.WriteInt32(it->bitrate.maxVal); in Marshalling() 103 capabilityData.bitrate.minVal = parcel.ReadInt32(); in Unmarshalling() 104 capabilityData.bitrate.maxVal = parcel.ReadInt32(); in Unmarshalling()
|
H A D | recorder_profiles_parcel.cpp | 39 (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()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/ |
H A D | dash_media_downloader.h | 54 bool SelectBitRate(uint32_t bitrate) override; 83 bool AutoSelectBitrateInternal(uint32_t bitrate);
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hcodec_list_unit_test.cpp | 113 "maxInstance=%d; bitrate=%s; channels=%s; complexity=%s; " \ in HWTEST_F() 120 GetPrintInfo(one.bitrate).c_str(), GetPrintInfo(one.channels).c_str(), in HWTEST_F() 145 CheckRange(cap.bitrate); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/ |
H A D | avcodec_audio_avbuffer_encoder_demo.cpp | 115 int32_t &sampleRate, long &bitrate) in GetParamsByName() 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() 114 GetParamsByName(string decoderName, string inputFile, int32_t &channelCount, int32_t &sampleRate, long &bitrate) GetParamsByName() argument
|
/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | codec_param_checker.cpp | 276 int64_t bitrate; in BitrateAndQualityChecker() local 279 bool bitrateExist = format.GetLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in BitrateAndQualityChecker() 282 PrintParam(bitrateExist, MediaDescriptionKey::MD_KEY_BITRATE, bitrate); in BitrateAndQualityChecker() 287 "Param invalid, bitrate and quality mutually include"); // bitrate and quality mutually include in BitrateAndQualityChecker() 290 bool bitrateValid = capData.bitrate.InRange(bitrate); in BitrateAndQualityChecker() 293 MediaDescriptionKey::MD_KEY_BITRATE.data(), static_cast<int32_t>(bitrate), in BitrateAndQualityChecker() 294 capData.bitrate.minVal, capData.bitrate in BitrateAndQualityChecker() [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_depacketizer.h | 50 info.bitrate = 0; in GetFrameInfo()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_packetizer_test/ |
H A D | stream_packetizer_test.cpp | 92 .bitrate = 0, in HWTEST_F()
|