From f5f366280c04557caaa97b65c8e69aa5eccab7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E5=B1=91=E5=B1=91?= Date: Tue, 27 May 2025 15:21:04 +0800 Subject: [PATCH] fix interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 屑屑屑 --- multimedia/image_framework/include/image/image_common.h | 5 ++++- multimedia/image_framework/include/image/pixelmap_native.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/multimedia/image_framework/include/image/image_common.h b/multimedia/image_framework/include/image/image_common.h index 6d08b76ae..f86115ec5 100644 --- a/multimedia/image_framework/include/image/image_common.h +++ b/multimedia/image_framework/include/image/image_common.h @@ -184,7 +184,7 @@ typedef enum { * DMA supported hdr metadata. * @since 20 */ - IMAGE_ALLOCATOR_MODE_UNSUPPROTED = 7600501, + IMAGE_ALLOCATOR_MODE_UNSUPPORTED = 7600501, /** unknown error */ IMAGE_UNKNOWN_ERROR = 7600901, /** decode data source exception */ @@ -245,16 +245,19 @@ typedef enum { /** * The system determines which memory to use to create the PixelMap. * + * @since 20 */ IMAGE_ALLOCATOR_MODE_AUTO = 0, /** * Use DMA buffer to create the PixelMap. * + * @since 20 */ IMAGE_ALLOCATOR_MODE_DMA = 1, /** * Use share memory to create the PixelMap. * + * @since 20 */ IMAGE_ALLOCATOR_MODE_SHARED_MEMORY = 2, } IMAGE_ALLOCATOR_MODE; diff --git a/multimedia/image_framework/include/image/pixelmap_native.h b/multimedia/image_framework/include/image/pixelmap_native.h index 503e48bb2..c5578db6e 100644 --- a/multimedia/image_framework/include/image/pixelmap_native.h +++ b/multimedia/image_framework/include/image/pixelmap_native.h @@ -583,7 +583,7 @@ Image_ErrorCode OH_PixelmapImageInfo_GetHeight(OH_Pixelmap_ImageInfo *info, uint * @param alphaMode The number of imageinfo alphaMode. * @return Image functions result code. * {@link IMAGE_SUCCESS} if the execution is successful. - * {@link IMAGE_BAD_PARAMETER} pixelmapNative is nullptr, or pixelmapNapi is not a pixelmap. + * {@link IMAGE_BAD_PARAMETER} info is nullptr, or alphaMode is nullptr. * @since 20 */ Image_ErrorCode OH_PixelmapImageInfo_GetAlphaMode(OH_Pixelmap_ImageInfo *info, int32_t *alphaMode); -- Gitee