Lines Matching refs:zsize
90 int xsize, ysize, zsize; in imgfile_read() local
118 zsize = image->zsize; in imgfile_read()
119 if ( zsize != 1 && zsize != 3) { in imgfile_read()
132 if ( zsize == 3 ) zsize = 4; in imgfile_read()
133 rv = PyString_FromStringAndSize((char *)NULL, xsize*ysize*zsize); in imgfile_read()
151 if ( zsize == 1 ) { in imgfile_read()
216 xscale(IMAGE *image, int xsize, int ysize, int zsize, in xscale() argument
223 if ( zsize == 1 ) { in xscale()
246 int xsize, ysize, zsize; in imgfile_readscaled() local
307 zsize = image->zsize; in imgfile_readscaled()
308 if ( zsize != 1 && zsize != 3) { in imgfile_readscaled()
321 if ( zsize == 3 ) zsize = 4; in imgfile_readscaled()
322 rv = PyString_FromStringAndSize(NULL, xwtd*ywtd*zsize); in imgfile_readscaled()
335 xscale(image, xsize, ysize, zsize, in imgfile_readscaled()
349 if ( zsize == 1 ) { in imgfile_readscaled()
387 rv = Py_BuildValue("(iii)", image->xsize, image->ysize, image->zsize); in imgfile_getsizes()
397 int xsize, ysize, zsize, len; in imgfile_write() local
408 &fname, &cdatap, &len, &xsize, &ysize, &zsize) ) in imgfile_write()
411 if ( zsize != 1 && zsize != 3 ) { in imgfile_write()
416 if ( len != xsize * ysize * (zsize == 1 ? 1 : 4) ) { in imgfile_write()
428 image =iopen(fname, "w", RLE(1), 3, xsize, ysize, zsize); in imgfile_write()
452 if ( zsize == 1 ) { in imgfile_write()