Home
last modified time | relevance | path

Searched refs:Any (Results 1 - 25 of 169) sorted by relevance

1234567

/foundation/multimedia/media_foundation/tests/unittest/meta/
H A Dany_func_unit_test.cpp66 Any anyInit = 123; in HWTEST_F()
67 Any anyCopy(anyInit); in HWTEST_F()
72 Any anyInitValueType(Plugins::SrcInputType::AUD_MIC); in HWTEST_F()
84 Any anyInit = 124; in HWTEST_F()
85 Any anyMove(std::move(anyInit)); in HWTEST_F()
98 Any anyInit = 125; in HWTEST_F()
99 Any anyCopy(anyInit); in HWTEST_F()
114 Any anyFirst = 125; in HWTEST_F()
115 Any anySecond = 126; in HWTEST_F()
135 Any anyInt3 in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/engine/scene/recorder/internal/
H A Dstate.h78 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param);
82 virtual std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param);
83 virtual std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param);
84 virtual std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param);
85 virtual std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param);
90 virtual std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param);
95 virtual std::tuple<ErrorCode, Action> OnError(const Plugin::Any& param) final;
99 std::tuple<ErrorCode, Action> DispatchIntent(Intent intent, const Plugin::Any& param);
130 const Plugin::Any &param)>> intentDispatchersMap_ = {
131 {Intent::SET_OBS, [this](const Plugin::Any
[all...]
H A Dstate.cpp40 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()
61 std::tuple<ErrorCode, Action> State::SetAudioSource(const Plugin::Any& param) in SetAudioSource()
67 std::tuple<ErrorCode, Action> State::Configure(const Plugin::Any &param) in Configure()
73 std::tuple<ErrorCode, Action> State::SetOutputFormat(const Plugin::Any& param) in SetOutputFormat()
99 std::tuple<ErrorCode, Action> State::Stop(const Plugin::Any& param) in Stop()
126 std::tuple<ErrorCode, Action> State::OnError(const Plugin::Any& param) in OnError()
136 std::tuple<ErrorCode, Action> State::DispatchIntent(Intent intent, const Plugin::Any& param) in DispatchIntent()
143 std::function<std::tuple<ErrorCode, Action>(const Plugin::Any &param)> updator = iter->second; in DispatchIntent()
H A Dstate_machine.h61 ErrorCode SendEvent(Intent intent, const Plugin::Any& param = {});
63 ErrorCode SendEvent(Intent intent, const Plugin::Any& param = {}) const;
65 ErrorCode SendEventAsync(Intent intent, const Plugin::Any& param = {});
67 ErrorCode SendEventAsync(Intent intent, const Plugin::Any& param = {}) const;
72 Action ProcessIntent(Intent intent, const Plugin::Any& param);
H A Drecording_setting_state.h36 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override
43 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override
50 std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param) override
57 std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param) override
79 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override
H A Dinit_state.h35 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override
42 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override
49 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override
/foundation/multimedia/media_foundation/src/meta/
H A Dany.cpp21 constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_DOMAIN_FOUNDATION, "Any" };
32 Any defaultBool = (bool)true; in GetBaseTypesMap()
34 Any defaultInt32 = (int32_t)0; in GetBaseTypesMap()
36 Any defaultInt64 = (int64_t)0; in GetBaseTypesMap()
38 Any defaultFoalt = (float)0.0; in GetBaseTypesMap()
40 Any defaultDouble = (double)0.0; in GetBaseTypesMap()
42 Any defaultString = std::string(); in GetBaseTypesMap()
44 Any defaultVecUint8 = std::vector<uint8_t>(); in GetBaseTypesMap()
54 bool Any::BaseTypesToParcel(const Any *operan
[all...]
H A Dmeta.cpp42 * Currently, The ToParcel/FromParcel function(In Any.h) supports single value convert to/from parcel.
214 static Any defaultString = std::string();
215 static Any defaultInt8 = (int8_t)0;
216 static Any defaultUInt8 = (uint8_t)0;
217 static Any defaultInt32 = (int32_t)0;
218 static Any defaultUInt32 = (uint32_t)0;
219 static Any defaultInt64 = (int64_t)0;
220 static Any defaultUInt64 = (uint64_t)0;
221 static Any defaultFloat = 0.0f;
222 static Any defaultDoubl
[all...]
H A Dformat.cpp149 Any::IsSameTypeWith<int32_t>(defaultValue.value()) || in PutIntValue()
150 Any::IsSameTypeWith<bool>(defaultValue.value()) || IsIntEnum(key.data()); in PutIntValue()
162 Any::IsSameTypeWith<int64_t>(defaultValue.value()) || IsLongEnum(key.data()); in PutLongValue()
172 auto isSameType = Any::IsSameTypeWith<float>(defaultValue.value()); in PutFloatValue()
184 auto isSameType = Any::IsSameTypeWith<double>(defaultValue.value()); in PutDoubleValue()
196 auto isSameType = Any::IsSameTypeWith<std::string>(defaultValue.value()); in PutStringValue()
208 auto isSameType = Any::IsSameTypeWith<std::vector<uint8_t>>(defaultValue.value()); in PutBuffer()
220 Any *value = const_cast<Any *>(&(iter->second)); in PutBuffer()
222 FALSE_RETURN_V_MSG_E(tmpVector != nullptr, false, "Any valu in PutBuffer()
[all...]
/foundation/multimedia/media_foundation/test/unittest/
H A DTestAny.cpp30 bool CompareFunctionTable(const Any::FunctionTable* ft1, const Any::FunctionTable* ft2) in CompareFunctionTable()
44 auto ft1 = Any::GetFunctionTable<T>(); in UseStorage()
45 Any::FunctionTable ft2 { in UseStorage()
107 auto tmp = UseStorage<uint8_t, Any::TrivialStackFunctionTable>(); in HWTEST()
109 tmp = UseStorage<int8_t, Any::TrivialStackFunctionTable>(); in HWTEST()
111 tmp = UseStorage<uint16_t, Any::TrivialStackFunctionTable>(); in HWTEST()
113 tmp = UseStorage<int16_t, Any::TrivialStackFunctionTable>(); in HWTEST()
115 tmp = UseStorage<uint32_t, Any::TrivialStackFunctionTable>(); in HWTEST()
117 tmp = UseStorage<int32_t, Any in HWTEST()
[all...]
/foundation/multimedia/media_foundation/interface/inner_api/meta/
H A Dany.h128 class Any;
130 inline typename std::enable_if<std::is_enum<T>::value, bool>::type MakeAnyFromParcel(Any& value, MessageParcel& parcel);
132 inline typename std::enable_if<!std::is_enum<T>::value, bool>::type MakeAnyFromParcel(Any& value, MessageParcel& parcel) in MakeAnyFromParcel()
177 class Any final {
179 constexpr Any() noexcept
183 __attribute__((no_sanitize("cfi"))) Any(const Any &other) : functionTable_(other.functionTable_) in Any() function in OHOS::Media::final
190 __attribute__((no_sanitize("cfi"))) Any(Any &&other) noexcept : functionTable_(other.functionTable_) in functionTable_()
201 * @tparam Type ValueType is not the same as Any itsel
207 Any(ValueType&& value) // NOLINT: explicit Any() function in OHOS::Media::final
[all...]
/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dany.h91 class Any final {
93 constexpr Any() noexcept
97 Any(const Any& other) : functionTable_(other.functionTable_) in Any() function in OHOS::Media::Plugin::final
104 Any(Any&& other) noexcept : functionTable_(other.functionTable_) in functionTable_()
115 * @tparam Type ValueType is not the same as Any itself. The decay type of ValueType must be copy constructible.
118 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
121 Any(ValueType&& value) // NOLINT: explicit in Any() function in OHOS::Media::Plugin::final
126 Any
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfAnyTest.cpp53 Any<uint32_t> any { 1 }; in HWTEST_F()
73 Any<IObject::Ptr> any { CreateTestType<IObject>() }; in HWTEST_F()
90 Any<IObject::ConstPtr> constAny { CreateTestType<IObject>() }; in HWTEST_F()
104 Any<IObject::WeakPtr> any { p }; in HWTEST_F()
136 Any<uint32_t> any { 1 }; in HWTEST_F()
148 Any<uint32_t> other; in HWTEST_F()
159 Any<float> otherType; in HWTEST_F()
174 Any<IObject::Ptr> any { p }; in HWTEST_F()
183 Any<IObject::Ptr> any { p }; in HWTEST_F()
194 Any<IObjec in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/engine/scene/recorder/
H A Drecorder_executor.h30 virtual ErrorCode DoSetVideoSource(const Plugin::Any& param) const in DoSetVideoSource()
36 virtual ErrorCode DoSetAudioSource(const Plugin::Any& param) const in DoSetAudioSource()
42 virtual ErrorCode DoConfigure(const Plugin::Any& param) const in DoConfigure()
48 virtual ErrorCode DoSetOutputFormat(const Plugin::Any& param) const in DoSetOutputFormat()
74 virtual ErrorCode DoStop(const Plugin::Any& param) in DoStop()
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/
H A Dcpu_brightness_algo.h31 static ErrorCode OnApplyRGBA8888(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
34 static ErrorCode OnApplyYUVNV21(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
37 static ErrorCode OnApplyYUVNV12(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
41 static float ParseBrightness(std::map<std::string, Plugin::Any> &value);
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_manager.h38 virtual int32_t CreateComponent(const Plugin::Any& component, uint32_t& id, const std::string& name,
39 const Plugin::Any& appData, const Plugin::Any& callbacks) = 0;
41 virtual int32_t DestroyComponent(const Plugin::Any& component, uint32_t id) = 0;
H A Dhdi_codec_manager.h33 int32_t CreateComponent(const Plugin::Any& component, uint32_t& id, const std::string& name,
34 const Plugin::Any& appData, const Plugin::Any& callbacks) override;
35 int32_t DestroyComponent(const Plugin::Any& component, uint32_t id) override;
H A Dcodec_cmd_executor.h45 Status SendCmd(OMX_COMMANDTYPE cmd, const Plugin::Any& param);
46 bool WaitCmdResult(OMX_COMMANDTYPE cmd, const Plugin::Any& param);
62 std::map<OMX_COMMANDTYPE, Any> resultMap_{};
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/
H A Dcpu_contrast_algo.h31 static ErrorCode OnApplyRGBA8888(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
34 static ErrorCode OnApplyYUVNV21(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
37 static ErrorCode OnApplyYUVNV12(EffectBuffer *src, EffectBuffer *dst, std::map<std::string, Plugin::Any> &value,
41 static float ParseContrast(std::map<std::string, Plugin::Any> &value);
/foundation/multimedia/media_foundation/engine/scene/player/internal/
H A Dstate_machine.h55 ErrorCode SendEvent(Intent intent, const Plugin::Any& param = {});
57 ErrorCode SendEvent(Intent intent, const Plugin::Any& param = {}) const;
59 ErrorCode SendEventAsync(Intent intent, const Plugin::Any& param = {});
61 ErrorCode SendEventAsync(Intent intent, const Plugin::Any& param = {}) const;
68 Action ProcessIntent(Intent intent, const Plugin::Any& param);
H A Dstate.h77 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param);
80 virtual std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param);
87 virtual std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param);
90 virtual std::tuple<ErrorCode, Action> OnError(const Plugin::Any& param) final;
98 std::tuple<ErrorCode, Action> DispatchIntent(Intent intent, const Plugin::Any& param);
/foundation/multimedia/player_framework/services/engine/histreamer/player/
H A Dhiplayer_callback_looper.h63 void DoReportInfo(const Any& info);
64 void DoReportError(const Any& error);
66 void DoReportSystemOperation(const Any& info);
69 Event(int32_t inWhat, int64_t inWhenMs, Any inAny): what(inWhat), whenMs(inWhenMs), in Event()
73 Any detail;
/foundation/multimedia/media_foundation/engine/scene/player/standard/
H A Dhiplayer_callback_looper.h55 void DoReportInfo(const Plugin::Any& info);
56 void DoReportError(const Plugin::Any& error);
59 Event(int32_t inWhat, int64_t inWhenMs, Plugin::Any inAny): what(inWhat), whenMs(inWhenMs), in Event()
63 Plugin::Any detail;
/foundation/multimedia/player_framework/services/engine/histreamer/transcoder/
H A Dhitranscoder_callback_looper.h47 void DoReportInfo(const Any& info);
48 void DoReportError(const Any& error);
51 Event(int32_t inWhat, int64_t inWhenMs, Any inAny): what(inWhat), whenMs(inWhenMs), in Event()
55 Any detail;
/foundation/multimedia/media_foundation/engine/scene/recorder/standard/
H A Dhirecorder_impl.h74 ErrorCode DoSetVideoSource(const Plugin::Any& param) const override;
75 ErrorCode DoSetAudioSource(const Plugin::Any& param) const override;
76 ErrorCode DoConfigure(const Plugin::Any& param) const override;
77 ErrorCode DoSetOutputFormat(const Plugin::Any& param) const override;
82 ErrorCode DoStop(const Plugin::Any& param) override;

Completed in 9 milliseconds

1234567