• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <ui/GraphicTypes.h>
18 using namespace android;
19 
20 constexpr ui::Dataspace kDataspaces[] = {
21         ui::Dataspace::UNKNOWN,
22         ui::Dataspace::ARBITRARY,
23         ui::Dataspace::STANDARD_UNSPECIFIED,
24         ui::Dataspace::STANDARD_BT709,
25         ui::Dataspace::STANDARD_BT601_625,
26         ui::Dataspace::STANDARD_BT601_625_UNADJUSTED,
27         ui::Dataspace::STANDARD_BT601_525,
28         ui::Dataspace::STANDARD_BT601_525_UNADJUSTED,
29         ui::Dataspace::STANDARD_BT2020,
30         ui::Dataspace::STANDARD_BT2020_CONSTANT_LUMINANCE,
31         ui::Dataspace::STANDARD_BT470M,
32         ui::Dataspace::STANDARD_FILM,
33         ui::Dataspace::STANDARD_DCI_P3,
34         ui::Dataspace::STANDARD_ADOBE_RGB,
35         ui::Dataspace::TRANSFER_UNSPECIFIED,
36         ui::Dataspace::TRANSFER_LINEAR,
37         ui::Dataspace::TRANSFER_SRGB,
38         ui::Dataspace::TRANSFER_SMPTE_170M,
39         ui::Dataspace::TRANSFER_GAMMA2_2,
40         ui::Dataspace::TRANSFER_GAMMA2_6,
41         ui::Dataspace::TRANSFER_GAMMA2_8,
42         ui::Dataspace::TRANSFER_ST2084,
43         ui::Dataspace::TRANSFER_HLG,
44         ui::Dataspace::RANGE_UNSPECIFIED,
45         ui::Dataspace::RANGE_FULL,
46         ui::Dataspace::RANGE_LIMITED,
47         ui::Dataspace::RANGE_EXTENDED,
48         ui::Dataspace::SRGB_LINEAR,
49         ui::Dataspace::V0_SRGB_LINEAR,
50         ui::Dataspace::V0_SCRGB_LINEAR,
51         ui::Dataspace::SRGB,
52         ui::Dataspace::V0_SRGB,
53         ui::Dataspace::V0_SCRGB,
54         ui::Dataspace::JFIF,
55         ui::Dataspace::V0_JFIF,
56         ui::Dataspace::BT601_625,
57         ui::Dataspace::V0_BT601_625,
58         ui::Dataspace::BT601_525,
59         ui::Dataspace::V0_BT601_525,
60         ui::Dataspace::BT709,
61         ui::Dataspace::V0_BT709,
62         ui::Dataspace::DCI_P3_LINEAR,
63         ui::Dataspace::DCI_P3,
64         ui::Dataspace::DISPLAY_P3_LINEAR,
65         ui::Dataspace::DISPLAY_P3,
66         ui::Dataspace::ADOBE_RGB,
67         ui::Dataspace::BT2020_LINEAR,
68         ui::Dataspace::BT2020,
69         ui::Dataspace::BT2020_PQ,
70         ui::Dataspace::DEPTH,
71         ui::Dataspace::SENSOR,
72         ui::Dataspace::BT2020_ITU,
73         ui::Dataspace::BT2020_ITU_PQ,
74         ui::Dataspace::BT2020_ITU_HLG,
75         ui::Dataspace::BT2020_HLG,
76         ui::Dataspace::DISPLAY_BT2020,
77         ui::Dataspace::DYNAMIC_DEPTH,
78         ui::Dataspace::JPEG_APP_SEGMENTS,
79         ui::Dataspace::HEIF,
80 };
81