Home
last modified time | relevance | path

Searched refs:streamID (Results 1 - 25 of 45) sorted by relevance

12

/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dstream_demuxer.cpp59 Status StreamDemuxer::ReadFrameData(int32_t streamID, uint64_t offset, size_t size, in ReadFrameData() argument
64 if (cacheDataMap_.find(streamID) != cacheDataMap_.end() && cacheDataMap_[streamID].CheckCacheExist(offset)) { in ReadFrameData()
66 auto memory = cacheDataMap_[streamID].GetData()->GetMemory(); in ReadFrameData()
69 return PullDataWithCache(streamID, offset, size, bufferPtr); in ReadFrameData()
73 return PullData(streamID, offset, size, bufferPtr); in ReadFrameData()
76 Status StreamDemuxer::ReadHeaderData(int32_t streamID, uint64_t offset, size_t size, in ReadHeaderData() argument
79 if (cacheDataMap_.find(streamID) != cacheDataMap_.end() && cacheDataMap_[streamID].CheckCacheExist(offset)) { in ReadHeaderData()
81 auto memory = cacheDataMap_[streamID] in ReadHeaderData()
90 GetPeekRange(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr) GetPeekRange() argument
120 PullDataWithCache(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr) PullDataWithCache() argument
167 ProcInnerDash(int32_t streamID, uint64_t offset, std::shared_ptr<Buffer>& bufferPtr) ProcInnerDash() argument
193 PullDataWithoutCache(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr) PullDataWithoutCache() argument
231 ReadRetry(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Plugins::Buffer>& data) ReadRetry() argument
253 PullData(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Plugins::Buffer>& data) PullData() argument
298 ResetCache(int32_t streamID) ResetCache() argument
344 HandleReadHeader(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) HandleReadHeader() argument
366 CheckChangeStreamID(int32_t streamID, std::shared_ptr<Buffer>& buffer) CheckChangeStreamID() argument
385 HandleReadPacket(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) HandleReadPacket() argument
407 CallbackReadAt(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) CallbackReadAt() argument
[all...]
H A Dstream_demuxer.h52 Status CallbackReadAt(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer,
54 Status ResetCache(int32_t streamID) override;
57 Status PullData(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Plugins::Buffer>& data);
58 Status PullDataWithoutCache(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr);
59 Status PullDataWithCache(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr);
60 Status GetPeekRange(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr);
61 Status ReadHeaderData(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr);
62 Status ReadFrameData(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Buffer>& bufferPtr);
63 Status ReadRetry(int32_t streamID, uint64_t offset, size_t size, std::shared_ptr<Plugins::Buffer>& data);
64 Status HandleReadHeader(int32_t streamID, int64_
[all...]
H A Dbase_stream_demuxer.cpp63 std::string BaseStreamDemuxer::SnifferMediaType(int32_t streamID) in SnifferMediaType() argument
68 typeFinder->Init(uri_, mediaDataSize_, checkRange_, peekRange_, streamID); in SnifferMediaType()
117 Status BaseStreamDemuxer::SetNewVideoStreamID(int32_t streamID) in SetNewVideoStreamID() argument
119 MEDIA_LOG_I_SHORT("SetNewVideoStreamID id: " PUBLIC_LOG_D32, streamID); in SetNewVideoStreamID()
121 newVideoStreamID_.store(streamID); in SetNewVideoStreamID()
125 Status BaseStreamDemuxer::SetNewAudioStreamID(int32_t streamID) in SetNewAudioStreamID() argument
127 MEDIA_LOG_I("SetNewAudioStreamID id: " PUBLIC_LOG_D32, streamID); in SetNewAudioStreamID()
129 newAudioStreamID_.store(streamID); in SetNewAudioStreamID()
133 Status BaseStreamDemuxer::SetNewSubtitleStreamID(int32_t streamID) in SetNewSubtitleStreamID() argument
135 MEDIA_LOG_I("SetNewSubtitleStreamID id: " PUBLIC_LOG_D32, streamID); in SetNewSubtitleStreamID()
[all...]
H A Ddemuxer_plugin_manager.cpp47 DataSourceImpl::DataSourceImpl(const std::shared_ptr<BaseStreamDemuxer>& stream, int32_t streamID) in DataSourceImpl() argument
49 streamID_(streamID) in DataSourceImpl()
61 Status DataSourceImpl::SetStreamID(int32_t streamID) in SetStreamID() argument
63 streamID_ = streamID; in SetStreamID()
192 streamInfoMap_[streamIndex].streamID = streamIndex; in InitDefaultPlay()
215 std::shared_ptr<Plugins::DemuxerPlugin> DemuxerPluginManager::GetPluginByStreamID(int32_t streamID) in GetPluginByStreamID() argument
217 if (streamID != -1) { in GetPluginByStreamID()
218 return streamInfoMap_[streamID].plugin; in GetPluginByStreamID()
223 void DemuxerPluginManager::GetTrackInfoByStreamID(int32_t streamID, int32_t& trackId, int32_t& innerTrackId) in GetTrackInfoByStreamID() argument
227 return item.second.streamID in GetTrackInfoByStreamID()
236 LoadDemuxerPlugin(int32_t streamID, std::shared_ptr<BaseStreamDemuxer> streamDemuxer) LoadDemuxerPlugin() argument
300 AddMediaInfo(int32_t streamID, Plugins::MediaInfo& mediaInfo) AddMediaInfo() argument
313 AddTrackMapInfo(int32_t streamID, int32_t trackIndex) AddTrackMapInfo() argument
685 UpdateMediaInfo(int32_t streamID) UpdateMediaInfo() argument
757 int32_t streamID = GetStreamIDByTrackID(trackId); GetStreamTypeByTrackID() local
[all...]
H A Ddemuxer_plugin_manager.h51 explicit DataSourceImpl(const std::shared_ptr<BaseStreamDemuxer>& stream, int32_t streamID);
56 Status SetStreamID(int32_t streamID);
70 int32_t streamID = -1; member in OHOS::Media::MediaStreamInfo
83 int32_t streamID = -1; member in OHOS::Media::MediaTrackMap
93 std::shared_ptr<Plugins::DemuxerPlugin> GetPluginByStreamID(int32_t streamID);
94 void GetTrackInfoByStreamID(int32_t streamID, int32_t& trackId, int32_t& innerTrackId);
110 Status LoadDemuxerPlugin(int32_t streamID, std::shared_ptr<BaseStreamDemuxer> streamDemuxer);
140 void AddMediaInfo(int32_t streamID, Plugins::MediaInfo& mediaInfo);
144 Status AddTrackMapInfo(int32_t streamID, int32_t trackIndex);
145 Status UpdateMediaInfo(int32_t streamID);
[all...]
H A Dbase_stream_demuxer.h101 virtual Status ResetCache(int32_t streamID) = 0;
107 virtual Status CallbackReadAt(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer,
115 std::string SnifferMediaType(int32_t streamID);
119 Status SetNewAudioStreamID(int32_t streamID);
120 Status SetNewVideoStreamID(int32_t streamID);
121 Status SetNewSubtitleStreamID(int32_t streamID);
/foundation/multimedia/player_framework/frameworks/native/soundpool/
H A Dstream_id_manager.cpp50 int32_t streamID = cacheBuffer.second->GetStreamID(); in ~StreamIDManager() local
51 cacheBuffer.second->Stop(streamID); in ~StreamIDManager()
94 int32_t streamID = GetFreshStreamID(soundID, playParameters); in Play() local
97 if (streamID <= 0) { in Play()
101 streamID = nextStreamID_; in Play()
109 soundID, streamID); in Play()
120 cacheBuffers_.emplace(streamID, cacheBuffer); in Play()
123 MEDIA_LOGI("StreamIDManager::SetPlay start soundID:%{public}d, streamID:%{public}d", soundID, streamID); in Play()
124 SetPlay(soundID, streamID, playParameter in Play()
128 SetPlay(const int32_t soundID, const int32_t streamID, const PlayParams playParameters) SetPlay() argument
181 QueueAndSortPlayingStreamID(int32_t streamID) QueueAndSortPlayingStreamID() argument
251 AddPlayTask(const int32_t streamID, const PlayParams playParameters) AddPlayTask() argument
263 DoPlay(const int32_t streamID) DoPlay() argument
288 FindCacheBuffer(const int32_t streamID) FindCacheBuffer() argument
307 ReorderStream(int32_t streamID, int32_t priority) ReorderStream() argument
346 ClearStreamIDInDeque(int32_t streamID) ClearStreamIDInDeque() argument
370 int32_t streamID = 0; GetFreshStreamID() local
[all...]
H A Dsoundpool.cpp116 const int32_t streamID = streamIdManager_->Play(soundParser, playParameters); in Play() local
117 MEDIA_LOGI("SoundPool::Play streamID::%{public}d", streamID); in Play()
118 return streamID; in Play()
121 int32_t SoundPool::Stop(int32_t streamID) in Stop() argument
125 MEDIA_LOGI("SoundPool::Stop streamID::%{public}d", streamID); in Stop()
127 if (std::shared_ptr<CacheBuffer> cacheBuffer = streamIdManager_->FindCacheBuffer(streamID)) { in Stop()
128 return cacheBuffer->Stop(streamID); in Stop()
133 int32_t SoundPool::SetLoop(int32_t streamID, int32_ argument
144 SetPriority(int32_t streamID, int32_t priority) SetPriority() argument
161 SetRate(int32_t streamID, AudioStandard::AudioRendererRate renderRate) SetRate() argument
172 SetVolume(int32_t streamID, float leftVolume, float rightVolume) SetVolume() argument
194 int32_t streamID = streamIdManager_->GetStreamIDBySoundID(soundID); Unload() local
[all...]
H A Dcache_buffer.h54 const int32_t &soundID, const int32_t &streamID);
58 int32_t PreparePlay(const int32_t streamID, const AudioStandard::AudioRendererInfo audioRendererInfo,
60 int32_t DoPlay(const int32_t streamID);
62 int32_t Stop(const int32_t streamID);
63 int32_t SetVolume(const int32_t streamID, const float leftVolume, const float rightVolume);
64 int32_t SetRate(const int32_t streamID, const AudioStandard::AudioRendererRate renderRate);
65 int32_t SetPriority(const int32_t streamID, const int32_t priority);
66 int32_t SetLoop(const int32_t streamID, const int32_t loop);
67 int32_t SetParallelPlayFlag(const int32_t streamID, const bool parallelPlayFlag);
93 std::unique_ptr<AudioStandard::AudioRenderer> CreateAudioRenderer(const int32_t streamID,
[all...]
H A Dcache_buffer.cpp30 const size_t &cacheDataTotalSize, const int32_t &soundID, const int32_t &streamID) : trackFormat_(trackFormat), in CacheBuffer()
31 cacheData_(cacheData), cacheDataTotalSize_(cacheDataTotalSize), soundID_(soundID), streamID_(streamID), in CacheBuffer()
35 MEDIA_LOGI("Construction CacheBuffer soundID:%{public}d, streamID:%{public}d", soundID, streamID); in CacheBuffer()
40 MEDIA_LOGI("Destruction CacheBuffer soundID:%{public}d, streamID:%{public}d", soundID_, streamID_); in ~CacheBuffer()
56 std::unique_ptr<AudioStandard::AudioRenderer> CacheBuffer::CreateAudioRenderer(const int32_t streamID, in CreateAudioRenderer() argument
60 CHECK_AND_RETURN_RET_LOG(streamID == streamID_, nullptr, in CreateAudioRenderer()
61 "Invalid streamID, failed to create normal audioRenderer."); in CreateAudioRenderer()
118 int32_t CacheBuffer::PreparePlay(const int32_t streamID, const AudioStandard::AudioRendererInfo audioRendererInfo, in PreparePlay() argument
123 MEDIA_LOGI("CacheBuffer::PreparePlay CreateAudioRenderer start streamID in PreparePlay()
28 CacheBuffer(const Format &trackFormat, const std::deque<std::shared_ptr<AudioBufferEntry>> &cacheData, const size_t &cacheDataTotalSize, const int32_t &soundID, const int32_t &streamID) CacheBuffer() argument
135 DoPlay(const int32_t streamID) DoPlay() argument
214 DealPlayParamsBeforePlay(const int32_t streamID, const PlayParams playParams) DealPlayParamsBeforePlay() argument
316 Stop(const int32_t streamID) Stop() argument
348 SetVolume(const int32_t streamID, const float leftVolume, const float rightVolume) SetVolume() argument
362 SetRate(const int32_t streamID, const AudioStandard::AudioRendererRate renderRate) SetRate() argument
374 SetPriority(const int32_t streamID, const int32_t priority) SetPriority() argument
383 SetLoop(const int32_t streamID, const int32_t loop) SetLoop() argument
393 SetParallelPlayFlag(const int32_t streamID, const bool parallelPlayFlag) SetParallelPlayFlag() argument
[all...]
H A Dstream_id_manager.h37 std::shared_ptr<CacheBuffer> FindCacheBuffer(const int32_t streamID);
45 int32_t ReorderStream(int32_t streamID, int32_t priority);
47 int32_t ClearStreamIDInDeque(int32_t streamID);
86 int32_t streamID; member
91 int32_t SetPlay(const int32_t soundID, const int32_t streamID, const PlayParams playParameters);
92 int32_t AddPlayTask(const int32_t streamID, const PlayParams playParameters);
93 int32_t DoPlay(const int32_t streamID);
96 void QueueAndSortPlayingStreamID(int32_t streamID);
H A Dsoundpool.h41 int32_t Stop(int32_t streamID) override;
43 int32_t SetLoop(int32_t streamID, int32_t loop) override;
45 int32_t SetPriority(int32_t streamID, int32_t priority) override;
47 int32_t SetRate(int32_t streamID, AudioStandard::AudioRendererRate renderRate) override;
49 int32_t SetVolume(int32_t streamID, float leftVolume, float rightVolume) override;
/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/
H A Dsoundpool_mock.cpp64 int32_t SoundPoolMock::Stop(int32_t streamID) in Stop() argument
70 return soundPool_->Stop(streamID); in Stop()
73 int32_t SoundPoolMock::SetLoop(int32_t streamID, int32_t loop) in SetLoop() argument
76 return soundPool_->SetLoop(streamID, loop); in SetLoop()
79 int32_t SoundPoolMock::SetPriority(int32_t streamID, int32_t priority) in SetPriority() argument
82 return soundPool_->SetPriority(streamID, priority); in SetPriority()
85 int32_t SoundPoolMock::SetRate(int32_t streamID, AudioStandard::AudioRendererRate renderRate) in SetRate() argument
88 return soundPool_->SetRate(streamID, renderRate); in SetRate()
91 int32_t SoundPoolMock::SetVolume(int32_t streamID, float leftVolume, float rigthVolume) in SetVolume() argument
94 return soundPool_->SetVolume(streamID, leftVolum in SetVolume()
[all...]
/foundation/multimedia/player_framework/interfaces/inner_api/native/soundpool/include/
H A Disoundpool.h68 * @return Returns a non-zero streamID if successful, zero if it fails.
77 * @param streamID Returned by the play()
82 virtual int32_t Stop(int32_t streamID) = 0;
87 * @param streamID Returned by the play()
93 virtual int32_t SetLoop(int32_t streamID, int32_t loop) = 0;
98 * @param streamID Returned by the play()
104 virtual int32_t SetPriority(int32_t streamID, int32_t priority) = 0;
109 * @param streamID Returned by the play()
115 virtual int32_t SetRate(int32_t streamID, AudioStandard::AudioRendererRate renderRate) = 0;
120 * @param streamID Returne
[all...]
/foundation/multimedia/player_framework/test/unittest/soundpool_test/include/
H A Dsoundpool_mock.h46 int32_t Stop(int32_t streamID);
47 int32_t SetLoop(int32_t streamID, int32_t loop);
48 int32_t SetPriority(int32_t streamID, int32_t priority);
49 int32_t SetRate(int32_t streamID, AudioStandard::AudioRendererRate renderRate);
50 int32_t SetVolume(int32_t streamID, float leftVolume, float rigthVolume);
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/
H A Dsoundpoolplaystop_fuzzer.cpp119 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolStop() local
121 if (streamID > 0) { in FuzzSoundPoolStop()
122 TestSoundPool::Stop(streamID); in FuzzSoundPoolStop()
124 streamID = *reinterpret_cast<int32_t *>(data); in FuzzSoundPoolStop()
125 TestSoundPool::Stop(streamID); in FuzzSoundPoolStop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetloop_fuzzer/
H A Dsoundpoolsetloop_fuzzer.cpp71 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetLoop() local
73 if (streamID > 0) { in FuzzSoundPoolSetLoop()
74 TestSoundPool::SetLoop(streamID, loop); in FuzzSoundPoolSetLoop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetrate_fuzzer/
H A Dsoundpoolsetrate_fuzzer.cpp74 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetRate() local
76 if (streamID > 0) { in FuzzSoundPoolSetRate()
77 TestSoundPool::SetRate(streamID, rate); in FuzzSoundPoolSetRate()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetvolume_fuzzer/
H A Dsoundpoolsetvolume_fuzzer.cpp73 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetVolume() local
75 if (streamID > 0) { in FuzzSoundPoolSetVolume()
77 TestSoundPool::SetVolume(streamID, leftVolume, rightVolume); in FuzzSoundPoolSetVolume()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetpriority_fuzzer/
H A Dsoundpoolsetpriority_fuzzer.cpp71 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetPriority() local
73 if (streamID > 0) { in FuzzSoundPoolSetPriority()
74 TestSoundPool::SetPriority(streamID, priority); in FuzzSoundPoolSetPriority()
/foundation/multimedia/av_codec/services/media_engine/modules/source/
H A Dsource.h98 Status SetCurrentBitRate(int32_t bitRate, int32_t streamID);
103 Status Read(int32_t streamID, std::shared_ptr<Buffer>& buffer, uint64_t offset, size_t expectedLen);
108 Status SelectStream(int32_t streamID);
H A Dsource.cpp190 Status Source::SetCurrentBitRate(int32_t bitRate, int32_t streamID) in SetCurrentBitRate() argument
197 return plugin_->SetCurrentBitRate(bitRate, streamID); in SetCurrentBitRate()
364 Status Source::Read(int32_t streamID, std::shared_ptr<Buffer>& buffer, uint64_t offset, size_t expectedLen) in Read() argument
368 return plugin_->Read(streamID, buffer, offset, expectedLen); in Read()
475 Status Source::SelectStream(int32_t streamID) in SelectStream() argument
478 return plugin_->SelectStream(streamID); in SelectStream()
/foundation/multimedia/av_codec/interfaces/plugin/
H A Dsource_plugin.h210 virtual Status SetCurrentBitRate(int32_t bitRate, int32_t streamID) in SetCurrentBitRate() argument
220 virtual Status SelectStream(int32_t streamID) in SelectStream() argument
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/
H A Dhttp_source_plugin.h55 Status SelectStream(int32_t streamID) override;
60 Status SetCurrentBitRate(int32_t bitRate, int32_t streamID) override;
/foundation/multimedia/player_framework/interfaces/inner_api/native/system_sound_manager/include/
H A Dsystem_tone_player.h79 * @return Returns a non-zero streamID if successful, zero if it fails.
89 * @return Returns a non-zero streamID if successful, zero if it fails.
97 * @param streamID Indicates the streamID returned by the Start() or Start(SystemToneOptions systemToneOptions).
102 virtual int32_t Stop(const int32_t &streamID) = 0;

Completed in 10 milliseconds

12