diff --git a/multimedia/image_framework/include/image/image_common.h b/multimedia/image_framework/include/image/image_common.h index 6d08b76ae5037c54c9f2b578f85c13b077e4c0b6..f86115ec5d26c66fc96ee29672553a4acb38b8e8 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 503e48bb2764c176da6099e516f6c377f6cfefd0..c5578db6e6ab624d562ebeaa604e24735b775245 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);