Home | History | Annotate | Download | only in test

Lines Matching full:dstpitch

88 	int srcpitch, unsigned char *dstbuf, enum BMPPIXELFORMAT dstformat, int dstpitch,
96 srcptr+=flip? -srcpitch:srcpitch, dstptr+=dstpitch)
111 FILE *fs=NULL; int retcode=0, scalefactor, dstpitch;
141 dstpitch=(((*w)*ps[f])+(align-1))&(~(align-1));
142 if((*buf=(unsigned char *)malloc(dstpitch*(*h)))==NULL)
152 (*buf)[j*dstpitch+i*ps[f]+roffset[f]]=(unsigned char)(pixel[0]*255/scalefactor);
153 (*buf)[j*dstpitch+i*ps[f]+goffset[f]]=(unsigned char)(pixel[1]*255/scalefactor);
154 (*buf)[j*dstpitch+i*ps[f]+boffset[f]]=(unsigned char)(pixel[2]*255/scalefactor);
165 pixelconvert(tempbuf, BMP_RGB, (*w)*3, *buf, f, dstpitch, *w, *h, dstbottomup);
178 int fd=-1, bytesread, srcpitch, srcbottomup=1, srcps, dstpitch,
249 dstpitch=(((*w)*ps[f])+(align-1))&(~(align-1));
253 || (*buf=(unsigned char *)malloc(dstpitch*(*h)))==NULL)
260 pixelconvert(tempbuf, BMP_BGR, srcpitch, *buf, f, dstpitch, *w, *h,
301 int fd=-1, byteswritten, dstpitch, retcode=0;
323 dstpitch=((w*3)+3)&(~3);
326 bh.bfSize=BMPHDRSIZE+dstpitch*h;
371 if((tempbuf=(unsigned char *)malloc(dstpitch*h))==NULL)
374 pixelconvert(buf, f, srcpitch, tempbuf, BMP_BGR, dstpitch, w, h,
377 if((byteswritten=write(fd, tempbuf, dstpitch*h))!=dstpitch*h)