mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2024-12-04 05:12:00 +00:00
【修改说明】source\demuxer inner API
Signed-off-by: yangjunhui10 <yangjunhui10@huawei.com>
This commit is contained in:
parent
415b4fdfe6
commit
5174d28a76
@ -39,11 +39,10 @@ int32_t AVDemuxerImpl::Init(Source *source)
|
||||
{
|
||||
demuxerService_ = MediaServiceFactory::GetInstance().CreateAVDemuxerService();
|
||||
CHECK_AND_RETURN_RET_LOG(demuxerService_ != nullptr, MSERR_UNKNOWN, "failed to create avdemuxer service");
|
||||
uint8_t sourceServerAttr = source->GetSourceServerAttr();
|
||||
return demuxerService_->Init(sourceServerAttr);
|
||||
uint8_t sourceAttr = source->GetSourceAttr();
|
||||
return demuxerService_->Init(sourceAttr);
|
||||
}
|
||||
|
||||
|
||||
AVDemuxerImpl::AVDemuxerImpl()
|
||||
{
|
||||
MEDIA_LOGD("AVDemuxerImpl:0x%{public}06" PRIXPTR " Instances create". FAKE_POINTER(this));
|
||||
|
@ -43,10 +43,10 @@ int32_t AVSourceImpl::Init(const std::string &uri)
|
||||
return sourceService_->Init(uri);
|
||||
}
|
||||
|
||||
uint8_t GetSourceServerImpl()
|
||||
uint8_t GetSourceAttr()
|
||||
{
|
||||
CHECK_AND_RETURN_RET_LOG(sourceService_ != nullptr, MSERR_INVALID_OPERATION, "avdemuxer service died!");
|
||||
return sourceService_->GetSourceServerAttr();
|
||||
return sourceService_->GetSourceAttr();
|
||||
}
|
||||
|
||||
AVSourceImpl::AVSourceImpl()
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
uint32_t GetTrackCount() override;
|
||||
std::shared_ptr<SourceTrack> LoadSourceTrackByID(uint32_t trackId) override;
|
||||
int32_t Destroy() override;
|
||||
uint8_t GetSourceServerAttr() override;
|
||||
uint8_t GetSourceAttr() override;
|
||||
int32_t SetParameter(const Format ¶m, uint32_t trackId) override;
|
||||
std::shared_ptr<Format> GetTrackFormat(Format ¶m, uint32_t trackId) override;
|
||||
int32_t Init(const std::string &uri);
|
||||
|
Loading…
Reference in New Issue
Block a user