17static void Y_inv(
unsigned width,
unsigned height,
unsigned char *
data) {
18 unsigned int x, y, *a, *b, t;
20 a = (
unsigned int*)
data;
21 b = a + (height-1) * width;
22 for (y = 0; y < height/2; y++) {
23 for (x = 0; x < width; x++) {
37 if (ilGetInteger(IL_VERSION_NUM) < IL_VERSION ||
38 iluGetInteger(ILU_VERSION_NUM) < ILU_VERSION) {
39 fprintf(stderr,
"DevIL version is different...exiting!\n");
46 ilGenImages(1, &ImgId);
63 ILenum
Error = ilGetError();
68 fprintf(stderr,
"Error: %s\n", iluErrorString(
Error));
72 ilDeleteImages(1, &ImgId);
75 while ((
Error = ilGetError())) {
76 fprintf(stderr,
"Error: %s\n", iluErrorString(
Error));
#define GVDEVICE_NO_WRITER
#define GVDEVICE_DOES_TRUECOLOR
#define GVDEVICE_BINARY_FORMAT
static gvdevice_engine_t devil_engine
static gvdevice_features_t device_features_devil
static void Y_inv(unsigned width, unsigned height, unsigned char *data)
gvplugin_installed_t gvdevice_devil_types[]
static void devil_format(GVJ_t *job)
gvplugin_active_device_t device
unsigned char * imagedata
location of imagedata