Home
last modified time | relevance | path

Searched refs:avsource_ (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/capi_demo/
H A Davsource_demo.cpp37 this->avsource_ = OH_AVSource_CreateWithURI(uri); in CreateWithURI()
38 if (!avsource_) { in CreateWithURI()
59 this->avsource_ = OH_AVSource_CreateWithFD(fd, offset, size); in CreateWithFD()
60 if (!avsource_) { in CreateWithFD()
69 this->avsource_ = OH_AVSource_CreateWithDataSource(dataSource); in CreateWithDataSource()
70 if (!avsource_) { in CreateWithDataSource()
79 return this->avsource_; in GetAVSource()
84 int32_t ret = static_cast<int32_t>(OH_AVSource_Destroy(this->avsource_)); in Destroy()
94 this->avformat_ = OH_AVSource_GetSourceFormat(this->avsource_); in GetSourceFormat()
104 this->trackFormat_ = OH_AVSource_GetTrackFormat(this->avsource_, trackIndex); in GetTrackFormat()
H A Davsource_demo.h37 OH_AVSource* avsource_ = nullptr;
H A Davdemuxer_demo.cpp43 this->avsource_ = avsource; in CreateWithSource()
44 if (!this->avsource_) { in CreateWithSource()
H A Davdemuxer_demo.h60 OH_AVSource* avsource_ = nullptr;
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/inner_demo/
H A Dinner_source_demo.cpp38 this->avsource_ = AVSourceFactory::CreateWithURI(uri.c_str()); in CreateWithURI()
39 if (!avsource_) { in CreateWithURI()
60 this->avsource_ = AVSourceFactory::CreateWithFD(fd, offset, size); in CreateWithFD()
61 if (!avsource_) { in CreateWithFD()
70 if (this->avsource_ != nullptr) { in GetSourceFormat()
71 int32_t ret = this->avsource_->GetSourceFormat(source_format_); in GetSourceFormat()
81 if (this->avsource_ != nullptr) { in GetTrackFormat()
82 int32_t ret = this->avsource_->GetTrackFormat(track_format_, trackIndex); in GetTrackFormat()
H A Dinner_source_demo.h34 std::shared_ptr<AVSource> avsource_ = nullptr; variable
H A Dinner_demuxer_demo.h56 std::shared_ptr<AVSource> avsource_ = nullptr;
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dinner_demuxer_parser_sample.cpp82 this->avsource_ = AVSourceFactory::CreateWithFD(fd, 0, GetFileSize(filePath)); in InnerDemuxerParserSample()
83 if (!avsource_) { in InnerDemuxerParserSample()
87 this->demuxer_ = AVDemuxerFactory::CreateWithSource(avsource_); in InnerDemuxerParserSample()
92 int32_t ret = this->avsource_->GetSourceFormat(source_format_); in InnerDemuxerParserSample()
101 ret = this->avsource_->GetTrackFormat(track_format_, i); in InnerDemuxerParserSample()
122 if (avsource_ != nullptr) { in ~InnerDemuxerParserSample()
123 avsource_ = nullptr; in ~InnerDemuxerParserSample()
H A Dinner_demuxer_sample.cpp60 this->avsource_ = AVSourceFactory::CreateWithFD(fd, 0, size); in InitWithFile()
62 this->avsource_ = AVSourceFactory::CreateWithURI(const_cast<char*>(path.data())); in InitWithFile()
64 if (!avsource_) { in InitWithFile()
68 this->demuxer_ = AVDemuxerFactory::CreateWithSource(avsource_); in InitWithFile()
73 int32_t ret = this->avsource_->GetSourceFormat(source_format_); in InitWithFile()
83 ret = this->avsource_->GetTrackFormat(track_format_, i); in InitWithFile()
350 int32_t ret = this->avsource_->GetTrackFormat(track_format_, trackIndex); in CheckTimedMetaFormat()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/
H A Davcodec_audio_avbuffer_decoder_demo.cpp324 if (avsource_ != nullptr) { in ~ADecBufferDemo()
325 OH_AVSource_Destroy(avsource_); in ~ADecBufferDemo()
326 avsource_ = nullptr; in ~ADecBufferDemo()
640 avsource_ = OH_AVSource_CreateWithFD(fd, 0, size); in CreatDeMuxer()
641 if (avsource_ == nullptr) { in CreatDeMuxer()
646 avdemuxer_ = OH_AVDemuxer_CreateWithSource(avsource_); in CreatDeMuxer()
652 OH_AVFormat *sourceFormat = OH_AVSource_GetSourceFormat(avsource_); in CreatDeMuxer()
657 trackFormat = OH_AVSource_GetTrackFormat(avsource_, index); in CreatDeMuxer()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/include/
H A Dinner_demuxer_sample.h59 std::shared_ptr<AVSource> avsource_ = nullptr; variable
H A Dinner_demuxer_parser_sample.h98 std::shared_ptr<AVSource> avsource_ = nullptr; variable
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/include/
H A Davcodec_audio_avbuffer_decoder_demo.h294 OH_AVSource* avsource_ = nullptr; variable
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/
H A Davdemuxer_demo_runner.cpp298 innerDemuxerDemo->CreateWithSource(innerSourceDemo->avsource_); in RunInnerSourceDemuxer()
344 innerDemuxerDemo->CreateWithSource(innerSourceDemo->avsource_); in RunRefParserDemuxer()