diff --git a/multimedia/image_framework/include/image_mdk.h b/multimedia/image_framework/include/image_mdk.h index cb1aa629a37a0b2fe1971bfe4a55a71925517b5e..fc864346956c0a7118beeb299f18eed01fa9e113 100644 --- a/multimedia/image_framework/include/image_mdk.h +++ b/multimedia/image_framework/include/image_mdk.h @@ -180,6 +180,21 @@ int32_t OH_Image_Size(const ImageNative* native, struct OhosImageSize* size); */ int32_t OH_Image_Format(const ImageNative* native, int32_t* format); +/** + * @brief Obtains the image timestamp of an {@link ImageNative} object at the native layer. + * + * @param native Indicates the pointer to an {@link ImageNative} object at the native layer. + * @param timestamp Indicates the pointer to the image timestamp obtained. + * @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. + * returns {@link IRNdkErrCode} IMAGE_RESULT_JNI_ENV_ABNORMAL - if Abnormal JNI environment. + * returns {@link IRNdkErrCode} IMAGE_RESULT_BAD_PARAMETER - if bad parameter. + * returns {@link IRNdkErrCode} IMAGE_RESULT_MEDIA_DEAD_OBJECT - if media dead object. + * @see ImageNative + * @since 12 + * @version 2.0 + */ +int32_t OH_Image_GetTimestamp(const ImageNative* native, int64_t* timestamp); + /** * @brief Obtains {@link OhosImageComponent} of an {@link ImageNative} object at the native layer. * diff --git a/multimedia/image_framework/libimage_ndk.ndk.json b/multimedia/image_framework/libimage_ndk.ndk.json index b7bba91e2c91d76036b542fdbee9bf9545f99784..1d82441f3843da2da65073f03d46b8d8444f7cf7 100644 --- a/multimedia/image_framework/libimage_ndk.ndk.json +++ b/multimedia/image_framework/libimage_ndk.ndk.json @@ -12,6 +12,9 @@ { "name": "OH_Image_Format" }, + { + "name": "OH_Image_GetTimestamp" + }, { "name": "OH_Image_GetComponent" },