From 1287f1592c5c5021351512941c3d05750fabc6d0 Mon Sep 17 00:00:00 2001 From: huawei_liujinhong Date: Fri, 6 Jun 2025 16:52:52 +0800 Subject: [PATCH] craetepicturebyhdrandsdr Signed-off-by: huawei_liujinhong Change-Id: I8dd7ef6d126a8400f4f31bc8838b0d1ebf1fa834 --- api/@ohos.multimedia.image.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 65779cca79..860cf9d1b7 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -7211,6 +7211,24 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise} Returns the Picture object. + * @throws {BusinessError} 7600201 - Unsupported operation. HdrPixelMap's PixelMapFormat is not + * RGBA_F16\RGBA_1010102\YCBCR_P010, Or its color space is not BT2020_HLG. Or sdrPixelMap's PixelMapFormat is not + * RGBA_8888\NV21\NV12, or its color space is not P3. + * @syscap SystemCapability.Multimedia.Image.Core + * @systemapi + * @since 20 + */ + function createPictureByHdrAndSdrPixelMap(hdrPixelMap: PixelMap, sdrPixelMap: PixelMap): Promise; + /** * Creates a Picture object based on MessageSequence parameter. * -- Gitee