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