mirror of
https://github.com/openharmony/multimedia_video_processing_engine.git
synced 2026-08-27 05:31:19 -04:00
update: 更新文件 video_processing.h
Signed-off-by: gcw_4z3jiPvB <huweinan1@h-partners.com>
This commit is contained in:
@@ -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 <ul><li><b>true</b> if the autoeffect is supported.</li>
|
||||
* <li><b>false</b> if the autoeffect is not supported.</li></ul>
|
||||
* @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 <ul><li>{@link VIDEO_PROCESSING_SUCCESS} if the operation is successful.</li>
|
||||
* <li>{@link VIDEO_PROCESSING_ERROR_INVALID_VALUE} if type is not {@link VIDEO_PROCESSING_TYPE_AUTOEFFECT_AISR}
|
||||
* or name is null.</li>
|
||||
* <li>{@link VIDEO_PROCESSING_ERROR_OPERATION_NOT_PERMITTED} if {@link OH_VideoProcessing_IsAutoEffectSupported}
|
||||
* returns false for the type, or the same name has already been registered by calling this function.</li></ul>
|
||||
* @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 <ul><li>{@link VIDEO_PROCESSING_SUCCESS} if the operation is successful.</li>
|
||||
* <li>{@link VIDEO_PROCESSING_ERROR_INVALID_VALUE} if the name is nullptr or the param value is invalid.</li>
|
||||
* <li>{@link VIDEO_PROCESSING_ERROR_OPERATION_NOT_PERMITTED} if {@link OH_VideoProcessing_IsAutoEffectSupported}
|
||||
* returns false for the type, or name does not match any registered name, or the VPE instance has not been
|
||||
* created or {@link OH_VideoProcessing_UseAutoEffect} has not been called for the name.</li>
|
||||
* <li>{@link VIDEO_PROCESSING_ERROR_UNKNOWN} if an internal algorithm error occurs.</li></ul>
|
||||
* @since 26.1.0
|
||||
*/
|
||||
VideoProcessing_ErrorCode OH_VideoProcessing_SetAutoEffectParam(uint32_t type, const char *name,
|
||||
const OH_AVFormat *param);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user