 |
WebRadioApp
0.1
|
Go to the documentation of this file.
112 #ifndef EW_COLOR_CHANNEL_BIT_OFFSET_RED
113 #define EW_COLOR_CHANNEL_BIT_OFFSET_RED 0
116 #ifndef EW_COLOR_CHANNEL_BIT_OFFSET_GREEN
117 #define EW_COLOR_CHANNEL_BIT_OFFSET_GREEN 8
120 #ifndef EW_COLOR_CHANNEL_BIT_OFFSET_BLUE
121 #define EW_COLOR_CHANNEL_BIT_OFFSET_BLUE 16
124 #ifndef EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA
125 #define EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA 24
129 #if ((EW_COLOR_CHANNEL_BIT_OFFSET_RED != 0) && \
130 (EW_COLOR_CHANNEL_BIT_OFFSET_RED != 8) && \
131 (EW_COLOR_CHANNEL_BIT_OFFSET_RED != 16) && \
132 (EW_COLOR_CHANNEL_BIT_OFFSET_RED != 24))
133 #error Wrong 'red' channel bit position. Only '0', '8', '16' or '24' allowed.
136 #if ((EW_COLOR_CHANNEL_BIT_OFFSET_GREEN != 0) && \
137 (EW_COLOR_CHANNEL_BIT_OFFSET_GREEN != 8) && \
138 (EW_COLOR_CHANNEL_BIT_OFFSET_GREEN != 16) && \
139 (EW_COLOR_CHANNEL_BIT_OFFSET_GREEN != 24))
140 #error Wrong 'green' channel bit position. Only '0', '8', '16' or '24' allowed.
143 #if ((EW_COLOR_CHANNEL_BIT_OFFSET_BLUE != 0) && \
144 (EW_COLOR_CHANNEL_BIT_OFFSET_BLUE != 8) && \
145 (EW_COLOR_CHANNEL_BIT_OFFSET_BLUE != 16) && \
146 (EW_COLOR_CHANNEL_BIT_OFFSET_BLUE != 24))
147 #error Wrong 'blue' channel bit position. Only '0', '8', '16' or '24' allowed.
150 #if ((EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA != 0) && \
151 (EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA != 8) && \
152 (EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA != 16) && \
153 (EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA != 24))
154 #error Wrong 'alpha' channel bit position. Only '0', '8', '16' or '24' allowed.
157 #if (EW_COLOR_CHANNEL_BIT_OFFSET_RED == EW_COLOR_CHANNEL_BIT_OFFSET_BLUE) || \
158 (EW_COLOR_CHANNEL_BIT_OFFSET_RED == EW_COLOR_CHANNEL_BIT_OFFSET_GREEN) || \
159 (EW_COLOR_CHANNEL_BIT_OFFSET_RED == EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA) || \
160 (EW_COLOR_CHANNEL_BIT_OFFSET_GREEN == EW_COLOR_CHANNEL_BIT_OFFSET_BLUE) || \
161 (EW_COLOR_CHANNEL_BIT_OFFSET_GREEN == \
162 EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA) || \
163 (EW_COLOR_CHANNEL_BIT_OFFSET_BLUE == EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA)
164 #error Bit offset conflict in the color channel definition.
169 #ifndef EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED
170 #define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED 0
173 #ifndef EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN
174 #define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN 5
177 #ifndef EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE
178 #define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE 11
183 #if ((EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED != 0) && \
184 (EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED != 11))
185 #error Wrong 'red' channel bit position. Only '0' or '11' allowed.
188 #if EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN != 5
189 #error Wrong 'green' channel bit position. Only '5' allowed.
192 #if ((EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE != 0) && \
193 (EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE != 11))
194 #error Wrong 'blue' channel bit position. Only '0' or '11' allowed.
197 #if EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED == \
198 EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE
199 #error Bit offset conflict in the color channel definition.
205 #define EW_RGB565_COLOR_CHANNEL_BIT_OFFSET_RED \
206 EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED
208 #define EW_RGB565_COLOR_CHANNEL_BIT_OFFSET_GREEN \
209 EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN
211 #define EW_RGB565_COLOR_CHANNEL_BIT_OFFSET_BLUE \
212 EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE
216 #ifdef EW_ENABLE_COLOR_TABLE
217 #error Please remove the macro 'EW_ENABLE_COLOR_TABLE' from your make file.
222 #ifndef EW_USE_PIXEL_FORMAT_SCREEN
223 #error Please ensure the macro 'EW_USE_PIXEL_FORMAT_SCREEN' is defined.