Lines Matching refs:g
89 #define RGB_FROM_PIXEL(Pixel, fmt, r, g, b) \ argument
92 g = (((Pixel&fmt->Gmask)>>fmt->Gshift)<<fmt->Gloss); \
95 #define RGB_FROM_RGB565(Pixel, r, g, b) \ argument
98 g = (((Pixel&0x07E0)>>5)<<2); \
101 #define RGB_FROM_RGB555(Pixel, r, g, b) \ argument
104 g = (((Pixel&0x03E0)>>5)<<3); \
107 #define RGB_FROM_RGB888(Pixel, r, g, b) \ argument
110 g = ((Pixel&0xFF00)>>8); \
140 #define DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b) \ argument
165 RGB_FROM_PIXEL(Pixel, fmt, r, g, b); \
170 #define PIXEL_FROM_RGB(Pixel, fmt, r, g, b) \ argument
173 ((g>>fmt->Gloss)<<fmt->Gshift)| \
177 #define PIXEL_FROM_RGB(Pixel, fmt, r, g, b) \ argument
180 ((g>>fmt->Gloss)<<fmt->Gshift)| \
184 #define RGB565_FROM_RGB(Pixel, r, g, b) \ argument
186 Pixel = ((r>>3)<<11)|((g>>2)<<5)|(b>>3); \
188 #define RGB555_FROM_RGB(Pixel, r, g, b) \ argument
190 Pixel = ((r>>3)<<10)|((g>>3)<<5)|(b>>3); \
192 #define RGB888_FROM_RGB(Pixel, r, g, b) \ argument
194 Pixel = (r<<16)|(g<<8)|b; \
196 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) \ argument
202 PIXEL_FROM_RGB(Pixel, fmt, r, g, b); \
210 *((buf)+fmt->Gshift/8) = g; \
214 *((buf)+2-fmt->Gshift/8) = g; \
223 PIXEL_FROM_RGB(Pixel, fmt, r, g, b); \
229 #define ASSEMBLE_RGB_AMASK(buf, bpp, fmt, r, g, b, Amask) \ argument
237 PIXEL_FROM_RGB(Pixel, fmt, r, g, b); \
245 *((buf)+fmt->Gshift/8) = g; \
249 *((buf)+2-fmt->Gshift/8) = g; \
260 PIXEL_FROM_RGB(Pixel, fmt, r, g, b); \
268 #define RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a) \ argument
271 g = ((Pixel&fmt->Gmask)>>fmt->Gshift)<<fmt->Gloss; \
275 #define RGBA_FROM_8888(Pixel, fmt, r, g, b, a) \ argument
278 g = (Pixel&fmt->Gmask)>>fmt->Gshift; \
282 #define RGBA_FROM_RGBA8888(Pixel, r, g, b, a) \ argument
285 g = ((Pixel>>16)&0xFF); \
289 #define RGBA_FROM_ARGB8888(Pixel, r, g, b, a) \ argument
292 g = ((Pixel>>8)&0xFF); \
296 #define RGBA_FROM_ABGR8888(Pixel, r, g, b, a) \ argument
299 g = ((Pixel>>8)&0xFF); \
303 #define DISEMBLE_RGBA(buf, bpp, fmt, Pixel, r, g, b, a) \ argument
328 RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a); \
334 #define PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a) \ argument
337 ((g>>fmt->Gloss)<<fmt->Gshift)| \
342 #define PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a) \ argument
345 ((g>>fmt->Gloss)<<fmt->Gshift)| \
350 #define ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a) \ argument
356 PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a); \
364 *((buf)+fmt->Gshift/8) = g; \
368 *((buf)+2-fmt->Gshift/8) = g; \
377 PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a); \