Dali 3D User Interface Engine
pixel.h
Go to the documentation of this file.
1 #ifndef __DALI_PIXEL_H__
2 #define __DALI_PIXEL_H__
3 
4 /*
5  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // INTERNAL INCLUDES
23 
24 namespace Dali
25 {
35 namespace Pixel
36 {
42 enum Format
43 {
44  INVALID = 0,
45 
46  // Start at > 0 to distinguish null data:
47  A8 = 1,
48  L8,
49  LA88,
61 
62  // GLES 3 Standard compressed formats:
73 
74  // GLES 2 extension compressed formats:
77 
78  // GLES 3.1 compressed formats:
107 
109 };
110 
117 
124 
132 DALI_IMPORT_API bool HasAlpha(Format pixelformat);
133 
141 DALI_IMPORT_API unsigned int GetBytesPerPixel(Format pixelFormat);
142 
155 DALI_IMPORT_API void GetAlphaOffsetAndMask(Format pixelFormat, int& byteOffset, int& bitMask);
156 
157 } //namespace Pixel
158 
162 } // namespace Dali
163 
164 #endif // __DALI_PIXEL_H__
Dali Docs Home
Read more about Dali