/ohos5.0/foundation/multimedia/av_codec/test/unittest/filter_test/ |
H A D | audio_sink_filter_unit_test.cpp | 69 audioSinkFilter_->state_ = FilterState::RUNNING; 71 audioSinkFilter_->state_ = FilterState::CREATED; 73 audioSinkFilter_->state_ = FilterState::READY; 74 audioSinkFilter_->state_ = FilterState::PAUSED; 76 audioSinkFilter_->state_ = FilterState::CREATED; 87 audioSinkFilter_->state_ = FilterState::PAUSED; 88 audioSinkFilter_->state_ = FilterState::STOPPED; 90 audioSinkFilter_->state_ = FilterState::ERROR; 91 audioSinkFilter_->state_ = FilterState::RELEASED; 102 audioSinkFilter_->state_ = FilterState::PAUSED; [all …]
|
H A D | subtitle_sink_filter_unit_test.cpp | 91 subtitleSinkFilter_->state_ = FilterState::RUNNING; 97 subtitleSinkFilter_->state_ = FilterState::READY; 103 subtitleSinkFilter_->state_ = FilterState::PAUSED; 109 subtitleSinkFilter_->state_ = FilterState::ERROR; 128 subtitleSinkFilter_->state_ = FilterState::PAUSED; 132 subtitleSinkFilter_->state_ = FilterState::STOPPED; 136 subtitleSinkFilter_->state_ = FilterState::READY; 140 subtitleSinkFilter_->state_ = FilterState::RUNNING; 144 subtitleSinkFilter_->state_ = FilterState::ERROR; 161 subtitleSinkFilter_->state_ = FilterState::PAUSED; [all …]
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | subtitle_sink_filter.cpp | 93 state_ = FilterState::READY; in DoPrepare() 100 if (state_ == FilterState::RUNNING) { in DoStart() 103 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in DoStart() 112 state_ = FilterState::RUNNING; in DoStart() 120 if (state_ == FilterState::PAUSED || state_ == FilterState::STOPPED) { in DoPause() 124 if (state_ != FilterState::READY && state_ != FilterState::RUNNING) { in DoPause() 128 state_ = FilterState::PAUSED; in DoPause() 138 if (state_ == FilterState::PAUSED) { in DoResume() 139 state_ = FilterState::RUNNING; in DoResume() 164 state_ = FilterState::STOPPED; in DoStop()
|
H A D | audio_sink_filter.cpp | 96 state_ = FilterState::READY; in DoPrepare() 103 if (state_ == FilterState::RUNNING || isCancelStart_) { in DoStart() 106 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in DoStart() 116 state_ = FilterState::RUNNING; in DoStart() 124 if (state_ == FilterState::PAUSED || state_ == FilterState::STOPPED) { in DoPause() 128 if (state_ != FilterState::READY && state_ != FilterState::RUNNING) { in DoPause() 132 state_ = FilterState::PAUSED; in DoPause() 142 if (state_ == FilterState::PAUSED) { in DoResume() 144 state_ = FilterState::RUNNING; in DoResume() 169 state_ = FilterState::STOPPED; in DoStop()
|
/ohos5.0/foundation/multimedia/media_foundation/src/filter/ |
H A D | filter.cpp | 72 ChangeState(ret == Status::OK ? FilterState::INITIALIZED : FilterState::ERROR); in LinkPipeLine() 77 ChangeState(ret == Status::OK ? FilterState::INITIALIZED : FilterState::ERROR); in LinkPipeLine() 97 if (curState_ == FilterState::ERROR) { in PrepareDone() 105 ChangeState(FilterState::ERROR); in PrepareDone() 116 ChangeState(FilterState::READY); in PrepareDone() 149 ChangeState(ret == Status::OK ? FilterState::RUNNING : FilterState::ERROR); in StartDone() 210 ChangeState(ret == Status::OK ? FilterState::PAUSED : FilterState::ERROR); in PauseDone() 243 ChangeState(ret == Status::OK ? FilterState::RUNNING : FilterState::ERROR); in ResumeDone() 306 ChangeState(ret == Status::OK ? FilterState::STOPPED : FilterState::ERROR); in StopDone() 350 ChangeState(ret == Status::OK ? FilterState::RELEASED : FilterState::ERROR); in ReleaseDone() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/sink/audio_sink/ |
H A D | audio_sink_filter.cpp | 106 if (state_.load() == FilterState::CREATED) { in GetParameter() 186 state_ = FilterState::READY; in Configure() 203 if (isFlushing || state_.load() == FilterState::INITIALIZED) { in PushData() 207 if (state_.load() != FilterState::RUNNING) { in PushData() 212 … return state_ == FilterState::RUNNING || state_ == FilterState::INITIALIZED || isFlushing; in PushData() 216 if (isFlushing || state_.load() == FilterState::INITIALIZED) { in PushData() 239 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 276 if (state_ != FilterState::READY && state_ != FilterState::RUNNING) { in Pause() 290 if (state_ == FilterState::PAUSED) { in Resume() 292 state_ = FilterState::RUNNING; in Resume()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/core/ |
H A D | pipeline_core.cpp | 33 state_ = FilterState::INITIALIZED; in Init() 38 state_ = FilterState::PREPARING; in Prepare() 57 state_ = FilterState::RUNNING; in Start() 67 if (state_ == FilterState::PAUSED) { in Pause() 70 if (state_ != FilterState::READY && state_ != FilterState::RUNNING) { in Pause() 73 state_ = FilterState::PAUSED; in Pause() 89 state_ = FilterState::RUNNING; in Resume() 96 state_ = FilterState::INITIALIZED; in Stop() 135 FilterState PipelineCore::GetState() in GetState() 233 state_ = FilterState::READY; in OnEvent()
|
H A D | filter_base.cpp | 29 …: name_(std::move(name)), state_(FilterState::CREATED), eventReceiver_(nullptr), callback_(nullptr) in FilterBase() 41 state_ = FilterState::INITIALIZED; in Init() 61 FALSE_RETURN_V_MSG_W(state_ == FilterState::INITIALIZED, ErrorCode::ERROR_INVALID_OPERATION, in Prepare() 63 state_ = FilterState::PREPARING; in Prepare() 74 state_ = FilterState::RUNNING; in Start() 81 state_ = FilterState::PAUSED; in Pause() 87 state_ = FilterState::INITIALIZED; in Stop()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/sink/ |
H A D | subtitle_sink.cpp | 89 state_ = Pipeline::FilterState::INITIALIZED; in Init() 99 if (state_ != Pipeline::FilterState::READY) { in GetBufferQueueProducer() 107 if (state_ != Pipeline::FilterState::READY) { in GetBufferQueueConsumer() 125 state_ = Pipeline::FilterState::PREPARING; in Prepare() 128 state_ = Pipeline::FilterState::INITIALIZED; in Prepare() 131 state_ = Pipeline::FilterState::READY; in Prepare() 138 state_ = Pipeline::FilterState::RUNNING; in Start() 147 state_ = Pipeline::FilterState::INITIALIZED; in Stop() 153 state_ = Pipeline::FilterState::PAUSED; in Pause() 162 state_ = Pipeline::FilterState::RUNNING; in Resume() [all …]
|
H A D | audio_sink.cpp | 66 state_ = Pipeline::FilterState::INITIALIZED; in Init() 96 if (state_ != Pipeline::FilterState::READY) { in GetBufferQueueProducer() 104 if (state_ != Pipeline::FilterState::READY) { in GetBufferQueueConsumer() 129 state_ = Pipeline::FilterState::PREPARING; in Prepare() 132 state_ = Pipeline::FilterState::INITIALIZED; in Prepare() 135 state_ = Pipeline::FilterState::READY; in Prepare() 152 state_ = Pipeline::FilterState::RUNNING; in Start() 167 state_ = Pipeline::FilterState::INITIALIZED; in Stop() 189 state_ = Pipeline::FilterState::PAUSED; in Pause() 205 state_ = Pipeline::FilterState::RUNNING; in Resume() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_output/ |
H A D | av_transport_output_filter.cpp | 80 if (state_ != FilterState::INITIALIZED) { in Prepare() 84 state_ = FilterState::PREPARING; in Prepare() 88 state_ = FilterState::INITIALIZED; in Prepare() 94 state_ = FilterState::INITIALIZED; in Prepare() 100 state_ = FilterState::INITIALIZED; in Prepare() 106 state_ = FilterState::INITIALIZED; in Prepare() 109 state_ = FilterState::READY; in Prepare() 118 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 130 state_ = FilterState::RUNNING; in Start() 142 if (state_ != FilterState::RUNNING) { in Stop() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_input/ |
H A D | av_transport_input_filter.cpp | 84 state_ = FilterState::PREPARING; in Prepare() 88 state_ = FilterState::INITIALIZED; in Prepare() 103 state_ = FilterState::READY; in Prepare() 112 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 124 state_ = FilterState::RUNNING; in Start() 136 if (state_ != FilterState::RUNNING && state_ != FilterState::PAUSED) { in Stop() 146 state_ = FilterState::READY; in Stop() 154 if (state_ == FilterState::PAUSED) { in Pause() 157 if ((state_ != FilterState::READY) && (state_ != FilterState::RUNNING)) { in Pause() 170 state_ = FilterState::PAUSED; in Pause() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/sink/video_sink/ |
H A D | video_sink_filter.cpp | 111 if (state_.load() == FilterState::CREATED) { in GetParameter() 189 if (state_ != FilterState::PREPARING) { in Negotiate() 239 state_ = FilterState::READY; in Configure() 313 if (isFlushing_ || state_.load() == FilterState::INITIALIZED) { in PushData() 317 if (state_.load() != FilterState::RUNNING) { in PushData() 321 … return state_ == FilterState::RUNNING || state_ == FilterState::INITIALIZED || isFlushing_; in PushData() 325 if (isFlushing_ || state_.load() == FilterState::INITIALIZED) { in PushData() 338 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 375 if (state_ != FilterState::READY && state_ != FilterState::RUNNING) { in Pause() 394 if (state_ == FilterState::PAUSED) { in Resume() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/ |
H A D | codec_filter_base.cpp | 42 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 64 if (state_ != FilterState::INITIALIZED) { in Prepare() 115 if (state_.load() == FilterState::CREATED) { in SetParameter() 127 if (state_.load() == FilterState::CREATED) { in GetParameter() 188 …FALSE_RETURN_V_MSG_W(state_ == FilterState::PREPARING, false, "filter is not preparing when negoti… in Negotiate() 281 state_ = FilterState::READY; in Configure() 317 …if (state_ != FilterState::READY && state_ != FilterState::PAUSED && state_ != FilterState::RUNNIN… in PushData()
|
/ohos5.0/foundation/multimedia/media_foundation/src/pipeline/ |
H A D | pipeline.cpp | 67 ret = (*it)->WaitAllState(FilterState::READY); in Prepare() 90 ret = (*it)->WaitAllState(FilterState::RUNNING); in Start() 113 auto rtv = (*it)->WaitAllState(FilterState::PAUSED); in Pause() 136 ret = (*it)->WaitAllState(FilterState::RUNNING); in Resume() 163 auto rtv = (*it)->WaitAllState(FilterState::STOPPED); in Stop() 196 (*it)->WaitAllState(FilterState::RELEASED); in Release() 281 filter->WaitAllState(FilterState::RELEASED); in RemoveHeadFilter()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/muxer/ |
H A D | muxer_filter.cpp | 63 state_ = FilterState::INITIALIZED; in Init() 103 if (state_ != FilterState::PREPARING) { in Negotiate() 217 state_ = FilterState::READY; in Configure() 231 if (state_ != FilterState::INITIALIZED) { in AddTrack() 292 …if (state_ != FilterState::READY && state_ != FilterState::PAUSED && state_ != FilterState::RUNNIN… in PushData()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/include/pipeline/core/ |
H A D | pipeline_core.h | 57 FilterState GetState(); 72 FilterState state_ {FilterState::CREATED};
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/audio_encoder/ |
H A D | audio_encoder_filter.cpp | 50 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 75 FALSE_RETURN_V_MSG_E(state_ == FilterState::PREPARING, false, "not preparing when negotiate"); in Negotiate() 158 state_ = FilterState::READY; in Configure() 205 …if (state_ != FilterState::READY && state_ != FilterState::PAUSED && state_ != FilterState::RUNNIN… in PushData()
|
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/filter/ |
H A D | filter.h | 65 enum class FilterState { enum 157 virtual Status WaitAllState(FilterState state) final; 241 void ChangeState(FilterState state); 263 FilterState curState_{FilterState::CREATED};
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/core/ |
H A D | filter_base.cpp | 25 FilterBase::FilterBase(std::string name) : name_(std::move(name)), state_(FilterState::CREATED), ev… in FilterBase() 42 state_ = FilterState::INITIALIZED; in Initialize() 62 state_ = FilterState::PREPARING; in Prepare() 73 state_ = FilterState::RUNNING; in Start()
|
H A D | pipeline_core.cpp | 29 state_ = FilterState::INITIALIZED; in Init() 35 state_ = FilterState::PREPARING; in Prepare() 49 state_ = FilterState::RUNNING; in Start()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_encoder/ |
H A D | video_encoder_filter.cpp | 112 if (state_ != FilterState::READY && state_ != FilterState::PAUSED) { in Start() 123 if (state_ != FilterState::INITIALIZED) { in Prepare() 165 if (state_ != FilterState::PREPARING) { in Negotiate() 249 state_ = FilterState::READY; in Configure() 413 …if (state_ != FilterState::READY && state_ != FilterState::PAUSED && state_ != FilterState::RUNNIN… in PushData()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_input_filter_test/ |
H A D | av_transport_input_filter_test.cpp | 124 avInputTest_->state_ = FilterState::INITIALIZED; 139 avInputTest_->state_ = FilterState::READY; 143 avInputTest_->state_ = FilterState::PAUSED; 155 avInputTest_->state_ = FilterState::READY; 174 avInputTest_->state_ = FilterState::READY; 178 avInputTest_->state_ = FilterState::PAUSED; 190 avInputTest_->state_ = FilterState::RUNNING; 207 avInputTest_->state_ = FilterState::PAUSED; 219 avInputTest_->state_ = FilterState::READY; 223 avInputTest_->state_ = FilterState::RUNNING; [all …]
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/include/core/ |
H A D | pipeline_core.h | 51 FilterState state_{ FilterState::CREATED };
|
/ohos5.0/foundation/multimedia/av_codec/interfaces/inner_api/native/ |
H A D | subtitle_sink_filter.h | 87 FilterState state_ = FilterState::CREATED;
|