From 87e2afa5bb984400568a22ee420e88588074d386 Mon Sep 17 00:00:00 2001 From: zhouxubo Date: Wed, 7 May 2025 14:27:58 +0800 Subject: [PATCH] vpe add isSupported interface Signed-off-by: zhouxubo --- interfaces/inner_api/algorithm_video.h | 10 ++++++++++ interfaces/inner_api/algorithm_video_common.h | 1 + 2 files changed, 11 insertions(+) diff --git a/interfaces/inner_api/algorithm_video.h b/interfaces/inner_api/algorithm_video.h index 2a50c1c..046c7e5 100644 --- a/interfaces/inner_api/algorithm_video.h +++ b/interfaces/inner_api/algorithm_video.h @@ -40,6 +40,16 @@ public: */ static std::shared_ptr Create(uint32_t type); + /** + * @brief Query whether the feature altorithm is supported. + * @param type Use VIDEO_TYPE_XXX to specify the processing type. For details, see {@link VpeVideoType}. + * @param parameter The parameter of video processing. + * @return true if the feature altorithm is supported. false If the feature altorithm is unsupported. + * @since 5.1 + * @version 5.1 + */ + static bool IsSupported(uint32_t type, const Format& parameter); + /** * @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 7ce1e94..8be7557 100644 --- a/interfaces/inner_api/algorithm_video_common.h +++ b/interfaces/inner_api/algorithm_video_common.h @@ -56,6 +56,7 @@ enum VpeVideoType : uint32_t { * @version 5.1 */ VIDEO_TYPE_DETAIL_ENHANCER = 0x4, + VIDEO_TYPE_AIHDR_ENHANCER = 0x8, }; /**