From 3381dd149ca928c3843e5959ad00562eca64f51a Mon Sep 17 00:00:00 2001 From: y00656910 Date: Mon, 30 Sep 2024 11:59:30 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"!13771=20=E5=A2=9E=E5=8A=A0packing?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=94=99=E8=AF=AF=E7=A0=81"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f4be894e06566743389684c0737dc21cc1926120, reversing changes made to cdf2628fa1d927de4f9ad1a0d620a9919f55d2ee. Signed-off-by: y00656910 Change-Id: I7f04f6f18f78e83ff9437d6c327e0f1e3c7ac086 --- api/@ohos.multimedia.image.d.ts | 82 +-------------------------------- 1 file changed, 1 insertion(+), 81 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 3c30fdef4..2f0fae2bd 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -18,7 +18,7 @@ * @kit ImageKit */ -import { AsyncCallback, BusinessError } from './@ohos.base'; +import { AsyncCallback } from './@ohos.base'; import type colorSpaceManager from './@ohos.graphics.colorSpaceManager'; import type resourceManager from './@ohos.resourceManager'; import type rpc from './@ohos.rpc'; @@ -8372,28 +8372,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; - /** - * Compresses or packs an image and uses a promise to return the result. - * - * @param { ImageSource } source Image to be processed. - * @param { PackingOption } option Option for image packing. - * @returns { Promise } A Promise instance used to return the compressed or packed data. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. - * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @crossplatform - * @atomicservice - * @since 13 - */ - packToData(source: ImageSource, option: PackingOption): Promise; - /** * Compresses or packs an image and uses a callback to return the result. * @@ -8458,28 +8436,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; - /** - * Compresses or packs an image and uses a promise to return the result. - * - * @param { PixelMap } source PixelMap to be processed. - * @param { PackingOption } option Option for image packing. - * @returns { Promise } A Promise instance used to return the compressed or packed data. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. - * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @crossplatform - * @atomicservice - * @since 13 - */ - packToData(source: PixelMap, option: PackingOption): Promise; - /** * Compresses or packs some images into an arraybuffer and uses a promise to return the result. * @@ -8498,15 +8454,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the operation result. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @since 11 @@ -8520,15 +8467,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the operation result. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @since 11 @@ -8542,15 +8480,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the operation result. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @since 11 @@ -8564,15 +8493,6 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the operation result. - * @throws { BusinessError } 401 - If the parameter is invalid. - * @throws { BusinessError } 62980096 - The Operation failed. - * @throws { BusinessError } 62980101 - The image data is abnormal. - * @throws { BusinessError } 62980106 - The image is too large. - * @throws { BusinessError } 62980113 - Unknown image format. - * @throws { BusinessError } 62980119 - If encoder occur error during encoding. - * @throws { BusinessError } 62980120 - Add pixelmap out of range. - * @throws { BusinessError } 62980172 - Failed to encode icc. - * @throws { BusinessError } 62980252 - Failed to create surface. * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @since 11