Home
last modified time | relevance | path

Searched refs:ErrorCode (Results 1 – 25 of 174) sorted by relevance

1234567

/foundation/multimedia/histreamer/engine/scene/player/
Dplay_executor.h40 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/
Drecorder_executor.h30 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/
Derror_code.cpp20 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 …]
Dport.cpp45 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/
Dav_transport_output_filter.cpp46 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 …]
Dav_transport_output_filter.h44 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;
51ErrorCode 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/
Dav_transport_input_filter.h44 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;
51ErrorCode 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 …]
Dav_transport_input_filter.cpp46 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/
Dstate.cpp28 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 &param) 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 …]
Drecording_setting_state.h36 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 …]
Drecording_state.h35 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 …]
Dstate.h74 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/
Dstate.cpp79 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 …]
Dpause_state.h35 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 …]
Dstate.h75 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 …]
Dplaying_state.h35 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/
Dhirecorder_impl.cpp59 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/
Dtag_session.cpp56 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/
Dsync_mode.cpp38 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/
DTestStateMachine.cpp44 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/
Dvideo_capture_filter.cpp60 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/
Dav_transport_input_filter_test.cpp55 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/
Dpipeline.h31 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/
Dhiplayer_impl.cpp112 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/
Dav_transport_output_filter_test.cpp53 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 …]

1234567