Lines Matching refs:rfbScreen
21 rfbScreenInfoPtr rfbScreen;
67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel);
68 if(!rfbScreen)
71 rfbScreen->desktopName = argv[1];
73 rfbScreen->desktopName = "Picture";
74 rfbScreen->alwaysShared = TRUE;
75 rfbScreen->kbdAddEvent = HandleKey;
78 rfbScreen->httpDir = "../webclients";
81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height);
82 fread(rfbScreen->frameBuffer,width*bitsPerPixelInFile/8,height,in);
86 rfbScreen->serverFormat.trueColour=FALSE;
87 rfbScreen->colourMap.count=256;
88 rfbScreen->colourMap.is16=FALSE;
89 rfbScreen->colourMap.data.bytes=malloc(256*3);
91 memset(rfbScreen->colourMap.data.bytes+3*i,i,3);
100 rfbScreen->frameBuffer[(j*paddedWidth+i)*4+k]=
101 rfbScreen->frameBuffer[(j*width+i)*3+k];
103 rfbScreen->frameBuffer[j*paddedWidth*4+i]=0;
112 l=(unsigned char)rfbScreen->frameBuffer[(j*width+i)/8];
114 rfbScreen->frameBuffer[j*paddedWidth+i+7-k]=(l&(1<<k))?0:255;
120 rfbInitServer(rfbScreen);
123 rfbRunEventLoop(rfbScreen,40000,FALSE);