Home | History | Annotate | Download | only in Modules

Lines Matching refs:IMAGE

5 ** an object of image file class, and have routines to manipulate these
6 ** image files in a neater way (so you can get rgb images off a greyscale
8 ** image bits into python, etc).
15 #include <gl/image.h>
30 /* The image library does not always call the error hander :-(,
48 /* Open an image file and return a pointer to it.
51 static IMAGE *
54 IMAGE *image;
58 if ( (image = iopen(fname, "r")) == NULL ) {
65 "Can't open image file");
69 return image;
95 IMAGE *image;
101 if ( (image = imgfile_open(fname)) == NULL )
104 if ( image->colormap != CM_NORMAL ) {
105 iclose(image);
110 if ( BPP(image->type) != 1 ) {
111 iclose(image);
116 xsize = image->xsize;
117 ysize = image->ysize;
118 zsize = image->zsize;
120 iclose(image);
126 iclose(image);
128 "Can't handle image with > 8192 columns");
135 iclose(image);
152 getrow(image, rs, y, 0);
156 getrow(image, rs, y, 0);
157 getrow(image, gs, y, 1);
158 getrow(image, bs, y, 2);
165 iclose(image);
173 static IMAGE *glob_image;
216 xscale(IMAGE *image, int xsize, int ysize, int zsize,
219 glob_image = image;
253 IMAGE *image;
290 if ( (image = imgfile_open(fname)) == NULL )
293 if ( image->colormap != CM_NORMAL ) {
294 iclose(image);
299 if ( BPP(image->type) != 1 ) {
300 iclose(image);
305 xsize = image->xsize;
306 ysize = image->ysize;
307 zsize = image->zsize;
309 iclose(image);
315 iclose(image);
317 "Can't handle image with > 8192 columns");
324 iclose(image);
335 xscale(image, xsize, ysize, zsize,
350 getrow(image, rs, yorig, 0);
355 getrow(image, rs, yorig, 0);
356 getrow(image, gs, yorig, 1);
357 getrow(image, bs, yorig, 2);
367 iclose(image);
380 IMAGE *image;
385 if ( (image = imgfile_open(fname)) == NULL )
387 rv = Py_BuildValue("(iii)", image->xsize, image->ysize, image->zsize);
388 iclose(image);
395 IMAGE *image;
422 "Can't handle image with > 8192 columns");
428 image =iopen(fname, "w", RLE(1), 3, xsize, ysize, zsize);
429 if ( image == 0 ) {
435 "Can't create image file");
455 putrow(image, rs, y, 0);
466 putrow(image, rs, y, 0);
467 putrow(image, gs, y, 1);
468 putrow(image, bs, y, 2);
471 iclose(image);