ArkUI依赖ColorSpace、HDRFormat打元服务标签

Signed-off-by: tangjie <1402602435@qq.com>
This commit is contained in:
tangjie 2024-07-23 11:24:12 +08:00
parent e9c4e95ba0
commit 5dc6ae94e0
2 changed files with 311 additions and 0 deletions

View File

@ -33,6 +33,15 @@
* @crossplatform
* @since 11
*/
/**
* Color space manager.
*
* @namespace colorSpaceManager
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
declare namespace colorSpaceManager {
/**
* Enumerates color space types.
@ -47,6 +56,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Enumerates color space types.
* @enum { number } ColorSpace
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
enum ColorSpace {
/**
* Indicates an unknown color space.
@ -59,6 +76,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates an unknown color space.
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
UNKNOWN = 0,
/**
@ -72,6 +96,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on Adobe RGB (1998).
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
ADOBE_RGB_1998 = 1,
/**
@ -85,6 +116,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DCI_P3 = 2,
/**
@ -98,6 +136,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_P3 = 3,
/**
@ -111,6 +156,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the standard red green blue (SRGB) color space based on IEC 61966-2.1:1999.
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
SRGB = 4,
/**
@ -120,6 +172,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on ITU-R BT.709.
* PRIMARIES_BT709 | TRANSFUNC_BT709 | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT709 = 6,
/**
@ -129,6 +189,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on ITU-R BT.601.
* PRIMARIES_BT601_P | TRANSFUNC_BT709 | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT601_EBU = 7,
/**
@ -138,6 +206,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on ITU-R BT.601.
* PRIMARIES_BT601_N | TRANSFUNC_BT709 | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT601_SMPTE_C = 8,
/**
@ -147,6 +223,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on ITU-R BT.2020.
* PRIMARIES_BT2020 | TRANSFUNC_HLG | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT2020_HLG = 9,
/**
@ -156,6 +240,14 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates the color space based on ITU-R BT.2020.
* PRIMARIES_BT2020 | TRANSFUNC_PQ | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT2020_PQ = 10,
/**
@ -164,6 +256,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_HLG | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
P3_HLG = 11,
/**
@ -172,6 +271,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_PQ | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
P3_PQ = 12,
/**
@ -180,6 +286,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_ADOBE_RGB | TRANSFUNC_ADOBE_RGB | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
ADOBE_RGB_1998_LIMIT = 13,
/**
@ -188,6 +301,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_SRGB | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_P3_LIMIT = 14,
/**
@ -196,6 +316,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_SRGB | TRANSFUNC_SRGB | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
SRGB_LIMIT = 15,
/**
@ -204,6 +331,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT709 | TRANSFUNC_BT709 | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT709_LIMIT = 16,
/**
@ -212,6 +346,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT601_P | TRANSFUNC_BT709 | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT601_EBU_LIMIT = 17,
/**
@ -220,6 +361,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT601_N | TRANSFUNC_BT709 | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT601_SMPTE_C_LIMIT = 18,
/**
@ -228,6 +376,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT2020 | TRANSFUNC_HLG | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT2020_HLG_LIMIT = 19,
/**
@ -236,6 +391,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT2020 | TRANSFUNC_PQ | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
BT2020_PQ_LIMIT = 20,
/**
@ -244,6 +406,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_HLG | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
P3_HLG_LIMIT = 21,
/**
@ -252,6 +421,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_PQ | RANGE_LIMIT
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
P3_PQ_LIMIT = 22,
/**
@ -260,6 +436,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_LINEAR
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
LINEAR_P3 = 23,
/**
@ -268,6 +451,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_SRGB | TRANSFUNC_LINEAR
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
LINEAR_SRGB = 24,
/**
@ -276,6 +466,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT709 | TRANSFUNC_LINEAR
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
LINEAR_BT709 = LINEAR_SRGB,
/**
@ -284,6 +481,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_BT2020 | TRANSFUNC_LINEAR
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
LINEAR_BT2020 = 25,
/**
@ -292,6 +496,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_SRGB | TRANSFUNC_SRGB | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_SRGB = SRGB,
/**
@ -300,6 +511,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_SRGB | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_P3_SRGB = DISPLAY_P3,
/**
@ -308,6 +526,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_P3_D65 | TRANSFUNC_HLG | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_P3_HLG = P3_HLG,
/**
@ -316,6 +541,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* PRIMARIES_DISPLAY_P3 | TRANSFUNC_PQ | RANGE_FULL
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
DISPLAY_P3_PQ = P3_PQ,
/**
@ -329,6 +561,13 @@ declare namespace colorSpaceManager {
* @crossplatform
* @since 11
*/
/**
* Indicates a customized color space.
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @crossplatform
* @atomicservice
* @since 12
*/
CUSTOM = 5,
}

View File

@ -27,6 +27,14 @@ import { AsyncCallback } from './@ohos.base';
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HDR Capability.
*
* @namespace hdrCapability
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
declare namespace hdrCapability {
/**
* Enumerates the HDR Format
@ -35,6 +43,14 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* Enumerates the HDR Format
*
* @enum { number }
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
enum HDRFormat {
/**
* Not support HDR.
@ -42,6 +58,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* Not support HDR.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
NONE = 0,
/**
* HLG format supported by video.
@ -49,6 +72,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HLG format supported by video.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
VIDEO_HLG = 1,
/**
* HDR10 format supported by video.
@ -56,6 +86,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HDR10 format supported by video.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
VIDEO_HDR10 = 2,
/**
* HDR Vivid format supported by video.
@ -63,6 +100,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HDR Vivid format supported by video.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
VIDEO_HDR_VIVID = 3,
/**
* HDR Vivid format supported by image, stored in dual JPEG format.
@ -70,6 +114,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HDR Vivid format supported by image, stored in dual JPEG format.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
IMAGE_HDR_VIVID_DUAL = 4,
/**
* HDR Vivid format supported by image, stored in single HEIF format.
@ -77,6 +128,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* HDR Vivid format supported by image, stored in single HEIF format.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
IMAGE_HDR_VIVID_SINGLE = 5,
/**
* ISO HDR format supported by image, stored in dual JPEG format.
@ -84,6 +142,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* ISO HDR format supported by image, stored in dual JPEG format.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
IMAGE_HDR_ISO_DUAL = 6,
/**
* ISO HDR format supported by image, stored in single HEIF format.
@ -91,6 +156,13 @@ declare namespace hdrCapability {
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @since 11
*/
/**
* ISO HDR format supported by image, stored in single HEIF format.
*
* @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
* @atomicservice
* @since 12
*/
IMAGE_HDR_ISO_SINGLE = 7,
}
}