/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
H A D | func_test.cpp | 48 static OH_AVFormat *sourceFormat = nullptr; variable 70 if (sourceFormat != nullptr) { in TearDown() 71 OH_AVFormat_Destroy(sourceFormat); in TearDown() 72 sourceFormat = nullptr; in TearDown() 1159 ASSERT_NE(sourceFormat, nullptr); 1220 ASSERT_NE(sourceFormat, nullptr); 1281 ASSERT_NE(sourceFormat, nullptr); 1338 ASSERT_NE(sourceFormat, nullptr); 1392 ASSERT_NE(sourceFormat, nullptr); 1448 ASSERT_NE(sourceFormat, nullptr); [all …]
|
H A D | proc_test.cpp | 47 static OH_AVFormat *sourceFormat = nullptr; variable 80 if (sourceFormat != nullptr) { in TearDown() 81 OH_AVFormat_Destroy(sourceFormat); in TearDown() 82 sourceFormat = nullptr; in TearDown() 235 sourceFormat = OH_AVSource_GetSourceFormat(source); 1166 ASSERT_NE(sourceFormat, nullptr); 1189 ASSERT_NE(sourceFormat, nullptr); 1276 ASSERT_NE(sourceFormat, nullptr); 1322 ASSERT_NE(sourceFormat, nullptr); 1345 ASSERT_NE(sourceFormat, nullptr); [all …]
|
H A D | format_test.cpp | 47 static OH_AVFormat *sourceFormat = nullptr; variable 84 if (sourceFormat != nullptr) { in TearDown() 85 OH_AVFormat_Destroy(sourceFormat); in TearDown() 86 sourceFormat = nullptr; in TearDown() 543 sourceFormat = OH_AVSource_GetSourceFormat(source); 544 SetAllParam(sourceFormat); 600 sourceFormat = OH_AVSource_GetSourceFormat(source); 603 SetAllParam(sourceFormat); 659 SetOtherAllParam(sourceFormat); 714 ASSERT_NE(sourceFormat, nullptr); [all …]
|
H A D | net2_test.cpp | 66 static OH_AVFormat *sourceFormat = nullptr; variable 108 if (sourceFormat != nullptr) { in TearDown() 109 OH_AVFormat_Destroy(sourceFormat); in TearDown() 110 sourceFormat = nullptr; in TearDown() 850 sourceFormat = OH_AVSource_GetSourceFormat(source); 892 sourceFormat = OH_AVSource_GetSourceFormat(source); 943 sourceFormat = OH_AVSource_GetSourceFormat(source); 974 sourceFormat = OH_AVSource_GetSourceFormat(source); 1002 sourceFormat = OH_AVSource_GetSourceFormat(source); 1003 ASSERT_NE(sourceFormat, nullptr); [all …]
|
H A D | net_test.cpp | 63 static OH_AVFormat *sourceFormat = nullptr; variable 179 if (sourceFormat != nullptr) { in TearDown() 180 OH_AVFormat_Destroy(sourceFormat); in TearDown() 181 sourceFormat = nullptr; in TearDown() 491 sourceFormat = OH_AVSource_GetSourceFormat(source); 516 sourceFormat = OH_AVSource_GetSourceFormat(source); 733 sourceFormat = OH_AVSource_GetSourceFormat(source); 775 sourceFormat = OH_AVSource_GetSourceFormat(source); 921 sourceFormat = OH_AVSource_GetSourceFormat(source); 963 sourceFormat = OH_AVSource_GetSourceFormat(source); [all …]
|
H A D | randomseek_test.cpp | 48 static OH_AVFormat *sourceFormat = nullptr; variable 71 if (sourceFormat != nullptr) { in TearDown() 72 OH_AVFormat_Destroy(sourceFormat); in TearDown() 73 sourceFormat = nullptr; in TearDown() 129 sourceFormat = OH_AVSource_GetSourceFormat(source); in CheckSeekResult() 130 ASSERT_NE(sourceFormat, nullptr); in CheckSeekResult() 131 ASSERT_TRUE(OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &g_trackCount)); in CheckSeekResult() 133 ASSERT_TRUE(OH_AVFormat_GetLongValue(sourceFormat, OH_MD_KEY_DURATION, &duration)); in CheckSeekResult()
|
H A D | func2_test.cpp | 56 static OH_AVFormat *sourceFormat = nullptr; variable 81 if (sourceFormat != nullptr) { in TearDown() 82 OH_AVFormat_Destroy(sourceFormat); in TearDown() 83 sourceFormat = nullptr; in TearDown() 140 sourceFormat = OH_AVSource_GetSourceFormat(source); 187 sourceFormat = OH_AVSource_GetSourceFormat(source); 244 sourceFormat = OH_AVSource_GetSourceFormat(source); 300 sourceFormat = OH_AVSource_GetSourceFormat(source); 354 sourceFormat = OH_AVSource_GetSourceFormat(source); 394 sourceFormat = OH_AVSource_GetSourceFormat(source); [all …]
|
H A D | reli_test.cpp | 47 static OH_AVFormat *sourceFormat = nullptr; variable 75 if (sourceFormat != nullptr) { in TearDown() 76 OH_AVFormat_Destroy(sourceFormat); in TearDown() 77 sourceFormat = nullptr; in TearDown() 480 sourceFormat = OH_AVSource_GetSourceFormat(source); 523 sourceFormat = OH_AVSource_GetSourceFormat(source); 551 sourceFormat = OH_AVSource_GetSourceFormat(source); 596 sourceFormat = OH_AVSource_GetSourceFormat(source); 643 sourceFormat = OH_AVSource_GetSourceFormat(source); 690 sourceFormat = OH_AVSource_GetSourceFormat(source); [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/data_producer/demuxer/ |
H A D | demuxer.cpp | 53 …auto sourceFormat = std::shared_ptr<OH_AVFormat>(OH_AVSource_GetSourceFormat(source_.get()), OH_AV… in Init() local 54 …CHECK_AND_RETURN_RET_LOG(sourceFormat != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Get source format fai… in Init() 56 int32_t ret = GetVideoTrackInfo(sourceFormat); in Init() 94 int32_t Demuxer::GetVideoTrackInfo(std::shared_ptr<OH_AVFormat> sourceFormat) in GetVideoTrackInfo() argument 97 OH_AVFormat_GetIntValue(sourceFormat.get(), OH_MD_KEY_TRACK_COUNT, &trackCount); in GetVideoTrackInfo() 118 OH_AVFormat_GetLongValue(sourceFormat.get(), OH_MD_KEY_DURATION, &sampleInfo_->videoDuration); in GetVideoTrackInfo()
|
H A D | demuxer.h | 35 int32_t GetVideoTrackInfo(std::shared_ptr<OH_AVFormat> sourceFormat);
|
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/demuxer_fuzzer/ |
H A D | demuxer_fuzzer.cpp | 70 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(source); in RunNormalDemuxer() local 71 OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount); in RunNormalDemuxer() 113 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(source); in RunNormalDemuxerApi11() local 114 OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount); in RunNormalDemuxerApi11()
|
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/ |
H A D | avcodec_e2e_demo.cpp | 140 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(inSource); in AVCodecE2EDemo() local 141 OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount); in AVCodecE2EDemo() 170 OH_AVFormat_Destroy(sourceFormat); in AVCodecE2EDemo()
|
H A D | avcodec_e2e_demo_api10.cpp | 163 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(inSource); in AVCodecE2EDemoAPI10() local 164 OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount); in AVCodecE2EDemoAPI10() 191 OH_AVFormat_Destroy(sourceFormat); in AVCodecE2EDemoAPI10()
|
/ohos5.0/docs/zh-cn/application-dev/media/avcodec/ |
H A D | audio-video-demuxer.md | 183 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(source); 184 if (sourceFormat == nullptr) { 189 if (!OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount)) { 193 OH_AVFormat_Destroy(sourceFormat);
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/ |
H A D | reader.cpp | 64 Format sourceFormat; in GetSourceFormat() local 65 auto ret = source_->GetSourceFormat(sourceFormat); in GetSourceFormat() 67 sourceFormat_ = std::make_shared<Format>(sourceFormat); in GetSourceFormat()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/soundpool/ |
H A D | sound_parser.cpp | 99 MediaAVCodec::Format sourceFormat; in DoDemuxer() local 105 int32_t ret = source_->GetSourceFormat(sourceFormat); in DoDemuxer() 109 …sourceFormat.GetIntValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_TRACK_COUNT, sourceTrackCountIn… in DoDemuxer() 110 … sourceFormat.GetLongValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_DURATION, sourceDurationInfo); in DoDemuxer()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/ |
H A D | avcodec_audio_avbuffer_decoder_demo.cpp | 652 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(avsource_); in CreatDeMuxer() local 654 int ret = OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &g_trackCount); in CreatDeMuxer() 672 if (sourceFormat != nullptr) { in CreatDeMuxer() 673 OH_AVFormat_Destroy(sourceFormat); in CreatDeMuxer() 674 sourceFormat = nullptr; in CreatDeMuxer()
|
/ohos5.0/docs/en/application-dev/media/avcodec/ |
H A D | audio-video-demuxer.md | 183 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(source); 184 if (sourceFormat == nullptr) { 189 if (!OH_AVFormat_GetIntValue(sourceFormat, OH_MD_KEY_TRACK_COUNT, &trackCount)) { 193 OH_AVFormat_Destroy(sourceFormat);
|