Lines Matching full:tempbuf
112 unsigned char *tempbuf=NULL; char temps[255], temps2[255];
162 if((tempbuf=(unsigned char *)malloc((*w)*(*h)*3))==NULL)
164 if(fread(tempbuf, (*w)*(*h)*3, 1, fs)!=1) _throw("Read error");
165 pixelconvert(tempbuf, BMP_RGB, (*w)*3, *buf, f, dstpitch, *w, *h, dstbottomup);
170 if(tempbuf) free(tempbuf);
180 unsigned char *tempbuf=NULL;
252 if((tempbuf=(unsigned char *)malloc(srcpitch*(*h)))==NULL
257 _unix(bytesread=read(fd, tempbuf, srcpitch*(*h)));
260 pixelconvert(tempbuf, BMP_BGR, srcpitch, *buf, f, dstpitch, *w, *h,
264 if(tempbuf) free(tempbuf);
277 unsigned char *tempbuf=NULL;
284 if((tempbuf=(unsigned char *)malloc(w*h*3))==NULL)
287 pixelconvert(buf, f, srcpitch, tempbuf, BMP_RGB, w*3, w, h,
290 if((fwrite(tempbuf, w*h*3, 1, fs))!=1) _throw("Write error");
293 if(tempbuf) free(tempbuf);
303 unsigned char *tempbuf=NULL; char *temp;
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)
381 if(tempbuf) free(tempbuf);