Lines Matching refs:tilew
80 int subsamp, int jpegqual, char *filename, int tilew, int tileh)
91 int ntilesw=(w+tilew-1)/tilew, ntilesh=(h+tileh-1)/tileh;
125 for(col=0, dstptr2=dstptr; col<ntilesw; col++, tile++, dstptr2+=ps*tilew)
127 int width=dotile? min(tilew, w-col*tilew):scaledw;
152 else if(tilew!=w || tileh!=h)
153 snprintf(sizestr, 20, "%dx%d", tilew, tileh);
215 int totaljpegsize=0, row, col, i, tilew=w, tileh=h, retval=0;
227 for(tilew=dotile? 8:w, tileh=dotile? 8:h; ; tilew*=2, tileh*=2)
229 if(tilew>w) tilew=w; if(tileh>h) tileh=h;
230 ntilesw=(w+tilew-1)/tilew; ntilesh=(h+tileh-1)/tileh;
243 if((jpegbuf[i]=(unsigned char *)malloc(tjBufSize(tilew, tileh,
258 if(tjCompress2(handle, srcbuf, tilew, pitch, tileh, pf, &jpegbuf[0],
270 srcptr2+=ps*tilew)
272 int width=min(tilew, w-col*tilew);
285 if(quiet==1) printf("%-4d %-4d\t", tilew, tileh);
296 printf("\n%s size: %d x %d\n", dotile? "Tile":"Image", tilew,
307 if(tilew==w && tileh==h)
321 filename, tilew, tileh)==-1)
331 if(tilew==w && tileh==h) break;
358 int i, tilew, tileh, ntilesw=1, ntilesh=1, retval=0;
393 for(tilew=dotile? 16:w, tileh=dotile? 16:h; ; tilew*=2, tileh*=2)
395 if(tilew>w) tilew=w; if(tileh>h) tileh=h;
396 ntilesw=(w+tilew-1)/tilew; ntilesh=(h+tileh-1)/tileh;
409 if((jpegbuf[i]=(unsigned char *)malloc(tjBufSize(tilew, tileh,
414 _w=w; _h=h; _tilew=tilew; _tileh=tileh;
427 printf("%-4d %-4d\t", tilew, tileh);
435 if(w==tilew) _tilew=_w;
449 if(tilew==w && tileh==h) break;