mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 08:51:29 +00:00
修改接口定义
Signed-off-by: 陈乔异 <chenqiaoyi2@huawei.com>
This commit is contained in:
parent
8d65365289
commit
346354d3ad
@ -643,20 +643,6 @@ Image_ErrorCode OH_PixelmapNative_ConvertPixelmapNativeFromNapi(napi_env env, na
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_ReadPixels(OH_PixelmapNative *pixelmap, uint8_t *destination, size_t *bufferSize);
|
||||
|
||||
/**
|
||||
* @brief Reads the pixel data of a PixelMap into a buffer. The data read is in ARGB_8888 format.
|
||||
*
|
||||
* @param pixelmap The PixelMap pointer to be operated.
|
||||
* @param destination Buffer to which the image PixelMap data will be written.
|
||||
* @param bufferSize Buffer size to which the image PixelMap data will be written.
|
||||
* @return Returns {@link Image_ErrorCode} IMAGE_RESULT_SUCCESS - if the operation is successful.
|
||||
* returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if invalid parameter, pixelmap, destination, or bufferSize is
|
||||
* null.
|
||||
* @see OH_PixelmapNative
|
||||
* @since 13
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_ReadARGBPixels(OH_PixelmapNative *pixelmap, uint8_t *destination, size_t *bufferSize);
|
||||
|
||||
/**
|
||||
* @brief Reads image data in an Buffer and writes the data to a Pixelmap object.
|
||||
*
|
||||
@ -668,6 +654,23 @@ Image_ErrorCode OH_PixelmapNative_ReadARGBPixels(OH_PixelmapNative *pixelmap, ui
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_WritePixels(OH_PixelmapNative *pixelmap, uint8_t *source, size_t bufferSize);
|
||||
|
||||
/**
|
||||
* @brief Get argb pixel buffer from pixelmap.
|
||||
*
|
||||
* @param pixelmap The Pixelmap pointer to be operated.
|
||||
* @param destination Buffer to which the image pixel map data will be written.
|
||||
* @param bufferSize Buffer size to which the image pixel map data will be written.
|
||||
* @return Function result code:
|
||||
* {@link IMAGE_SUCCESS} If the operation is successful.
|
||||
* {@link IMAGE_BAD_PARAMETER} If invalid parameter, destination and bufferSize are incorrect.
|
||||
* {@link IMAGE_UNSUPPORTED_CONVERSION} If format does not support conversion to argb or conversion failed.
|
||||
* {@link IMAGE_ALLOC_FAILED} If device has no memory.
|
||||
* {@link IMAGE_COPY_FAILED} If memory copy failed.
|
||||
* @see OH_PixelmapNative
|
||||
* @since 13
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_GetArgbPixels(OH_PixelmapNative *pixelmap, uint8_t *destination, size_t *bufferSize);
|
||||
|
||||
/**
|
||||
* @brief Convert {@link OH_PixelmapNative} to standard dynamic range.
|
||||
*
|
||||
|
@ -95,14 +95,14 @@
|
||||
"first_introduced": "12",
|
||||
"name": "OH_PixelmapNative_ReadPixels"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_PixelmapNative_ReadARGBPixels"
|
||||
},
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_PixelmapNative_WritePixels"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_PixelmapNative_GetArgbPixels"
|
||||
},
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_PixelmapNative_ToSdr"
|
||||
|
Loading…
Reference in New Issue
Block a user