From 58a54b13cbe2c41fb75c8fef8aa3513a29463a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BC=80=E5=85=B4?= Date: Fri, 18 Aug 2023 09:03:21 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-image.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄开兴 --- .../reference/apis/js-apis-image.md | 145 ++++++++++++------ 1 file changed, 100 insertions(+), 45 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 7a5570c7d1..15e663eb67 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -892,6 +892,16 @@ getColorSpace(): colorSpaceManager.ColorSpaceManager | ----------------------------------- | ---------------- | | [colorSpaceManager.ColorSpaceManager](js-apis-colorSpaceManager.md#colorspacemanager) | 图像广色域信息。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980101| If the image data abnormal | +| 62980103| If the image data unsupport | +| 62980115| If the image parameter invalid | + **示例:** ```js @@ -915,6 +925,15 @@ setColorSpace(colorSpace: colorSpaceManager.ColorSpaceManager): void | ---------- | ----------------------------------- | ---- | --------------- | | colorSpace | [colorSpaceManager.ColorSpaceManager](js-apis-colorSpaceManager.md#colorspacemanager) | 是 | 图像广色域信息。| +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980111| If the operation invalid | +| 62980115| If the image parameter invalid | + **示例:** ```js @@ -941,7 +960,7 @@ marshalling(sequence: rpc.MessageSequence): void **错误码:** -以下错误码的详细介绍请参见文档底部图片错误码。 +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 | 错误码ID | 错误信息 | | ------- | --------------------------------------------| @@ -998,7 +1017,7 @@ unmarshalling(sequence: rpc.MessageSequence): Promise\ **错误码:** -以下错误码的详细介绍请参见文档底部图片错误码。 +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 | 错误码ID | 错误信息 | | ------- | --------------------------------------------| @@ -1698,7 +1717,19 @@ createPixelMapList(options?: DecodingOptions): Promise>; | 类型 | 说明 | | -------------------------------- | --------------------- | -| Promise> | 异步返回PixelMap数组。 | +| Promise> | 异步返回PixeMap数组。 | + +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980103| If the image data unsupport | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980118| If the image plugin create failed | **示例:** @@ -1728,6 +1759,18 @@ createPixelMapList(callback: AsyncCallback>): void | -------- | ------------------------------------- | ---- | -------------------------- | | callback | AsyncCallback> | 是 | 通过回调返回PixelMap数组。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980103| If the image data unsupport | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980118| If the image plugin create failed | + **示例:** ```js @@ -1751,6 +1794,18 @@ createPixelMapList(options: DecodingOptions, callback: AsyncCallback> | 是 | 通过回调返回PixelMap数组。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980103| If the image data unsupport | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980118| If the image plugin create failed | + **示例:** ```js @@ -1781,6 +1836,20 @@ getDelayTimeList(callback: AsyncCallback>): void; | -------- | -------------------- | ---- | ---------------------------------- | | callback | AsyncCallback> | 是 | 通过回调返回延迟时间数组。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980113| If the image format unknown | +| 62980116| If the image decode failed | +| 62980118| If the image plugin create failed | +| 62980122| If the image decode head abnormal | + **示例:** ```js @@ -1803,6 +1872,20 @@ getDelayTimeList(): Promise>; | -------------- | --------------------------- | | Promise> | Promise实例,异步返回延迟时间数组。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980113| If the image format unknown | +| 62980116| If the image decode failed | +| 62980118| If the image plugin create failed | +| 62980122| If the image decode head abnormal | + **示例:** ```js @@ -1823,6 +1906,20 @@ getFrameCount(callback: AsyncCallback\): void; | -------- | -------------------- | ---- | ---------------------------------- | | callback | AsyncCallback\ | 是 | 通过回调返回图像帧数。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation invalid | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980113| If the image format unknown | +| 62980116| If the image decode failed | +| 62980118| If the image plugin create failed | +| 62980122| If the image decode head abnormal | + **示例:** ```js @@ -3006,45 +3103,3 @@ PixelMap的初始化选项。 - textPath - tspan - use - -### ResponseCode说明 - -编译错误返回的响应码。 - -| 名称 | 值 | 说明 | -| ----------------------------------- | -------- | --------------------------------------------------- | -| ERR_MEDIA_INVALID_VALUE | -1 | 无效大小。 | -| SUCCESS | 0 | 操作成功。 | -| ERROR | 62980096 | 操作失败。 | -| ERR_IPC | 62980097 | ipc错误。 | -| ERR_SHAMEM_NOT_EXIST | 62980098 | 共享内存错误。 | -| ERR_SHAMEM_DATA_ABNORMAL | 62980099 | 共享内存错误。 | -| ERR_IMAGE_DECODE_ABNORMAL | 62980100 | 图像解码错误。 | -| ERR_IMAGE_DATA_ABNORMAL | 62980101 | 图像输入数据错误。 | -| ERR_IMAGE_MALLOC_ABNORMAL | 62980102 | 图像malloc错误。 | -| ERR_IMAGE_DATA_UNSUPPORT | 62980103 | 不支持图像类型。 | -| ERR_IMAGE_INIT_ABNORMAL | 62980104 | 图像初始化错误。 | -| ERR_IMAGE_GET_DATA_ABNORMAL | 62980105 | 图像获取数据错误。 | -| ERR_IMAGE_TOO_LARGE | 62980106 | 图像数据太大。 | -| ERR_IMAGE_TRANSFORM | 62980107 | 图像转换错误。 | -| ERR_IMAGE_COLOR_CONVERT | 62980108 | 图像颜色转换错误。 | -| ERR_IMAGE_CROP | 62980109 | 裁剪错误。 | -| ERR_IMAGE_SOURCE_DATA | 62980110 | 图像源数据错误。 | -| ERR_IMAGE_SOURCE_DATA_INCOMPLETE | 62980111 | 图像源数据不完整。 | -| ERR_IMAGE_MISMATCHED_FORMAT | 62980112 | 图像格式不匹配。 | -| ERR_IMAGE_UNKNOWN_FORMAT | 62980113 | 图像未知格式。 | -| ERR_IMAGE_SOURCE_UNRESOLVED | 62980114 | 图像源未解析。 | -| ERR_IMAGE_INVALID_PARAMETER | 62980115 | 图像无效参数。 | -| ERR_IMAGE_DECODE_FAILED | 62980116 | 解码失败。 | -| ERR_IMAGE_PLUGIN_REGISTER_FAILED | 62980117 | 注册插件失败。 | -| ERR_IMAGE_PLUGIN_CREATE_FAILED | 62980118 | 创建插件失败。 | -| ERR_IMAGE_ENCODE_FAILED | 62980119 | 图像编码失败。 | -| ERR_IMAGE_ADD_PIXEL_MAP_FAILED | 62980120 | 图像添加像素映射失败。 | -| ERR_IMAGE_HW_DECODE_UNSUPPORT | 62980121 | 不支持图像硬件解码。 | -| ERR_IMAGE_DECODE_HEAD_ABNORMAL | 62980122 | 图像解码头错误。 | -| ERR_IMAGE_DECODE_EXIF_UNSUPPORT | 62980123 | 图像解码exif取消支持。 | -| ERR_IMAGE_PROPERTY_NOT_EXIST | 62980124 | 图像属性不存在;错误代码被媒体占用,图像从150开始。 | -| ERR_IMAGE_READ_PIXELMAP_FAILED | 62980246 | 读取像素地图失败。 | -| ERR_IMAGE_WRITE_PIXELMAP_FAILED | 62980247 | 写入像素映射失败。 | -| ERR_IMAGE_PIXELMAP_NOT_ALLOW_MODIFY | 62980248 | pixelmap不允许修改。 | -| ERR_IMAGE_CONFIG_FAILED | 62980259 | 配置错误。 | -- GitLab