Lines Matching refs:zstream
325 png_ptr->zstream.next_in = data;
327 png_ptr->zstream.avail_in = 0;
340 if (png_ptr->zstream.avail_in == 0 && size > 0)
345 png_ptr->zstream.avail_in = (uInt)size;
351 png_ptr->zstream.avail_in = ZLIB_IO_MAX;
359 png_ptr->zstream.next_out = png_ptr->zbuf;
360 png_ptr->zstream.avail_out = png_ptr->zbuf_size;
362 ret = inflate(&png_ptr->zstream, Z_NO_FLUSH);
363 avail = png_ptr->zbuf_size - png_ptr->zstream.avail_out;
387 /* Termination conditions - always reset the zstream, it
390 png_ptr->zstream.avail_in = 0;
391 inflateReset(&png_ptr->zstream);
404 if (png_ptr->zstream.msg != 0)
405 msg = png_ptr->zstream.msg;
3374 png_ptr->zstream.next_out = (Byte *)&extra;
3375 png_ptr->zstream.avail_out = (uInt)1;
3379 if (!(png_ptr->zstream.avail_in))
3389 png_ptr->zstream.avail_in = (uInt)png_ptr->zbuf_size;
3390 png_ptr->zstream.next_in = png_ptr->zbuf;
3393 png_ptr->zstream.avail_in = (uInt)png_ptr->idat_size;
3395 png_crc_read(png_ptr, png_ptr->zbuf, png_ptr->zstream.avail_in);
3396 png_ptr->idat_size -= png_ptr->zstream.avail_in;
3399 ret = inflate(&png_ptr->zstream, Z_PARTIAL_FLUSH);
3403 if (!(png_ptr->zstream.avail_out) || png_ptr->zstream.avail_in ||
3413 png_error(png_ptr, png_ptr->zstream.msg ? png_ptr->zstream.msg :
3416 if (!(png_ptr->zstream.avail_out))
3425 png_ptr->zstream.avail_out = 0;
3428 if (png_ptr->idat_size || png_ptr->zstream.avail_in)
3431 inflateReset(&png_ptr->zstream);
3460 png_ptr->zstream.avail_in = 0;