Lines Matching refs:client
36 HandleZlibBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleZlibBPP() argument
49 if ( client->raw_buffer_size < (( rw * rh ) * ( BPP / 8 ))) { in HandleZlibBPP()
51 if ( client->raw_buffer != NULL ) { in HandleZlibBPP()
53 free( client->raw_buffer ); in HandleZlibBPP()
57 client->raw_buffer_size = (( rw * rh ) * ( BPP / 8 )); in HandleZlibBPP()
58 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleZlibBPP()
62 if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) in HandleZlibBPP()
68 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZlibBPP()
69 client->decompStream.avail_in = 0; in HandleZlibBPP()
70 client->decompStream.next_out = ( Bytef * )client->raw_buffer; in HandleZlibBPP()
71 client->decompStream.avail_out = client->raw_buffer_size; in HandleZlibBPP()
72 client->decompStream.data_type = Z_BINARY; in HandleZlibBPP()
75 if ( client->decompStreamInited == FALSE ) { in HandleZlibBPP()
77 inflateResult = inflateInit( &client->decompStream ); in HandleZlibBPP()
83 client->decompStream.msg); in HandleZlibBPP()
87 client->decompStreamInited = TRUE; in HandleZlibBPP()
107 if (!ReadFromRFBServer(client, client->buffer,toRead)) in HandleZlibBPP()
110 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZlibBPP()
111 client->decompStream.avail_in = toRead; in HandleZlibBPP()
114 inflateResult = inflate( &client->decompStream, Z_SYNC_FLUSH ); in HandleZlibBPP()
125 client->decompStream.msg); in HandleZlibBPP()
132 if (( client->decompStream.avail_in > 0 ) && in HandleZlibBPP()
133 ( client->decompStream.avail_out <= 0 )) { in HandleZlibBPP()
145 CopyRectangle(client, (uint8_t *)client->raw_buffer, rx, ry, rw, rh); in HandleZlibBPP()
152 client->decompStream.msg); in HandleZlibBPP()