Home
last modified time | relevance | path

Searched refs:sourceFormat (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dfunc_test.cpp48 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 Dproc_test.cpp47 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 Dformat_test.cpp47 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 Dnet2_test.cpp66 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 Dnet_test.cpp63 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 Drandomseek_test.cpp48 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 Dfunc2_test.cpp56 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 Dreli_test.cpp47 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 Ddemuxer.cpp53 …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 Ddemuxer.h35 int32_t GetVideoTrackInfo(std::shared_ptr<OH_AVFormat> sourceFormat);
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/demuxer_fuzzer/
H A Ddemuxer_fuzzer.cpp70 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 Davcodec_e2e_demo.cpp140 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 Davcodec_e2e_demo_api10.cpp163 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 Daudio-video-demuxer.md183 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 Dreader.cpp64 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 Dsound_parser.cpp99 MediaAVCodec::Format sourceFormat; in DoDemuxer() local
105 int32_t ret = source_->GetSourceFormat(sourceFormat); in DoDemuxer()
109sourceFormat.GetIntValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_TRACK_COUNT, sourceTrackCountIn… in DoDemuxer()
110sourceFormat.GetLongValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_DURATION, sourceDurationInfo); in DoDemuxer()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/
H A Davcodec_audio_avbuffer_decoder_demo.cpp652 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 Daudio-video-demuxer.md183 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);