Home | History | Annotate | Download | only in libpng

Lines Matching refs:zstream

222    png_ptr->zstream.avail_in = (uInt)text_len;
223 png_ptr->zstream.next_in = (Bytef *)text;
224 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
225 png_ptr->zstream.next_out = (Bytef *)png_ptr->zbuf;
231 ret = deflate(&png_ptr->zstream, Z_NO_FLUSH);
235 if (png_ptr->zstream.msg != NULL)
236 png_error(png_ptr, png_ptr->zstream.msg);
241 if (!(png_ptr->zstream.avail_out))
277 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
278 png_ptr->zstream.next_out = png_ptr->zbuf;
281 } while (png_ptr->zstream.avail_in);
287 ret = deflate(&png_ptr->zstream, Z_FINISH);
292 if (!(png_ptr->zstream.avail_out))
329 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
330 png_ptr->zstream.next_out = png_ptr->zbuf;
336 if (png_ptr->zstream.msg != NULL)
337 png_error(png_ptr, png_ptr->zstream.msg);
345 if (png_ptr->zstream.avail_out < png_ptr->zbuf_size)
346 text_len += png_ptr->zbuf_size - (png_size_t)png_ptr->zstream.avail_out;
377 if (png_ptr->zstream.avail_out < (png_uint_32)png_ptr->zbuf_size)
379 (png_size_t)(png_ptr->zbuf_size - png_ptr->zstream.avail_out));
382 deflateReset(&png_ptr->zstream);
383 png_ptr->zstream.data_type = Z_BINARY;
520 png_ptr->zstream.zalloc = png_zalloc;
521 png_ptr->zstream.zfree = png_zfree;
522 png_ptr->zstream.opaque = (voidpf)png_ptr;
546 ret = deflateInit2(&png_ptr->zstream, png_ptr->zlib_level,
559 png_ptr->zstream.next_out = png_ptr->zbuf;
560 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
561 /* libpng is not interested in zstream.data_type */
563 png_ptr->zstream.data_type = Z_BINARY;
1851 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
1852 png_ptr->zstream.next_out = png_ptr->zbuf;
1934 ret = deflate(&png_ptr->zstream, Z_FINISH);
1939 if (!(png_ptr->zstream.avail_out))
1942 png_ptr->zstream.next_out = png_ptr->zbuf;
1943 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
1948 if (png_ptr->zstream.msg != NULL)
1949 png_error(png_ptr, png_ptr->zstream.msg);
1956 if (png_ptr->zstream.avail_out < png_ptr->zbuf_size)
1959 png_ptr->zstream.avail_out);
1962 deflateReset(&png_ptr->zstream);
1963 png_ptr->zstream.data_type = Z_BINARY;
2780 png_ptr->zstream.next_in = filtered_row;
2781 png_ptr->zstream.avail_in = (uInt)png_ptr->row_info.rowbytes + 1;
2788 ret = deflate(&png_ptr->zstream, Z_NO_FLUSH);
2792 if (png_ptr->zstream.msg != NULL)
2793 png_error(png_ptr, png_ptr->zstream.msg);
2799 if (!(png_ptr->zstream.avail_out))
2803 png_ptr->zstream.next_out = png_ptr->zbuf;
2804 png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
2807 } while (png_ptr->zstream.avail_in);