Lines Matching refs:bpp

37 static const int bpp=4;  variable
48 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer()
49 buffer[(j*maxx+i)*bpp+1]=i*128/maxx; /* green */ in initBuffer()
50 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer()
52 buffer[j*maxx*bpp+0]=0xff; in initBuffer()
53 buffer[j*maxx*bpp+1]=0xff; in initBuffer()
54 buffer[j*maxx*bpp+2]=0xff; in initBuffer()
55 buffer[j*maxx*bpp+3]=0xff; in initBuffer()
87 newfb = (unsigned char*)malloc(maxx * maxy * bpp); in newframebuffer()
89 rfbNewFramebuffer(screen, (char*)newfb, maxx, maxy, 8, 3, bpp); in newframebuffer()
97 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2) in drawline() argument
102 for(i=0;i<bpp;i++) in drawline()
103 buffer[y1*rowstride+x1*bpp+i]=0xff; in drawline()
111 for(i=0;i<bpp;i++) in drawline()
112 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff; in drawline()
116 for(j=0;j<bpp;j++) in drawline()
117 buffer[(y1+(i-x1)*(y2-y1)/(x2-x1))*rowstride+i*bpp+j]=0xff; in drawline()
132 drawline((unsigned char*)cl->screen->frameBuffer,cl->screen->paddedWidthInBytes,bpp, in doptr()
145 for(i=x1*bpp;i<x2*bpp;i++) in doptr()
266 c->richSource = (unsigned char*)malloc(w*h*bpp); in MakeRichCursor()
270 c->richSource[j*w*bpp+i*bpp+0]=i*0xff/w; in MakeRichCursor()
271 c->richSource[j*w*bpp+i*bpp+1]=(i+j)*0xff/(w+h); in MakeRichCursor()
272 c->richSource[j*w*bpp+i*bpp+2]=j*0xff/h; in MakeRichCursor()
273 c->richSource[j*w*bpp+i*bpp+3]=0; in MakeRichCursor()
282 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); in main()
286 rfbScreen->frameBuffer = (char*)malloc(maxx*maxy*bpp); in main()