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