25static void Y_inv(
unsigned width,
unsigned height,
unsigned char *
data) {
28 unsigned char *a =
data;
29 unsigned char *b = a + (height - 1) * width *
sizeof(uint32_t);
30 for (y = 0; y < height/2; y++) {
31 for (x = 0; x < width; x++) {
33 memcpy(&t, a,
sizeof(t));
34 memcpy(a, b,
sizeof(t));
35 a +=
sizeof(uint32_t);
36 memcpy(b, &t,
sizeof(t));
37 b +=
sizeof(uint32_t);
39 b -= 2 * width *
sizeof(uint32_t);
48 if (ilGetInteger(IL_VERSION_NUM) < IL_VERSION ||
49 iluGetInteger(ILU_VERSION_NUM) < ILU_VERSION) {
50 fprintf(stderr,
"DevIL version is different...exiting!\n");
57 ilGenImages(1, &ImgId);
74 ILenum
Error = ilGetError();
79 fprintf(stderr,
"Error: %s\n", iluErrorString(
Error));
83 ilDeleteImages(1, &ImgId);
86 while ((
Error = ilGetError())) {
87 fprintf(stderr,
"Error: %s\n", iluErrorString(
Error));
Arithmetic helper functions.
#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