• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (C) 2022-2023 Huawei Device Co., Ltd.
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15
16/**
17 * @file
18 * @kit ArkGraphics2D
19 */
20
21import { AsyncCallback } from './@ohos.base';
22
23/**
24 * HDR Capability.
25 *
26 * @namespace hdrCapability
27 * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
28 * @since 11
29 */
30declare namespace hdrCapability {
31  /**
32   * Enumerates the HDR Format
33   *
34   * @enum { number }
35   * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
36   * @since 11
37   */
38  enum HDRFormat {
39    /**
40     * Not support HDR.
41     *
42     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
43     * @since 11
44     */
45    NONE = 0,
46    /**
47     * HLG format supported by video.
48     *
49     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
50     * @since 11
51     */
52    VIDEO_HLG = 1,
53    /**
54     * HDR10 format supported by video.
55     *
56     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
57     * @since 11
58     */
59    VIDEO_HDR10 = 2,
60    /**
61     * HDR Vivid format supported by video.
62     *
63     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
64     * @since 11
65     */
66    VIDEO_HDR_VIVID = 3,
67    /**
68     * HDR Vivid format supported by image, stored in dual JPEG format.
69     *
70     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
71     * @since 11
72     */
73    IMAGE_HDR_VIVID_DUAL = 4,
74    /**
75     * HDR Vivid format supported by image, stored in single HEIF format.
76     *
77     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
78     * @since 11
79     */
80    IMAGE_HDR_VIVID_SINGLE = 5,
81    /**
82     * ISO HDR format supported by image, stored in dual JPEG format.
83     *
84     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
85     * @since 11
86     */
87    IMAGE_HDR_ISO_DUAL = 6,
88    /**
89     * ISO HDR format supported by image, stored in single HEIF format.
90     *
91     * @syscap SystemCapability.Graphic.Graphic2D.ColorManager.Core
92     * @since 11
93     */
94    IMAGE_HDR_ISO_SINGLE = 7,
95  }
96}
97
98export default hdrCapability;