Home
last modified time | relevance | path

Searched refs:srcpitch (Results 1 – 2 of 2) sorted by relevance

/external/libvncserver/test/
Dbmp.c88 int srcpitch, unsigned char *dstbuf, enum BMPPIXELFORMAT dstformat, int dstpitch, in pixelconvert() argument
94 srcptr=flip? &srcbuf[srcpitch*(h-1)]:srcbuf; in pixelconvert()
96 srcptr+=flip? -srcpitch:srcpitch, dstptr+=dstpitch) in pixelconvert()
178 int fd=-1, bytesread, srcpitch, srcbottomup=1, srcps, dstpitch, in loadbmp() local
248 srcpitch=(((*w)*srcps)+3)&(~3); in loadbmp()
251 if(srcpitch*(*h)+bh.bfOffBits!=bh.bfSize) _throw("Corrupt bitmap header"); in loadbmp()
252 if((tempbuf=(unsigned char *)malloc(srcpitch*(*h)))==NULL in loadbmp()
257 _unix(bytesread=read(fd, tempbuf, srcpitch*(*h))); in loadbmp()
258 if(bytesread!=srcpitch*(*h)) _throw("Read error"); in loadbmp()
260 pixelconvert(tempbuf, BMP_BGR, srcpitch, *buf, f, dstpitch, *w, *h, in loadbmp()
[all …]
Dbmp.h45 enum BMPPIXELFORMAT f, int srcpitch, int srcbottomup);