Searched refs:dstpitch (Results 1 – 1 of 1) sorted by relevance
/external/libvncserver/test/ |
D | bmp.c | 91 int srcpitch, unsigned char *dstbuf, enum BMPPIXELFORMAT dstformat, int dstpitch, in pixelconvert() argument 99 srcptr+=flip? -srcpitch:srcpitch, dstptr+=dstpitch) in pixelconvert() 114 FILE *fs=NULL; int retcode=0, scalefactor, dstpitch; in loadppm() local 144 dstpitch=(((*w)*ps[f])+(align-1))&(~(align-1)); in loadppm() 145 if((*buf=(unsigned char *)malloc(dstpitch*(*h)))==NULL) in loadppm() 155 (*buf)[j*dstpitch+i*ps[f]+roffset[f]]=(unsigned char)(pixel[0]*255/scalefactor); in loadppm() 156 (*buf)[j*dstpitch+i*ps[f]+goffset[f]]=(unsigned char)(pixel[1]*255/scalefactor); in loadppm() 157 (*buf)[j*dstpitch+i*ps[f]+boffset[f]]=(unsigned char)(pixel[2]*255/scalefactor); in loadppm() 168 pixelconvert(tempbuf, BMP_RGB, (*w)*3, *buf, f, dstpitch, *w, *h, dstbottomup); in loadppm() 181 int fd=-1, bytesread, srcpitch, srcbottomup=1, srcps, dstpitch, in loadbmp() local [all …]
|