Merge changes I4ea410ca,I78b037aa
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / PixelFormat.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
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
18 namespace Tizen.NUI
19 {
20     /// <summary>
21     /// Enumeration for Pixel formats.<br />
22     /// Pixel format, default color depth is RGBA 32 bit with alpha.
23     /// </summary>
24     /// /// <since_tizen> 3 </since_tizen>
25     public enum PixelFormat
26     {
27         /// <summary>
28         ///  Used to represent an unsupported format.
29         /// </summary>
30         /// <since_tizen> 3 </since_tizen>
31         INVALID = 0,
32         /// <summary>
33         /// color depth 8-bit, alpha.
34         /// </summary>
35         /// <since_tizen> 3 </since_tizen>
36         A8 = 1,
37         /// <summary>
38         /// color depth 8-bit, luminance
39         /// </summary>
40         /// <since_tizen> 3 </since_tizen>
41         L8,
42         /// <summary>
43         /// color depth 16-bit, luminance with 8 bit alpha
44         /// </summary>
45         /// <since_tizen> 3 </since_tizen>
46         LA88,
47         /// <summary>
48         ///  color depth 16 bit, 5-6-5
49         /// </summary>
50         /// <since_tizen> 3 </since_tizen>
51         RGB565,
52         /// <summary>
53         /// color depth 16 bit, 5-6-5
54         /// </summary>
55         /// <since_tizen> 3 </since_tizen>
56         BGR565,
57         /// <summary>
58         /// color depth 16 bit with alpha, 4-4-4-4
59         /// </summary>
60         /// <since_tizen> 3 </since_tizen>
61         RGBA4444,
62         /// <summary>
63         /// color depth 16 bit with alpha, 4-4-4-4
64         /// </summary>
65         /// <since_tizen> 3 </since_tizen>
66         BGRA4444,
67         /// <summary>
68         /// color depth 16 bit with alpha, 5-5-5-1
69         /// </summary>
70         /// <since_tizen> 3 </since_tizen>
71         RGBA5551,
72         /// <summary>
73         /// color depth 16 bit with alpha, 5-5-5-1
74         /// </summary>
75         /// <since_tizen> 3 </since_tizen>
76         BGRA5551,
77         /// <summary>
78         /// color depth 24 bit, 8-8-8
79         /// </summary>
80         /// <since_tizen> 3 </since_tizen>
81         RGB888,
82         /// <summary>
83         /// color depth 32 bit, alpha is reserved but not used, 8-8-8-8#
84         /// </summary>
85         /// <since_tizen> 3 </since_tizen>
86         RGB8888,
87         /// <summary>
88         /// color depth 32 bit, alpha is reserved but not used, 8-8-8-8#
89         /// </summary>
90         /// <since_tizen> 3 </since_tizen>
91         BGR8888,
92         /// <summary>
93         /// color depth 32 bit with alpha, 8-8-8-8
94         /// </summary>
95         /// <since_tizen> 3 </since_tizen>
96         RGBA8888,
97         /// <summary>
98         /// color depth 32 bit with alpha, 8-8-8-8
99         /// </summary>
100         /// <since_tizen> 3 </since_tizen>
101         BGRA8888,
102         /// <summary>
103         /// ETC2 / EAC single-channel, unsigned
104         /// </summary>
105         /// <since_tizen> 3 </since_tizen>
106         COMPRESSED_R11_EAC,
107         /// <summary>
108         /// ETC2 / EAC single-channel, signed
109         /// </summary>
110         /// <since_tizen> 3 </since_tizen>
111         COMPRESSED_SIGNED_R11_EAC,
112         /// <summary>
113         /// ETC2 / EAC dual-channel, unsigned
114         /// </summary>
115         /// <since_tizen> 3 </since_tizen>
116         COMPRESSED_RG11_EAC,
117         /// <summary>
118         /// ETC2 / EAC dual-channel, signed
119         /// </summary>
120         /// <since_tizen> 3 </since_tizen>
121         COMPRESSED_SIGNED_RG11_EAC,
122         /// <summary>
123         /// ETC2 / EAC RGB
124         /// </summary>
125         /// <since_tizen> 3 </since_tizen>
126         COMPRESSED_RGB8_ETC2,
127         /// <summary>
128         /// ETC2 / EAC RGB using sRGB colourspace.
129         /// </summary>
130         /// <since_tizen> 3 </since_tizen>
131         COMPRESSED_SRGB8_ETC2,
132         /// <summary>
133         /// ETC2 / EAC RGB with single bit per pixel alpha mask.
134         /// </summary>
135         /// <since_tizen> 3 </since_tizen>
136         COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
137         /// <summary>
138         /// ETC2 / EAC RGB using sRGB colourspace, with single bit per pixel alpha mask.
139         /// </summary>
140         /// <since_tizen> 3 </since_tizen>
141         COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
142         /// <summary>
143         /// ETC2 / EAC RGB plus separate alpha channel.
144         /// </summary>
145         /// <since_tizen> 3 </since_tizen>
146         COMPRESSED_RGBA8_ETC2_EAC,
147         /// <summary>
148         /// ETC2 / EAC RGB using sRGB colourspace, plus separate alpha channel.
149         /// </summary>
150         /// <since_tizen> 3 </since_tizen>
151         COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
152         /// <summary>
153         /// ETC1 RGB as defined by GLES 2 extension OES_compressed_ETC1_RGB8_texture: http://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt
154         /// </summary>
155         /// <since_tizen> 3 </since_tizen>
156         COMPRESSED_RGB8_ETC1,
157         /// <summary>
158         /// PowerVR 4bpp RGB format (v1) as defined by extension IMG_texture_compression_pvrtc: http://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc.txt
159         /// </summary>
160         /// <since_tizen> 3 </since_tizen>
161         COMPRESSED_RGB_PVRTC_4BPPV1,
162         /// <summary>
163         /// ASTC Non-linear (gamma-corrected) color space with a 4x4 block-size.
164         /// </summary>
165         /// <since_tizen> 3 </since_tizen>
166         COMPRESSED_RGBA_ASTC_4x4_KHR,
167         /// <summary>
168         ///  ASTC Non-linear (gamma-corrected) color space with a 5x4 block-size.
169         /// </summary>
170         /// <since_tizen> 3 </since_tizen>
171         COMPRESSED_RGBA_ASTC_5x4_KHR,
172         /// <summary>
173         /// ASTC Non-linear (gamma-corrected) color space with a 5x5 block-size.
174         /// </summary>
175         /// <since_tizen> 3 </since_tizen>
176         COMPRESSED_RGBA_ASTC_5x5_KHR,
177         /// <summary>
178         /// ASTC Non-linear (gamma-corrected) color space with a 6x5 block-size.
179         /// </summary>
180         /// <since_tizen> 3 </since_tizen>
181         COMPRESSED_RGBA_ASTC_6x5_KHR,
182         /// <summary>
183         /// ASTC Non-linear (gamma-corrected) color space with a 6x6 block-size.
184         /// </summary>
185         /// <since_tizen> 3 </since_tizen>
186         COMPRESSED_RGBA_ASTC_6x6_KHR,
187         /// <summary>
188         /// ASTC Non-linear (gamma-corrected) color space with a 8x5 block-size.
189         /// </summary>
190         /// <since_tizen> 3 </since_tizen>
191         COMPRESSED_RGBA_ASTC_8x5_KHR,
192         /// <summary>
193         /// ASTC Non-linear (gamma-corrected) color space with a 8x6 block-size.
194         /// </summary>
195         /// <since_tizen> 3 </since_tizen>
196         COMPRESSED_RGBA_ASTC_8x6_KHR,
197         /// <summary>
198         /// ASTC Non-linear (gamma-corrected) color space with a 8x8 block-size.
199         /// </summary>
200         /// <since_tizen> 3 </since_tizen>
201         COMPRESSED_RGBA_ASTC_8x8_KHR,
202         /// <summary>
203         /// ASTC Non-linear (gamma-corrected) color space with a 10x5 block-size.
204         /// </summary>
205         /// <since_tizen> 3 </since_tizen>
206         COMPRESSED_RGBA_ASTC_10x5_KHR,
207         /// <summary>
208         /// ASTC Non-linear (gamma-corrected) color space with a 10x6 block-size.
209         /// </summary>
210         /// <since_tizen> 3 </since_tizen>
211         COMPRESSED_RGBA_ASTC_10x6_KHR,
212         /// <summary>
213         /// ASTC Non-linear (gamma-corrected) color space with a 10x8 block-size.
214         /// </summary>
215         /// <since_tizen> 3 </since_tizen>
216         COMPRESSED_RGBA_ASTC_10x8_KHR,
217         /// <summary>
218         /// ASTC Non-linear (gamma-corrected) color space with a 10x10 block-size.
219         /// </summary>
220         /// <since_tizen> 3 </since_tizen>
221         COMPRESSED_RGBA_ASTC_10x10_KHR,
222         /// <summary>
223         /// ASTC Non-linear (gamma-corrected) color space with a 12x10 block-size.
224         /// </summary>
225         /// <since_tizen> 3 </since_tizen>
226         COMPRESSED_RGBA_ASTC_12x10_KHR,
227         /// <summary>
228         /// ASTC Non-linear (gamma-corrected) color space with a 12x12 block-size.
229         /// </summary>
230         /// <since_tizen> 3 </since_tizen>
231         COMPRESSED_RGBA_ASTC_12x12_KHR,
232         /// <summary>
233         /// ASTC Non-linear (gamma-corrected) color space with a 4x4 block-size.
234         /// </summary>
235         /// <since_tizen> 3 </since_tizen>
236         COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR,
237         /// <summary>
238         /// ASTC Non-linear (gamma-corrected) color space with a 5x4 block-size.
239         /// </summary>
240         /// <since_tizen> 3 </since_tizen>
241         COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR,
242         /// <summary>
243         /// ASTC Non-linear (gamma-corrected) color space with a 5x5 block-size.
244         /// </summary>
245         /// <since_tizen> 3 </since_tizen>
246         COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR,
247         /// <summary>
248         /// ASTC Non-linear (gamma-corrected) color space with a 6x5 block-size.
249         /// </summary>
250         /// <since_tizen> 3 </since_tizen>
251         COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR,
252         /// <summary>
253         /// ASTC Non-linear (gamma-corrected) color space with a 6x6 block-size.
254         /// </summary>
255         /// <since_tizen> 3 </since_tizen>
256         COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR,
257         /// <summary>
258         /// ASTC Non-linear (gamma-corrected) color space with a 8x5 block-size.
259         /// </summary>
260         /// <since_tizen> 3 </since_tizen>
261         COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR,
262         /// <summary>
263         /// ASTC Non-linear (gamma-corrected) color space with a 8x6 block-size.
264         /// </summary>
265         /// <since_tizen> 3 </since_tizen>
266         COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR,
267         /// <summary>
268         /// ASTC Non-linear (gamma-corrected) color space with a 8x8 block-size.
269         /// </summary>
270         /// <since_tizen> 3 </since_tizen>
271         COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR,
272         /// <summary>
273         /// ASTC Non-linear (gamma-corrected) color space with a 10x5 block-size.
274         /// </summary>
275         /// <since_tizen> 3 </since_tizen>
276         COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR,
277         /// <summary>
278         /// ASTC Non-linear (gamma-corrected) color space with a 10x6 block-size.
279         /// </summary>
280         /// <since_tizen> 3 </since_tizen>
281         COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR,
282         /// <summary>
283         /// ASTC Non-linear (gamma-corrected) color space with a 10x8 block-size.
284         /// </summary>
285         /// <since_tizen> 3 </since_tizen>
286         COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR,
287         /// <summary>
288         /// ASTC Non-linear (gamma-corrected) color space with a 10x10 block-size.
289         /// </summary>
290         /// <since_tizen> 3 </since_tizen>
291         COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR,
292         /// <summary>
293         /// ASTC Non-linear (gamma-corrected) color space with a 12x10 block-size.
294         /// </summary>
295         /// <since_tizen> 3 </since_tizen>
296         COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR,
297         /// <summary>
298         /// ASTC Non-linear (gamma-corrected) color space with a 12x12 block-size.
299         /// </summary>
300         /// <since_tizen> 3 </since_tizen>
301         COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR
302     }
303
304 }