!1070 新增imageNtaive_GetTimestamp接口

Merge pull request !1070 from 姚星宇/0724_addInterface
This commit is contained in:
openharmony_ci 2024-07-31 08:05:55 +00:00 committed by Gitee
commit 0ba0365bf4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -134,6 +134,18 @@ Image_ErrorCode OH_ImageNative_GetRowStride(OH_ImageNative *image,
Image_ErrorCode OH_ImageNative_GetPixelStride(OH_ImageNative *image,
uint32_t componentType, int32_t *pixelStride);
/**
* @brief Get timestamp from an {@link OH_ImageNative} object.
*
* @param image Indicates the pointer to an {@link OH_ImageNative} object.
* @param timestamp Indicates the pointer to the timestamp obtained.
* @return Image functions result code.
* {@link IMAGE_SUCCESS} if the operation is successful.
* {@link IMAGE_BAD_PARAMETER} if the input parameter is invalid.
* @since 12
*/
Image_ErrorCode OH_ImageNative_GetTimestamp(OH_ImageNative *image, int64_t *timestamp);
/**
* @brief Releases an {@link OH_ImageNative} object.
* It is used to release the object {@link OH_ImageNative}.