mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
commit
c66b8f3360
@ -165,6 +165,10 @@ typedef enum {
|
||||
IMAGE_UNSUPPORTED_CONVERSION = 7600203,
|
||||
/** invalid region */
|
||||
IMAGE_INVALID_REGION = 7600204,
|
||||
/** @error unsupported memory format
|
||||
* @since 13
|
||||
*/
|
||||
IMAGE_UNSUPPORTED_MEMORY_FORMAT = 7600205,
|
||||
/** failed to allocate memory */
|
||||
IMAGE_ALLOC_FAILED = 7600301,
|
||||
/** memory copy failed */
|
||||
|
@ -841,6 +841,21 @@ Image_ErrorCode OH_PixelmapNative_SetMetadata(OH_PixelmapNative *pixelmap, OH_Pi
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_GetNativeBuffer(OH_PixelmapNative *pixelmap, OH_NativeBuffer **nativeBuffer);
|
||||
|
||||
/**
|
||||
* @brief Set pixelmap memory name.
|
||||
*
|
||||
* @param pixelmap The Pixelmap pointer to be operated.
|
||||
* @param name The pointer of name that needs to be set.
|
||||
* @param size The size of name size that needs to be set.
|
||||
* @return Function result code:
|
||||
* {@link IMAGE_SUCCESS} If the operation is successful.
|
||||
* {@link IMAGE_BAD_PARAMETER} If invalid parameter, name and size are incorrect.
|
||||
* {@link IMAGE_UNSUPPORTED_MEMORY_FORMAT} If memory format is unsupported.
|
||||
* @see OH_PixelmapNative
|
||||
* @since 13
|
||||
*/
|
||||
Image_ErrorCode OH_PixelmapNative_SetMemoryName(OH_PixelmapNative *pixelmap, char *name, size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Get the native colorspace from the PixelMap.
|
||||
*
|
||||
|
@ -174,5 +174,9 @@
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_PixelmapNative_ConvertPixelmapNativeFromNapi"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_PixelmapNative_SetMemoryName"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user