Lines Matching full:zstream
208 png_ptr->zstream.avail_in = (uInt)text_len;
209 png_ptr->zstream.next_in = (Bytef *)text;
210 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
211 png_ptr->zstream.next_out = (Bytef *)png_ptr->zbuf;
217 ret = deflate(&png_ptr->zstream, Z_NO_FLUSH);
221 if (png_ptr->zstream.msg != NULL)
222 png_error(png_ptr, png_ptr->zstream.msg);
227 if (!(png_ptr->zstream.avail_out))
262 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
263 png_ptr->zstream.next_out = png_ptr->zbuf;
266 } while (png_ptr->zstream.avail_in);
272 ret = deflate(&png_ptr->zstream, Z_FINISH);
277 if (!(png_ptr->zstream.avail_out))
313 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
314 png_ptr->zstream.next_out = png_ptr->zbuf;
320 if (png_ptr->zstream.msg != NULL)
321 png_error(png_ptr, png_ptr->zstream.msg);
329 if (png_ptr->zstream.avail_out < png_ptr->zbuf_size)
330 text_len += png_ptr->zbuf_size - (png_size_t)png_ptr->zstream.avail_out;
361 if (png_ptr->zstream.avail_out < (png_uint_32)png_ptr->zbuf_size)
363 png_ptr->zbuf_size - png_ptr->zstream.avail_out);
366 deflateReset(&png_ptr->zstream);
367 png_ptr->zstream.data_type = Z_BINARY;
500 png_ptr->zstream.zalloc = png_zalloc;
501 png_ptr->zstream.zfree = png_zfree;
502 png_ptr->zstream.opaque = (voidpf)png_ptr;
526 if (deflateInit2(&png_ptr->zstream, png_ptr->zlib_level,
530 png_ptr->zstream.next_out = png_ptr->zbuf;
531 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
532 /* libpng is not interested in zstream.data_type */
534 png_ptr->zstream.data_type = Z_BINARY;
1817 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
1818 png_ptr->zstream.next_out = png_ptr->zbuf;
1899 ret = deflate(&png_ptr->zstream, Z_FINISH);
1904 if (!(png_ptr->zstream.avail_out))
1907 png_ptr->zstream.next_out = png_ptr->zbuf;
1908 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
1913 if (png_ptr->zstream.msg != NULL)
1914 png_error(png_ptr, png_ptr->zstream.msg);
1921 if (png_ptr->zstream.avail_out < png_ptr->zbuf_size)
1924 png_ptr->zstream.avail_out);
1927 deflateReset(&png_ptr->zstream);
1928 png_ptr->zstream.data_type = Z_BINARY;
2730 png_ptr->zstream.next_in = filtered_row;
2731 png_ptr->zstream.avail_in = (uInt)png_ptr->row_info.rowbytes + 1;
2738 ret = deflate(&png_ptr->zstream, Z_NO_FLUSH);
2742 if (png_ptr->zstream.msg != NULL)
2743 png_error(png_ptr, png_ptr->zstream.msg);
2749 if (!(png_ptr->zstream.avail_out))
2753 png_ptr->zstream.next_out = png_ptr->zbuf;
2754 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
2757 } while (png_ptr->zstream.avail_in);