From dbfcbc7239c92a46c7efe2680c2f03da02a6f6f4 Mon Sep 17 00:00:00 2001 From: gcw_4z3jiPvB Date: Thu, 13 Aug 2026 17:10:01 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=20video=5Fprocessing.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gcw_4z3jiPvB --- interfaces/kits/c/video_processing.h | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/interfaces/kits/c/video_processing.h b/interfaces/kits/c/video_processing.h index 7c22782..a68765b 100644 --- a/interfaces/kits/c/video_processing.h +++ b/interfaces/kits/c/video_processing.h @@ -321,6 +321,52 @@ VideoProcessing_ErrorCode OH_VideoProcessingCallback_BindOnState(VideoProcessing VideoProcessing_ErrorCode OH_VideoProcessingCallback_BindOnNewOutputBuffer(VideoProcessing_Callback* callback, OH_VideoProcessingCallback_OnNewOutputBuffer onNewOutputBuffer); +/** + * @brief Query if the autoeffect is supported. + * + * @param type [in] The autoeffect type to query. + * @return + * @since 26.1.0 + */ +bool OH_VideoProcessing_IsAutoEffectSupported(uint32_t type); + +/** + * @brief Specifies whether the type effect is required in the XComponent named name that will be created. + * + * Records the mapping between type, enable, and name in the internal map. + * This should be called before {@link OH_VideoProcessing_SetAutoEffectParam}. + * @param type [in] Specify AutoEffect to use. + * @param enable [in] Enable or disable the type effect in the XComponent named name to be created later. + * @param name [in] Specifies the name of an XComponent. If the current application has multiple XComponents with + * the same name, this parameter takes effect only on the first active XComponent. + * @return + * @since 26.1.0 + */ +VideoProcessing_ErrorCode OH_VideoProcessing_UseAutoEffect(uint32_t type, bool enable, const char *name); + +/** + * @brief Sets parameters for the automatic effect associated with the XComponent. + * Currently, the AutoEffect only takes effect on the last invoked XComponent. + * @param type [in] Specify AutoEffect to use. + * @param name [in] Specifies the name of an XComponent. If the current application has multiple XComponents + * with the same name, this parameter takes effect only on the first active XComponent. + * @param param [in] The parameter according to the type see video_processing_type.h. + * @return + * @since 26.1.0 + */ +VideoProcessing_ErrorCode OH_VideoProcessing_SetAutoEffectParam(uint32_t type, const char *name, + const OH_AVFormat *param); + #ifdef __cplusplus } #endif