| /foundation/multimedia/av_codec/test/unittest/filter_test/ |
| D | muxer_filter_unit_test.cpp | 122 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; variable 123 muxerFilter_->OnLinked(streamType, meta, callback); 124 EXPECT_NE(muxerFilter_->OnLinked(streamType, meta, callback), Status::OK); 137 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; variable 143 muxerFilter_->OnBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); 146 muxerFilter_->OnBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); 162 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; variable 163 muxerFilter_->OnTransCoderBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); 165 streamType = StreamType::STREAMTYPE_ENCODED_AUDIO; 166 muxerFilter_->OnTransCoderBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); [all …]
|
| /foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/ |
| D | stream_parser_manager.cpp | 32 std::map<StreamType, void *> StreamParserManager::handlerMap_ {}; 33 std::map<StreamType, CreateFunc> StreamParserManager::createFuncMap_ {}; 34 std::map<StreamType, DestroyFunc> StreamParserManager::destroyFuncMap_ {}; 38 streamType_ = StreamType::HEVC; in StreamParserManager() 49 bool StreamParserManager::Init(StreamType streamType) in Init() argument 52 …if (handlerMap_.count(streamType) && createFuncMap_.count(streamType) && destroyFuncMap_.count(str… in Init() 57 if (streamType == StreamType::HEVC) { in Init() 59 } else if (streamType == StreamType::VVC) { in Init() 65 if (handlerMap_.count(streamType) == 0) { in Init() 66 handlerMap_[streamType] = LoadPluginFile(streamParserPath); in Init() [all …]
|
| D | stream_parser_manager.h | 28 enum StreamType { enum 36 static std::shared_ptr<StreamParserManager> Create(StreamType streamType); 41 static bool Init(StreamType streamType); 65 static bool CheckSymbol(void *handler, StreamType streamType); 66 StreamType streamType_; 68 static std::map<StreamType, void *> handlerMap_; 69 static std::map<StreamType, CreateFunc> createFuncMap_; 70 static std::map<StreamType, DestroyFunc> destroyFuncMap_;
|
| /foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/ |
| D | audio_adapter_manager.cpp | 270 int32_t AudioAdapterManager::SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) in SetSystemVolumeLevel() argument 272 …if (GetSystemVolumeLevel(streamType) == volumeLevel && currentActiveDevice_ != DEVICE_TYPE_BLUETOO… in SetSystemVolumeLevel() 277 …AUDIO_INFO_LOG("SetSystemVolumeLevel: streamType: %{public}d, deviceType: %{public}d, volumeLevel:… in SetSystemVolumeLevel() 278 streamType, currentActiveDevice_, volumeLevel); in SetSystemVolumeLevel() 280 (streamType == STREAM_VOICE_ASSISTANT || streamType == STREAM_VOICE_CALL || in SetSystemVolumeLevel() 281 streamType == STREAM_ALARM || streamType == STREAM_ACCESSIBILITY || in SetSystemVolumeLevel() 282 streamType == STREAM_VOICE_COMMUNICATION)) { in SetSystemVolumeLevel() 287 int32_t mimRet = GetMinVolumeLevel(streamType); in SetSystemVolumeLevel() 288 int32_t maxRet = GetMaxVolumeLevel(streamType); in SetSystemVolumeLevel() 304 volumeDataMaintainer_.SetStreamVolume(streamType, volumeLevel); in SetSystemVolumeLevel() [all …]
|
| D | volume_data_maintainer.cpp | 128 bool VolumeDataMaintainer::SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLe… in SaveVolume() argument 131 std::string volumeKey = GetVolumeKeyForDataShare(type, streamType); in SaveVolume() 133 AUDIO_ERR_LOG("[device %{public}d, streamType %{public}d] is not supported for datashare", in SaveVolume() 134 type, streamType); in SaveVolume() 147 bool VolumeDataMaintainer::GetVolume(DeviceType deviceType, AudioStreamType streamType) in GetVolume() argument 150 return GetVolumeInternal(deviceType, streamType); in GetVolume() 153 bool VolumeDataMaintainer::GetVolumeInternal(DeviceType deviceType, AudioStreamType streamType) in GetVolumeInternal() argument 156 if (streamType == STREAM_VOICE_CALL_ASSISTANT) { in GetVolumeInternal() 159 std::string volumeKey = GetVolumeKeyForDataShare(deviceType, streamType); in GetVolumeInternal() 161 AUDIO_ERR_LOG("[device %{public}d, streamType %{public}d] is not supported for datashare", in GetVolumeInternal() [all …]
|
| /foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/ |
| D | volume_data_maintainer.h | 63 bool SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel); 64 bool GetVolume(DeviceType deviceType, AudioStreamType streamType); 65 void SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel); 66 int32_t GetStreamVolume(AudioStreamType streamType); 69 bool SaveMuteStatus(DeviceType deviceType, AudioStreamType streamType, 71 bool GetMuteStatus(DeviceType deviceType, AudioStreamType streamType); 72 bool SetStreamMuteStatus(AudioStreamType streamType, bool muteStatus); 73 bool GetStreamMute(AudioStreamType streamType); 94 static std::string GetVolumeKeyForDataShare(DeviceType deviceType, AudioStreamType streamType); 95 static std::string GetMuteKeyForDataShare(DeviceType deviceType, AudioStreamType streamType); [all …]
|
| D | audio_adapter_manager.h | 72 int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel); 74 int32_t GetSystemVolumeLevel(AudioStreamType streamType); 76 int32_t GetSystemVolumeLevelNoMuteState(AudioStreamType streamType); 78 float GetSystemVolumeDb(AudioStreamType streamType); 80 …int32_t SetStreamMute(AudioStreamType streamType, bool mute, StreamUsage streamUsage = STREAM_USAG… 84 bool GetStreamMute(AudioStreamType streamType); 129 …float CalculateVolumeDbNonlinear(AudioStreamType streamType, DeviceType deviceType, int32_t volume… 161 int32_t GetStreamVolume(AudioStreamType streamType); 188 void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel); 190 …void HandleStreamMuteStatus(AudioStreamType streamType, bool mute, StreamUsage streamUsage = STREA… [all …]
|
| D | audio_adapter_manager_handler.h | 47 …VolumeDataEvent(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &vo… in VolumeDataEvent() 48 : deviceType_(deviceType), streamType_(streamType), volumeLevel_(volumeLevel) in VolumeDataEvent() 57 …StreamMuteStatusEvent(const AudioStreamType &streamType, const bool &mute, const StreamUsage &stre… in StreamMuteStatusEvent() 58 : streamType_(streamType), mute_(mute), streamUsage_(streamUsage) in StreamMuteStatusEvent() 74 …bool SendSaveVolume(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t… 75 bool SendStreamMuteStatusUpdate(const AudioStreamType &streamType, const bool &mute,
|
| /foundation/multimedia/camera_framework/services/camera_service/binder/server/src/ |
| D | hcapture_session_stub.cpp | 160 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleAddOutput() local 165 if (streamType == StreamType::CAPTURE) { in HandleAddOutput() 167 } else if (streamType == StreamType::REPEAT) { in HandleAddOutput() 169 } else if (streamType == StreamType::METADATA) { in HandleAddOutput() 171 } else if (streamType == StreamType::DEPTH) { in HandleAddOutput() 175 return AddOutput(streamType, stream); in HandleAddOutput() 180 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleRemoveOutput() local 185 if (streamType == StreamType::CAPTURE) { in HandleRemoveOutput() 187 } else if (streamType == StreamType::REPEAT) { in HandleRemoveOutput() 189 } else if (streamType == StreamType::METADATA) { in HandleRemoveOutput() [all …]
|
| /foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
| D | dcamera_capture_info_cmd_test.cpp | 39 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 50 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 60 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 71 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 81 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 92 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 109 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 120 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 131 "IsCapture": true, "EncodeType": 1, "StreamType": 1, 142 "IsCapture": true, "EncodeType": 1, "StreamType": 1, [all …]
|
| D | dcamera_channel_info_cmd_test.cpp | 37 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 44 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 50 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 57 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 63 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 70 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 83 "Value": {Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 90 "Value": {"SourceDevId": 0, "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]} 104 …"Value": {"SourceDevId": "TestDevId", "Detail": "[{"DataSessionFlag": "TestFlag", "StreamType": 1}… 111 "Value": {"SourceDevId": "TestDevId", "Detail": [{"StreamType": 1}]} [all …]
|
| /foundation/multimedia/av_codec/interfaces/inner_api/native/ |
| D | demuxer_filter.h | 79 Status LinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 80 Status UpdateNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 81 Status UnLinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 119 Status OnLinked(StreamType inType, const std::shared_ptr<Meta> &meta, 122 Status OnUpdated(StreamType inType, const std::shared_ptr<Meta> &meta, 125 …Status OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback>& callback) override; 133 bool FindTrackId(StreamType outType, int32_t &trackId); 134 …bool FindStreamType(StreamType &streamType, Plugins::MediaType mediaType, std::string mime, size_t… 136 void UpdateTrackIdMap(StreamType streamType, int32_t index); 137 void FaultDemuxerEventInfoWrite(StreamType& streamType); [all …]
|
| D | muxer_filter.h | 49 Status LinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 50 Status UpdateNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 51 Status UnLinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 53 Status OnLinked(StreamType inType, const std::shared_ptr<Meta> &meta, 55 Status OnUpdated(StreamType inType, const std::shared_ptr<Meta> &meta, 57 …Status OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback>& callback) override; 59 StreamType streamType, sptr<AVBufferQueueProducer> inputBufferQueue); 61 StreamType streamType, sptr<AVBufferQueueProducer> inputBufferQueue);
|
| D | audio_data_source_filter.h | 43 Status LinkNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType) override; 44 Status UpdateNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType) override; 45 Status UnLinkNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType) override; 50 Status OnLinked(StreamType inType, const std::shared_ptr<Meta>& meta, 52 Status OnUpdated(StreamType inType, const std::shared_ptr<Meta>& meta, 54 …Status OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback>& callback) override;
|
| D | audio_encoder_filter.h | 46 Status LinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 47 Status UpdateNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 48 Status UnLinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) override; 58 Status OnLinked(StreamType inType, const std::shared_ptr<Meta> &meta, 60 Status OnUpdated(StreamType inType, const std::shared_ptr<Meta> &meta, 62 …Status OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback>& callback) override;
|
| /foundation/multimedia/av_codec/services/media_engine/filters/ |
| D | muxer_filter.cpp | 52 StreamType streamType, sptr<AVBufferQueueProducer> inputBufferQueue) in MuxerBrokerListener() argument 53 : muxerFilter_(std::move(muxerFilter)), trackIndex_(trackIndex), streamType_(streamType), in MuxerBrokerListener() 77 StreamType streamType_; 219 Status MuxerFilter::LinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) in LinkNext() 224 Status MuxerFilter::UpdateNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) in UpdateNext() 230 Status MuxerFilter::UnLinkNext(const std::shared_ptr<Filter> &nextFilter, StreamType outType) in UnLinkNext() 242 Status MuxerFilter::OnLinked(StreamType inType, const std::shared_ptr<Meta> &meta, in OnLinked() 280 Status MuxerFilter::OnUpdated(StreamType inType, const std::shared_ptr<Meta> &meta, in OnUpdated() 288 Status MuxerFilter::OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback> &callba… in OnUnLinked() 295 StreamType streamType, sptr<AVBufferQueueProducer> inputBufferQueue) in OnBufferFilled() argument [all …]
|
| D | demuxer_filter.cpp | 241 StreamType streamType; in HandleTrackInfos() local 242 if (!FindStreamType(streamType, mediaType, mime, index)) { in HandleTrackInfos() 245 UpdateTrackIdMap(streamType, static_cast<int32_t>(index)); in HandleTrackInfos() 250 if (streamType == StreamType::STREAMTYPE_ENCODED_VIDEO && hasVideoFilter) { in HandleTrackInfos() 252 } else if (streamType == StreamType::STREAMTYPE_ENCODED_VIDEO && in HandleTrackInfos() 256 …= callback_->OnCallback(shared_from_this(), FilterCallBackCommand::NEXT_FILTER_NEEDED, streamType); in HandleTrackInfos() 258 FaultDemuxerEventInfoWrite(streamType); in HandleTrackInfos() 266 void DemuxerFilter::FaultDemuxerEventInfoWrite(StreamType& streamType) in FaultDemuxerEventInfoWrite() argument 275 demuxerInfo.streamType = std::to_string(static_cast<int32_t>(streamType)); in FaultDemuxerEventInfoWrite() 311 void DemuxerFilter::UpdateTrackIdMap(StreamType streamType, int32_t index) in UpdateTrackIdMap() argument [all …]
|
| /foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
| D | audio_interrupt_info.h | 157 AudioStreamType streamType = STREAM_DEFAULT; member 162 … return streamType == value.streamType && sourceType == value.sourceType && isPlay == value.isPlay; 167 …return streamType < value.streamType || (streamType == value.streamType && sourceType < value.sour… 172 …return streamType > value.streamType || (streamType == value.streamType && sourceType > value.sour… 198 res = res && parcel.WriteInt32(static_cast<int32_t>(interrupt.audioFocusType.streamType)); in Marshalling() 218 interrupt.audioFocusType.streamType = static_cast<AudioStreamType>(parcel.ReadInt32()); in Unmarshalling()
|
| /foundation/multimedia/media_foundation/interface/inner_api/filter/ |
| D | filter.h | 55 enum class StreamType { enum 98 …Callback(const std::shared_ptr<Filter>& filter, FilterCallBackCommand cmd, StreamType outType) = 0; 201 virtual Status LinkNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType); 203 virtual Status UpdateNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType); 205 virtual Status UnLinkNext(const std::shared_ptr<Filter>& nextFilter, StreamType outType); 209 virtual Status OnLinked(StreamType inType, const std::shared_ptr<Meta>& meta, 212 virtual Status OnUpdated(StreamType inType, const std::shared_ptr<Meta>& meta, 215 … virtual Status OnUnLinked(StreamType inType, const std::shared_ptr<FilterLinkCallback>& callback); 231 std::vector<StreamType> supportedInStreams_; 232 std::vector<StreamType> supportedOutStreams_; [all …]
|
| /foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/ |
| D | iaudio_policy_interface.h | 49 virtual int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) = 0; 51 virtual int32_t GetSystemVolumeLevel(AudioStreamType streamType) = 0; 53 virtual int32_t GetSystemVolumeLevelNoMuteState(AudioStreamType streamType) = 0; 55 virtual float GetSystemVolumeDb(AudioStreamType streamType) = 0; 57 virtual int32_t SetStreamMute(AudioStreamType streamType, bool mute, 62 virtual bool GetStreamMute(AudioStreamType streamType) = 0; 160 …virtual void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLev… 162 virtual void HandleStreamMuteStatus(AudioStreamType streamType, bool mute, 173 …virtual int32_t SetDoubleRingVolumeDb(const AudioStreamType &streamType, const int32_t &volumeLeve…
|
| /foundation/multimedia/audio_framework/test/moduletest/audiopolicy/1.0/src/ |
| D | audio_policy_test.cpp | 47 .streamType = STREAM_MUSIC 51 .streamType = STREAM_RING 57 .streamType = STREAM_MUSIC, 61 .streamType = STREAM_MUSIC, 68 .streamType = STREAM_MUSIC, 72 .streamType = STREAM_RING, 100 .streamType = STREAM_MUSIC 103 .streamType = STREAM_RING 156 = static_cast<AudioVolumeType>(params.streamType); 176 = static_cast<AudioVolumeType>(params.streamType); [all …]
|
| /foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/ |
| D | dcamera_stream_data_process.cpp | 28 …DataProcess::DCameraStreamDataProcess(std::string devId, std::string dhId, DCStreamType streamType) in DCameraStreamDataProcess() argument 29 : devId_(devId), dhId_(dhId), streamType_(streamType) in DCameraStreamDataProcess() 39 …DHLOGI("DCameraStreamDataProcess Destructor devId %{public}s dhId %{public}s streamType: %{public}… in ~DCameraStreamDataProcess() 52 …DHLOGD("FeedStream devId %{public}s dhId %{public}s streamId %{public}d streamType %{public}d stre… in FeedStream() 75 …blic}d, format: %{public}d, dataspace: %{public}d, encodeType: %{public}d, streamType: %{public}d", in ConfigStreams() 86 …DHLOGI("ReleaseStreams devId %{public}s dhId %{public}s streamId %{public}d streamType %{public}d", in ReleaseStreams() 108 …DHLOGI("StartCapture devId %{public}s dhId %{public}s streamType: %{public}d streamId: %{public}d,… in StartCapture() 110 "streamType: %{public}d, encodeType: %{public}d", in StartCapture() 128 …DHLOGI("StartCapture findProducer devId %{public}s dhId %{public}s streamType: %{public}d streamId… in StartCapture() 134 …DHLOGI("StartCapture CreateProducer devId %{public}s dhId %{public}s streamType: %{public}d stream… in StartCapture() [all …]
|
| /foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/ |
| D | audio_volume_change_unit_test.cpp | 102 AudioStreamType streamType = AudioStreamType::STREAM_MUSIC; variable 104 = static_cast<AudioVolumeType>(streamType); 116 EXPECT_EQ(streamType, g_streamType); 138 AudioStreamType streamType = AudioStreamType::STREAM_RING; variable 140 = static_cast<AudioVolumeType>(streamType); 152 EXPECT_EQ(streamType, g_streamType); 174 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; variable 175 AudioVolumeType volumeType = static_cast<AudioVolumeType>(streamType); 187 EXPECT_EQ(streamType, g_streamType);
|
| /foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/player/src/ |
| D | cast_stream_player_utils.cpp | 39 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetVolume() local 40 int originalVolume = audioSystemMgr->GetVolume(streamType); in GetVolume() 41 int maxVolume = audioSystemMgr->GetMaxVolume(streamType); in GetVolume() 60 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetMaxVolume() local 61 return audioSystemMgr->GetMaxVolume(streamType); in GetMaxVolume()
|
| /foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/player/src/ |
| D | cast_stream_player_utils.cpp | 39 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetVolume() local 40 int originalVolume = audioSystemMgr->GetVolume(streamType); in GetVolume() 41 int maxVolume = audioSystemMgr->GetMaxVolume(streamType); in GetVolume() 60 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetMaxVolume() local 61 return audioSystemMgr->GetMaxVolume(streamType); in GetMaxVolume()
|