diff --git a/multimedia/image_effect/image_effect_filter.h b/multimedia/image_effect/image_effect_filter.h index 464c29dea2b526db63767e45fb4fa6a9b288e7dc..92f6637033a1d0ba7b7e44ee1318a2533c4b120f 100644 --- a/multimedia/image_effect/image_effect_filter.h +++ b/multimedia/image_effect/image_effect_filter.h @@ -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 * diff --git a/multimedia/image_effect/libimage_effect.ndk.json b/multimedia/image_effect/libimage_effect.ndk.json index 882db511448aa36052fbe8ad9fe133b1b9ba6271..fc19da6bd5a677c02a95f30ee33427db63aa1ae4 100644 --- a/multimedia/image_effect/libimage_effect.ndk.json +++ b/multimedia/image_effect/libimage_effect.ndk.json @@ -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"