Lines Matching refs:zstream
244 png_ptr->zstream.next_in = (png_bytep)data; /* const_cast: VALID */
245 png_ptr->zstream.avail_in = size;
254 png_ptr->zstream.next_out = png_ptr->zbuf;
255 png_ptr->zstream.avail_out = png_ptr->zbuf_size;
257 ret = inflate(&png_ptr->zstream, Z_NO_FLUSH);
258 avail = png_ptr->zbuf_size - png_ptr->zstream.avail_out;
277 /* Termination conditions - always reset the zstream, it
280 png_ptr->zstream.avail_in = 0;
281 inflateReset(&png_ptr->zstream);
292 if (png_ptr->zstream.msg != 0)
293 msg = png_ptr->zstream.msg;
3172 png_ptr->zstream.next_out = (Byte *)&extra;
3173 png_ptr->zstream.avail_out = (uInt)1;
3176 if (!(png_ptr->zstream.avail_in))
3192 png_ptr->zstream.avail_in = (uInt)png_ptr->zbuf_size;
3193 png_ptr->zstream.next_in = png_ptr->zbuf;
3195 png_ptr->zstream.avail_in = (uInt)png_ptr->idat_size;
3196 png_crc_read(png_ptr, png_ptr->zbuf, png_ptr->zstream.avail_in);
3197 png_ptr->idat_size -= png_ptr->zstream.avail_in;
3199 ret = inflate(&png_ptr->zstream, Z_PARTIAL_FLUSH);
3202 if (!(png_ptr->zstream.avail_out) || png_ptr->zstream.avail_in ||
3210 png_error(png_ptr, png_ptr->zstream.msg ? png_ptr->zstream.msg :
3213 if (!(png_ptr->zstream.avail_out))
3222 png_ptr->zstream.avail_out = 0;
3225 if (png_ptr->idat_size || png_ptr->zstream.avail_in)
3228 inflateReset(&png_ptr->zstream);
3257 png_ptr->zstream.avail_in = 0;