From 88f522a76b265bd4621e4958c6bb2ceb03847c84 Mon Sep 17 00:00:00 2001 From: z00428214 Date: Sat, 29 Jun 2024 14:21:25 +0800 Subject: [PATCH] =?UTF-8?q?image=5Feffect=E5=A2=9E=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: z00428214 --- multimedia/image_effect/image_effect_filter.h | 26 +++++++++++++++++++ .../image_effect/libimage_effect.ndk.json | 8 ++++++ 2 files changed, 34 insertions(+) diff --git a/multimedia/image_effect/image_effect_filter.h b/multimedia/image_effect/image_effect_filter.h index 464c29dea..92f663703 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 882db5114..fc19da6bd 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"