diff --git a/framework/algorithm/common/algorithm_video.cpp b/framework/algorithm/common/algorithm_video.cpp index 5671a62e92bf5cabaea8e1a15944a55ddf88f315..26ac2750471004966b1acf6fbded4136badd0d38 100644 --- a/framework/algorithm/common/algorithm_video.cpp +++ b/framework/algorithm/common/algorithm_video.cpp @@ -63,6 +63,11 @@ bool VpeVideo::IsSupported(uint32_t type, const Format& parameter) return it->second(parameter); } +bool VpeVideo::IsSupported(void) +{ + return true; +} + VPEAlgoErrCode VpeVideo::RegisterCallback([[maybe_unused]] const std::shared_ptr& callback) { return VPE_ALGO_ERR_OK; diff --git a/interfaces/inner_api/algorithm_video.h b/interfaces/inner_api/algorithm_video.h index 046c7e5bb89a3085ec7f8043db06a752de97dbb4..9eac54cf0a6c559a0b2839779797ad2188c0a824 100644 --- a/interfaces/inner_api/algorithm_video.h +++ b/interfaces/inner_api/algorithm_video.h @@ -50,6 +50,13 @@ public: */ static bool IsSupported(uint32_t type, const Format& parameter); + /** + * @brief Query whether the product is supported. + * @return true if the product is supported. false If the product is unsupported. + * @since 6.0 + */ + static bool IsSupported(void); + /** * @brief Register callback object. * @param callback Callback object to be registered. For details, see {@link VpeVideoCallback}. diff --git a/interfaces/inner_api/algorithm_video_common.h b/interfaces/inner_api/algorithm_video_common.h index 8be75578a52f8e67f91fcc0a1e5b1ef73d10012b..96c3f97d09d9a1b5a87f986b91c02d19534a560c 100644 --- a/interfaces/inner_api/algorithm_video_common.h +++ b/interfaces/inner_api/algorithm_video_common.h @@ -240,6 +240,16 @@ public: */ static constexpr std::string_view DETAIL_ENHANCER_AUTO_DOWNSHIFT{"AutoDownshift"}; + /** + * @brief The key is used to identifies surface nodeId + * + * Use {@link VpeVideo::SetParameter} and {@link Format::SetLongValue} to set the client surface nodeId. + * Use {@link VpeVideo::GetParameter} and {@link Format::GetLongValue} to get the client surface nodeId. + * + * @since 6.0 + */ + static constexpr std::string_view DETAIL_ENHANCER_NODE_ID{"NodeId"}; + private: ParameterKey() = delete; ~ParameterKey() = delete;