image_effect增加时间戳接口

Signed-off-by: z00428214 <zhurui17@huawei.com>
This commit is contained in:
z00428214 2024-06-29 14:21:25 +08:00
parent 81e628cfe9
commit 88f522a76b
2 changed files with 34 additions and 0 deletions

View File

@ -476,6 +476,32 @@ ImageEffect_ErrorCode OH_EffectBufferInfo_SetEffectFormat(OH_EffectBufferInfo *i
*/
ImageEffect_ErrorCode OH_EffectBufferInfo_GetEffectFormat(OH_EffectBufferInfo *info, ImageEffect_Format *format);
/**
* @brief Set the timestamp of the image for OH_EffectBufferInfo
*
* @syscap SystemCapability.Multimedia.ImageEffect.Core
* @param info Encapsulate OH_EffectBufferInfo structure instance pointer
* @param timestamp Indicates the timestamp of the image frame data for the OHNativeWindow input type.
* @return Returns EFFECT_SUCCESS if the execution is successful, otherwise returns a specific error code, refer to
* {@link ImageEffect_ErrorCode}
* {@link EFFECT_ERROR_PARAM_INVALID}, the input parameter is a null pointer.
* @since 12
*/
ImageEffect_ErrorCode OH_EffectBufferInfo_SetTimestamp(OH_EffectBufferInfo *info, int64_t timestamp);
/**
* @brief Get the timestamp of the image from OH_EffectBufferInfo
*
* @syscap SystemCapability.Multimedia.ImageEffect.Core
* @param info Encapsulate OH_EffectBufferInfo structure instance pointer
* @param timestamp Indicates the timestamp of the image frame data for the OHNativeWindow input type.
* @return Returns EFFECT_SUCCESS if the execution is successful, otherwise returns a specific error code, refer to
* {@link ImageEffect_ErrorCode}
* {@link EFFECT_ERROR_PARAM_INVALID}, the input parameter is a null pointer.
* @since 12
*/
ImageEffect_ErrorCode OH_EffectBufferInfo_GetTimestamp(OH_EffectBufferInfo *info, int64_t *timestamp);
/**
* @brief Clear the internal resources of the OH_EffectBufferInfo and destroy the OH_EffectBufferInfo instance
*

View File

@ -75,6 +75,14 @@
"first_introduced": "12",
"name": "OH_EffectBufferInfo_GetEffectFormat"
},
{
"first_introduced": "12",
"name": "OH_EffectBufferInfo_SetTimestamp"
},
{
"first_introduced": "12",
"name": "OH_EffectBufferInfo_GetTimestamp"
},
{
"first_introduced": "12",
"name": "OH_EffectBufferInfo_Release"