#include <gfxprim.h> /* or */ #include <core/gp_pixel.gen.h> typedef enum gp_pixel_type { GP_PIXEL_UNKNOWN, GP_PIXEL_xRGB8888, GP_PIXEL_RGBA8888, GP_PIXEL_RGB888, GP_PIXEL_BGR888, GP_PIXE_CMYK8888, /* optional RGB pixel types (can be disabled in config) */ GP_PIXEL_RGB565, GP_PIXEL_RGB555, GP_PIXEL_RGB332, ... GP_PIXEL_G1, GP_PIXEL_G2, GP_PIXEL_G4, GP_PIXEL_G8, /* optional grayscale pixel types (can be disabled in config) */ GP_PIXEL_GA88, GP_PIXEL_G16, ... GP_PIXEL_MAX, } gp_pixel_type; /* * The same values are also defined as macros so it's possible to * use them with ifdef as: * #ifdef GP_PIXEL_RGB555 * ... * #endif /* GP_PIXEL_RGB555 */ */ #define GP_PIXEL_UNKNOWN GP_PIXEL_UNKNOWN #define GP_PIXEL_xRGB8888 GP_PIXEL_xRGB8888 ...