Lines Matching refs:avail_out

401       png_ptr->zstream.avail_out = 0;  in png_inflate_claim()
483 png_alloc_size_t avail_out = *output_size_ptr; in png_inflate() local
498 png_ptr->zstream.avail_out = 0; in png_inflate()
530 avail_out += png_ptr->zstream.avail_out; /* not written last time */ in png_inflate()
544 if (avail_out < avail) in png_inflate()
545 avail = (uInt)avail_out; /* safe: < ZLIB_IO_MAX */ in png_inflate()
547 png_ptr->zstream.avail_out = avail; in png_inflate()
548 avail_out -= avail; in png_inflate()
556 ret = PNG_INFLATE(png_ptr, avail_out > 0 ? Z_NO_FLUSH : in png_inflate()
566 avail_out += png_ptr->zstream.avail_out; in png_inflate()
571 if (avail_out > 0) in png_inflate()
572 *output_size_ptr -= avail_out; in png_inflate()
774 png_ptr->zstream.avail_out = 0; /* set in the loop */ in png_inflate_read()
791 if (png_ptr->zstream.avail_out == 0) in png_inflate_read()
798 png_ptr->zstream.avail_out = avail; in png_inflate_read()
808 while (ret == Z_OK && (*out_size > 0 || png_ptr->zstream.avail_out > 0)); in png_inflate_read()
810 *out_size += png_ptr->zstream.avail_out; in png_inflate_read()
811 png_ptr->zstream.avail_out = 0; /* Should not be required, but is safe */ in png_inflate_read()
3998 png_alloc_size_t avail_out) in png_read_IDAT_data() argument
4002 png_ptr->zstream.avail_out = 0; /* safety: set below */ in png_read_IDAT_data()
4005 avail_out = 0; in png_read_IDAT_data()
4053 if (out > avail_out) in png_read_IDAT_data()
4054 out = (uInt)avail_out; in png_read_IDAT_data()
4056 avail_out -= out; in png_read_IDAT_data()
4057 png_ptr->zstream.avail_out = out; in png_read_IDAT_data()
4063 png_ptr->zstream.avail_out = (sizeof tmpbuf); in png_read_IDAT_data()
4077 avail_out += png_ptr->zstream.avail_out; in png_read_IDAT_data()
4080 avail_out += (sizeof tmpbuf) - png_ptr->zstream.avail_out; in png_read_IDAT_data()
4082 png_ptr->zstream.avail_out = 0; in png_read_IDAT_data()
4110 } while (avail_out > 0); in png_read_IDAT_data()
4112 if (avail_out > 0) in png_read_IDAT_data()