21 Y_inv (
unsigned int width,
unsigned int height,
char *
data)
23 unsigned int x, y, *a, *b, t;
25 a = (
unsigned int*)data;
26 b = a + (height-1) * width;
27 for (y = 0; y < height/2; y++) {
28 for (x = 0; x < width; x++) {
37 static void devil_format(
GVJ_t * job)
44 if (ilGetInteger(IL_VERSION_NUM) < IL_VERSION ||
45 iluGetInteger(ILU_VERSION_NUM) < ILU_VERSION) {
46 fprintf(stderr,
"DevIL version is different...exiting!\n");
53 ilGenImages(1, &ImgId);
73 ilDeleteImages(1, &ImgId);
76 while ((Error = ilGetError())) {
77 fprintf(stderr,
"Error: %s\n", iluErrorString(Error));
97 {IL_BMP,
"bmp:cairo", -1, &devil_engine, &device_features_devil},
98 {IL_JPG,
"jpg:cairo", -1, &devil_engine, &device_features_devil},
99 {IL_JPG,
"jpe:cairo", -1, &devil_engine, &device_features_devil},
100 {IL_JPG,
"jpeg:cairo", -1, &devil_engine, &device_features_devil},
101 {IL_PNG,
"png:cairo", -1, &devil_engine, &device_features_devil},
102 {IL_TIF,
"tif:cairo", -1, &devil_engine, &device_features_devil},
103 {IL_TIF,
"tiff:cairo", -1, &devil_engine, &device_features_devil},
104 {IL_TGA,
"tga:cairo", -1, &devil_engine, &device_features_devil},
#define GVDEVICE_BINARY_FORMAT
gvplugin_active_device_t device
#define GVDEVICE_NO_WRITER
gvplugin_installed_t gvdevice_devil_types[]
#define GVDEVICE_DOES_TRUECOLOR