Lines Matching full:zstream
566 z_streamp zstream = &vs->zlib_stream[stream_id];
577 if (zstream->opaque != vs) {
581 VNC_DEBUG("VNC: opaque = %p | vs = %p\n", zstream->opaque, vs);
582 zstream->zalloc = Z_NULL;
583 zstream->zfree = Z_NULL;
585 err = deflateInit2(zstream, vs->tight_compression, Z_DEFLATED, MAX_WBITS,
593 zstream->opaque = vs;
602 zstream->next_in = vs->zlib.buffer;
603 zstream->avail_in = vs->zlib.offset;
604 zstream->next_out = vs->output.buffer + vs->output.offset;
605 zstream->avail_out = vs->output.capacity - vs->output.offset;
606 zstream->data_type = Z_BINARY;
607 previous_out = zstream->total_out;
610 if (deflate(zstream, Z_SYNC_FLUSH) != Z_OK) {
615 vs->output.offset = vs->output.capacity - zstream->avail_out;
616 return zstream->total_out - previous_out;