/foundation/multimedia/histreamer/engine/scene/player/ |
D | play_executor.h | 40 virtual ErrorCode PrepareFilters() in PrepareFilters() 42 return ErrorCode::SUCCESS; in PrepareFilters() 45 virtual ErrorCode DoSetSource(const std::shared_ptr<MediaSource>& source) in DoSetSource() 48 return ErrorCode::SUCCESS; in DoSetSource() 51 virtual ErrorCode DoPlay() in DoPlay() 53 return ErrorCode::SUCCESS; in DoPlay() 56 virtual ErrorCode DoPause() in DoPause() 58 return ErrorCode::SUCCESS; in DoPause() 61 virtual ErrorCode DoResume() in DoResume() 63 return ErrorCode::SUCCESS; in DoResume() [all …]
|
/foundation/multimedia/histreamer/engine/scene/recorder/ |
D | recorder_executor.h | 30 virtual ErrorCode DoSetVideoSource(const Plugin::Any& param) const in DoSetVideoSource() 33 return ErrorCode::SUCCESS; in DoSetVideoSource() 36 virtual ErrorCode DoSetAudioSource(const Plugin::Any& param) const in DoSetAudioSource() 39 return ErrorCode::SUCCESS; in DoSetAudioSource() 42 virtual ErrorCode DoConfigure(const Plugin::Any& param) const in DoConfigure() 45 return ErrorCode::SUCCESS; in DoConfigure() 48 virtual ErrorCode DoSetOutputFormat(const Plugin::Any& param) const in DoSetOutputFormat() 51 return ErrorCode::SUCCESS; in DoSetOutputFormat() 54 virtual ErrorCode DoPrepare() in DoPrepare() 56 return ErrorCode::SUCCESS; in DoPrepare() [all …]
|
/foundation/multimedia/histreamer/engine/pipeline/core/ |
D | error_code.cpp | 20 static const std::map<ErrorCode, const char*> g_ErrorTypeMap = { 21 {ErrorCode::END_OF_STREAM, "END_OF_STREAM"}, 22 {ErrorCode::SUCCESS, "SUCCESS"}, 23 {ErrorCode::ERROR_UNKNOWN, "ERROR_UNKNOWN"}, 24 {ErrorCode::ERROR_UNIMPLEMENTED, "ERROR_UNIMPLEMENTED"}, 25 {ErrorCode::ERROR_AGAIN, "ERROR_AGAIN"}, 26 {ErrorCode::ERROR_INVALID_PARAMETER_VALUE, "ERROR_INVALID_PARAMETER_VALUE"}, 27 {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, "ERROR_INVALID_PARAMETER_TYPE"}, 28 {ErrorCode::ERROR_INVALID_OPERATION, "ERROR_INVALID_OPERATION"}, 29 {ErrorCode::ERROR_UNSUPPORTED_FORMAT, "ERROR_UNSUPPORTED_FORMAT"}, [all …]
|
D | port.cpp | 45 ErrorCode InPort::Connect(const std::shared_ptr<Port>& port) in Connect() 48 return ErrorCode::SUCCESS; in Connect() 51 ErrorCode InPort::Disconnect() in Disconnect() 54 return ErrorCode::SUCCESS; in Disconnect() 57 ErrorCode InPort::Activate(const std::vector<WorkMode>& modes, WorkMode& outMode) in Activate() 62 return ErrorCode::SUCCESS; in Activate() 66 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in Activate() 98 ErrorCode InPort::PullData(uint64_t offset, size_t size, AVBufferPtr& data) in PullData() 104 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in PullData() 107 ErrorCode OutPort::Connect(const std::shared_ptr<Port>& port) in Connect() [all …]
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_output/ |
D | av_transport_output_filter.cpp | 46 ErrorCode AVOutputFilter::SetParameter(int32_t key, const Any& value) in SetParameter() 51 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in SetParameter() 60 return ErrorCode::SUCCESS; in SetParameter() 63 ErrorCode AVOutputFilter::GetParameter(int32_t key, Any& value) in GetParameter() 68 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in GetParameter() 74 return ErrorCode::SUCCESS; in GetParameter() 77 ErrorCode AVOutputFilter::Prepare() in Prepare() 82 return ErrorCode::ERROR_INVALID_STATE; in Prepare() 85 ErrorCode err = FindPlugin(); in Prepare() 86 if (err != ErrorCode::SUCCESS) { in Prepare() [all …]
|
D | av_transport_output_filter.h | 44 ErrorCode SetParameter(int32_t key, const Plugin::Any& value) override; 45 ErrorCode GetParameter(int32_t key, Plugin::Any& value) override; 46 ErrorCode Prepare() override; 47 ErrorCode Start() override; 48 ErrorCode Stop() override; 49 ErrorCode Pause() override; 50 ErrorCode Resume() override; 51 … ErrorCode PushData(const std::string& inPort, const AVBufferPtr& buffer, int64_t offset) override; 60 ErrorCode FindPlugin(); 61 ErrorCode CreatePlugin(const std::shared_ptr<Plugin::PluginInfo>& selectedInfo); [all …]
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_input/ |
D | av_transport_input_filter.h | 44 ErrorCode SetParameter(int32_t key, const Plugin::Any& value) override; 45 ErrorCode GetParameter(int32_t key, Plugin::Any& value) override; 46 ErrorCode Prepare() override; 47 ErrorCode Start() override; 48 ErrorCode Stop() override; 49 ErrorCode Pause() override; 50 ErrorCode Resume() override; 51 … ErrorCode PushData(const std::string& inPort, const AVBufferPtr& buffer, int64_t offset) override; 55 ErrorCode FindPlugin(); 57 ErrorCode CreatePlugin(const std::shared_ptr<Plugin::PluginInfo>& selectedInfo); [all …]
|
D | av_transport_input_filter.cpp | 46 ErrorCode AVInputFilter::SetParameter(int32_t key, const Any& value) in SetParameter() 51 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in SetParameter() 60 return ErrorCode::SUCCESS; in SetParameter() 63 ErrorCode AVInputFilter::GetParameter(int32_t key, Any& value) in GetParameter() 68 return ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in GetParameter() 74 return ErrorCode::SUCCESS; in GetParameter() 77 ErrorCode AVInputFilter::Prepare() in Prepare() 82 return ErrorCode::ERROR_INVALID_STATE; in Prepare() 85 ErrorCode err = FindPlugin(); in Prepare() 86 if (err != ErrorCode::SUCCESS) { in Prepare() [all …]
|
/foundation/multimedia/histreamer/engine/scene/recorder/internal/ |
D | state.cpp | 28 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter() 32 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Enter() 40 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute() 55 std::tuple<ErrorCode, Action> State::SetVideoSource(const Plugin::Any& param) in SetVideoSource() 58 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetVideoSource() 61 std::tuple<ErrorCode, Action> State::SetAudioSource(const Plugin::Any& param) in SetAudioSource() 64 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetAudioSource() 67 std::tuple<ErrorCode, Action> State::Configure(const Plugin::Any ¶m) in Configure() 70 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Configure() 73 std::tuple<ErrorCode, Action> State::SetOutputFormat(const Plugin::Any& param) in SetOutputFormat() [all …]
|
D | recording_setting_state.h | 36 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override in SetVideoSource() 39 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetVideoSource() 43 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override in SetAudioSource() 46 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetAudioSource() 50 std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param) override in Configure() 53 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in Configure() 57 std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param) override in SetOutputFormat() 60 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetOutputFormat() 64 std::tuple<ErrorCode, Action> Prepare() override in Prepare() 67 if (rtv == ErrorCode::SUCCESS) { in Prepare() [all …]
|
D | recording_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override in Enter() 38 ErrorCode ret; in Enter() 47 std::tuple<ErrorCode, Action> Start() override in Start() 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Start() 52 std::tuple<ErrorCode, Action> Resume() override in Resume() 54 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Resume() 57 std::tuple<ErrorCode, Action> Pause() override in Pause() 59 return {ErrorCode::SUCCESS, Action::TRANS_TO_PAUSE}; in Pause() 62 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override in Stop() 65 Action action = (ret == ErrorCode::SUCCESS) ? Action::ACTION_BUTT : Action::TRANS_TO_ERROR; in Stop() [all …]
|
D | state.h | 74 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 76 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 80 virtual std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param); 81 virtual std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param); 82 virtual std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param); 83 virtual std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param); 84 virtual std::tuple<ErrorCode, Action> SetObs(); 85 virtual std::tuple<ErrorCode, Action> GetSurface(); 86 virtual std::tuple<ErrorCode, Action> Prepare(); 87 virtual std::tuple<ErrorCode, Action> Start(); [all …]
|
/foundation/multimedia/histreamer/engine/scene/player/internal/ |
D | state.cpp | 79 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter() 83 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Enter() 89 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute() 101 std::tuple<ErrorCode, Action> State::SetSource(const Plugin::Any& param) in SetSource() 104 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetSource() 106 std::tuple<ErrorCode, Action> State::Prepare() in Prepare() 108 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Prepare() 110 std::tuple<ErrorCode, Action> State::Play() in Play() 112 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Play() 114 std::tuple<ErrorCode, Action> State::Stop() in Stop() [all …]
|
D | pause_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override in Enter() 42 std::tuple<ErrorCode, Action> Play() override in Play() 45 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; in Play() 48 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override in Seek() 51 … std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in Seek() 58 std::tuple<ErrorCode, Action> Pause() override in Pause() 61 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Pause() 64 std::tuple<ErrorCode, Action> Resume() override in Resume() 67 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; in Resume() 70 std::tuple<ErrorCode, Action> Stop() override in Stop() [all …]
|
D | state.h | 75 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 77 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 80 virtual std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param); 81 virtual std::tuple<ErrorCode, Action> Prepare(); 82 virtual std::tuple<ErrorCode, Action> Play(); 83 virtual std::tuple<ErrorCode, Action> Stop(); 84 virtual std::tuple<ErrorCode, Action> Reset(); 85 virtual std::tuple<ErrorCode, Action> Pause(); 86 virtual std::tuple<ErrorCode, Action> Resume(); 87 virtual std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param); [all …]
|
D | playing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override in Enter() 38 ErrorCode ret; in Enter() 47 std::tuple<ErrorCode, Action> Play() override in Play() 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Play() 52 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override in Seek() 55 … std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in Seek() 62 std::tuple<ErrorCode, Action> Pause() override in Pause() 64 return {ErrorCode::SUCCESS, Action::TRANS_TO_PAUSE}; in Pause() 67 std::tuple<ErrorCode, Action> Stop() override in Stop() 69 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED}; in Stop() [all …]
|
/foundation/multimedia/histreamer/engine/scene/recorder/standard/ |
D | hirecorder_impl.cpp | 59 ErrorCode HiRecorderImpl::Init() in Init() 62 return ErrorCode::SUCCESS; in Init() 66 ErrorCode ret = pipeline_->AddFilters({muxer_.get(), outputSink_.get()}); in Init() 67 if (ret == ErrorCode::SUCCESS) { in Init() 70 FALSE_LOG(ret == ErrorCode::SUCCESS); in Init() 71 if (ret == ErrorCode::SUCCESS) { in Init() 88 TransErrorCode(ErrorCode::ERROR_INVALID_PARAMETER_VALUE)); in SetAudioSource() 90 TransErrorCode(ErrorCode::ERROR_INVALID_OPERATION)); in SetAudioSource() 93 if (ret == ErrorCode::SUCCESS) { in SetAudioSource() 109 TransErrorCode(ErrorCode::ERROR_INVALID_PARAMETER_VALUE)); in SetVideoSource() [all …]
|
/foundation/communication/nfc/services/src/tags/ |
D | tag_session.cpp | 56 return NFC::KITS::ErrorCode::ERR_TAG_STATE_NFC_CLOSED; in Connect() 63 return NFC::KITS::ErrorCode::ERR_TAG_PARAMETERS; in Connect() 68 return NFC::KITS::ErrorCode::ERR_TAG_STATE_LOST; in Connect() 72 return NFC::KITS::ErrorCode::ERR_NONE; in Connect() 75 return NFC::KITS::ErrorCode::ERR_TAG_STATE_IO_FAILED; in Connect() 88 return NFC::KITS::ErrorCode::ERR_TAG_STATE_NFC_CLOSED; in Reconnect() 95 return NFC::KITS::ErrorCode::ERR_TAG_PARAMETERS; in Reconnect() 99 return NFC::KITS::ErrorCode::ERR_NONE; in Reconnect() 102 return NFC::KITS::ErrorCode::ERR_TAG_STATE_IO_FAILED; in Reconnect() 129 return NFC::KITS::ErrorCode::ERR_TAG_PARAMETERS; in SetTimeout() [all …]
|
/foundation/multimedia/histreamer/engine/pipeline/filters/codec/ |
D | sync_mode.cpp | 38 ErrorCode SyncMode::Configure() in Configure() 43 ErrorCode SyncMode::PushData(const std::string &inPort, const AVBufferPtr& buffer, int64_t offset) in PushData() 46 ErrorCode handleFrameRes; in PushData() 50 while (FinishFrame() == ErrorCode::SUCCESS) { in PushData() 58 …} while (handleFrameRes == ErrorCode::ERROR_TIMED_OUT || handleFrameRes == ErrorCode::ERROR_AGAIN); in PushData() 59 return ErrorCode::SUCCESS; in PushData() 62 ErrorCode SyncMode::Stop() in Stop() 65 return ErrorCode::SUCCESS; in Stop() 78 ErrorCode SyncMode::HandleFrame(const std::shared_ptr<AVBuffer>& buffer) in HandleFrame() 82 if (ret != ErrorCode::SUCCESS && ret != ErrorCode::ERROR_TIMED_OUT) { in HandleFrame() [all …]
|
/foundation/multimedia/histreamer/tests/ut/ |
D | TestStateMachine.cpp | 44 ErrorCode DoSetSource(const std::shared_ptr<MediaSource>& source) override in DoSetSource() 46 return source ? ErrorCode::SUCCESS : ErrorCode::ERROR_INVALID_PARAMETER_VALUE; in DoSetSource() 48 ErrorCode DoOnReady() override in DoOnReady() 50 return ErrorCode::SUCCESS; in DoOnReady() 52 ErrorCode DoOnComplete() override in DoOnComplete() 57 return ErrorCode::SUCCESS; in DoOnComplete() 59 ErrorCode DoOnError(ErrorCode) override in DoOnError() argument 61 return ErrorCode::SUCCESS; in DoOnError() 96 EXPECT_EQ(ErrorCode::ERROR_INVALID_PARAMETER_TYPE, stateMachine.SendEvent(Intent::SET_SOURCE)); in TEST_F() 104 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::SET_SOURCE, source)); in TEST_F() [all …]
|
/foundation/multimedia/histreamer/engine/pipeline/filters/source/video_capture/ |
D | video_capture_filter.cpp | 60 ErrorCode VideoCaptureFilter::InitAndConfigPlugin(const std::shared_ptr<Plugin::Meta>& videoMeta) in InitAndConfigPlugin() 63 ErrorCode err = TranslatePluginStatus(plugin_->Init()); in InitAndConfigPlugin() 64 if (err != ErrorCode::SUCCESS) { in InitAndConfigPlugin() 70 if (err != ErrorCode::SUCCESS) { in InitAndConfigPlugin() 74 if (err != ErrorCode::SUCCESS) { in InitAndConfigPlugin() 78 if (err != ErrorCode::SUCCESS) { in InitAndConfigPlugin() 82 if (err != ErrorCode::SUCCESS) { in InitAndConfigPlugin() 85 return ErrorCode::SUCCESS; in InitAndConfigPlugin() 88 ErrorCode VideoCaptureFilter::SetParameter(int32_t key, const Plugin::Any& value) in SetParameter() 121 return ErrorCode::SUCCESS; in SetParameter() [all …]
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_input_filter_test/ |
D | av_transport_input_filter_test.cpp | 55 ErrorCode ret = avInputTest_->SetParameter(key, value); 56 EXPECT_EQ(ErrorCode::ERROR_INVALID_PARAMETER_VALUE, ret); 65 ErrorCode ret = avInputTest_->SetParameter(key, value); 66 EXPECT_EQ(ErrorCode::SUCCESS, ret); 75 ErrorCode ret = avInputTest_->GetParameter(key, value); 76 EXPECT_EQ(ErrorCode::ERROR_INVALID_PARAMETER_VALUE, ret); 85 ErrorCode ret = avInputTest_->GetParameter(key, value); 86 EXPECT_EQ(ErrorCode::SUCCESS, ret); 93 ErrorCode ret = avInputTest_->Prepare(); 94 EXPECT_EQ(ErrorCode::ERROR_INVALID_STATE, ret); [all …]
|
/foundation/multimedia/histreamer/engine/include/pipeline/core/ |
D | pipeline.h | 31 virtual ErrorCode Prepare() = 0; 32 virtual ErrorCode Start() = 0; 33 virtual ErrorCode Pause() = 0; 34 virtual ErrorCode Resume() = 0; 35 virtual ErrorCode Stop() = 0; 49 virtual ErrorCode AddFilters(std::initializer_list<Filter*> filters) = 0; 51 virtual ErrorCode RemoveFilter(Filter* filter) = 0; 53 virtual ErrorCode RemoveFilterChain(Filter* firstFilter) = 0; 63 virtual ErrorCode LinkFilters(std::initializer_list<Filter*> filters) = 0; 73 virtual ErrorCode LinkPorts(std::shared_ptr<OutPort> port1, std::shared_ptr<InPort> port2) = 0;
|
/foundation/multimedia/histreamer/engine/scene/player/lite/ |
D | hiplayer_impl.cpp | 112 return CppExt::to_underlying(ErrorCode::SUCCESS); in Init() 115 ErrorCode ret = pipeline_->AddFilters({audioSource_.get(), demuxer_.get()}); in Init() 116 if (ret == ErrorCode::SUCCESS) { in Init() 119 if (ret == ErrorCode::SUCCESS) { in Init() 133 if (ret == CppExt::to_underlying(ErrorCode::SUCCESS)) { in SetSource() 140 if (ret != CppExt::to_underlying(ErrorCode::SUCCESS)) { in SetSource() 152 if (ret != ErrorCode::SUCCESS) { in Prepare() 164 return CppExt::to_underlying(ErrorCode::SUCCESS); in Prepare() 166 return CppExt::to_underlying(ErrorCode::ERROR_UNKNOWN); in Prepare() 182 ErrorCode ret; in Play() [all …]
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_output_filter_test/ |
D | av_transport_output_filter_test.cpp | 53 ErrorCode ret = avOutputTest_->SetParameter(key, value); 54 EXPECT_EQ(ErrorCode::ERROR_INVALID_PARAMETER_VALUE, ret); 63 ErrorCode ret = avOutputTest_->SetParameter(key, value); 64 EXPECT_EQ(ErrorCode::SUCCESS, ret); 73 ErrorCode ret = avOutputTest_->GetParameter(key, value); 74 EXPECT_EQ(ErrorCode::ERROR_INVALID_PARAMETER_VALUE, ret); 83 ErrorCode ret = avOutputTest_->GetParameter(key, value); 84 EXPECT_EQ(ErrorCode::SUCCESS, ret); 91 ErrorCode ret = avOutputTest_->Prepare(); 92 EXPECT_EQ(ErrorCode::ERROR_INVALID_STATE, ret); [all …]
|