Lines Matching refs:zrle

40     buffer_reset(&vs->zrle->zrle);  in vnc_zrle_start()
43 vs->zrle->tmp = vs->output; in vnc_zrle_start()
44 vs->output = vs->zrle->zrle; in vnc_zrle_start()
50 vs->zrle->zrle = vs->output; in vnc_zrle_stop()
51 vs->output = vs->zrle->tmp; in vnc_zrle_stop()
59 buffer_reset(&vs->zrle->fb); in zrle_convert_fb()
60 buffer_reserve(&vs->zrle->fb, w * h * bpp + bpp); in zrle_convert_fb()
63 vs->output = vs->zrle->fb; in zrle_convert_fb()
67 vs->zrle->fb = vs->output; in zrle_convert_fb()
69 return vs->zrle->fb.buffer; in zrle_convert_fb()
74 z_streamp zstream = &vs->zrle->stream; in zrle_compress_data()
76 buffer_reset(&vs->zrle->zlib); in zrle_compress_data()
96 buffer_reserve(&vs->zrle->zlib, vs->zrle->zrle.offset + 64); in zrle_compress_data()
99 zstream->next_in = vs->zrle->zrle.buffer; in zrle_compress_data()
100 zstream->avail_in = vs->zrle->zrle.offset; in zrle_compress_data()
101 zstream->next_out = vs->zrle->zlib.buffer; in zrle_compress_data()
102 zstream->avail_out = vs->zrle->zlib.capacity; in zrle_compress_data()
111 vs->zrle->zlib.offset = vs->zrle->zlib.capacity - zstream->avail_out; in zrle_compress_data()
112 return vs->zrle->zlib.offset; in zrle_compress_data()
262 if (vs->zrle->type == VNC_ENCODING_ZYWRLE) { in zrle_send_framebuffer_update()
266 vs->zrle->type = VNC_ENCODING_ZRLE; in zrle_send_framebuffer_update()
340 vnc_framebuffer_update(vs, x, y, w, h, vs->zrle->type); in zrle_send_framebuffer_update()
342 vnc_write(vs, vs->zrle->zlib.buffer, vs->zrle->zlib.offset); in zrle_send_framebuffer_update()
348 vs->zrle->type = VNC_ENCODING_ZRLE; in vnc_zrle_send_framebuffer_update()
354 vs->zrle->type = VNC_ENCODING_ZYWRLE; in vnc_zywrle_send_framebuffer_update()
360 if (vs->zrle->stream.opaque) { in vnc_zrle_clear()
361 deflateEnd(&vs->zrle->stream); in vnc_zrle_clear()
363 buffer_free(&vs->zrle->zrle); in vnc_zrle_clear()
364 buffer_free(&vs->zrle->fb); in vnc_zrle_clear()
365 buffer_free(&vs->zrle->zlib); in vnc_zrle_clear()