Lines Matching refs:zstream
398 png_ptr->zstream.next_in = NULL; in png_inflate_claim()
399 png_ptr->zstream.avail_in = 0; in png_inflate_claim()
400 png_ptr->zstream.next_out = NULL; in png_inflate_claim()
401 png_ptr->zstream.avail_out = 0; in png_inflate_claim()
406 ret = inflateReset(&png_ptr->zstream); in png_inflate_claim()
408 ret = inflateReset2(&png_ptr->zstream, window_bits); in png_inflate_claim()
415 ret = inflateInit(&png_ptr->zstream); in png_inflate_claim()
417 ret = inflateInit2(&png_ptr->zstream, window_bits); in png_inflate_claim()
448 if (png_ptr->zstream_start && png_ptr->zstream.avail_in > 0) in png_zlib_inflate()
450 if ((*png_ptr->zstream.next_in >> 4) > 7) in png_zlib_inflate()
452 png_ptr->zstream.msg = "invalid window size (libpng)"; in png_zlib_inflate()
459 return inflate(&png_ptr->zstream, flush); in png_zlib_inflate()
495 png_ptr->zstream.next_in = PNGZ_INPUT_CAST(input); in png_inflate()
497 png_ptr->zstream.avail_in = 0; in png_inflate()
498 png_ptr->zstream.avail_out = 0; in png_inflate()
504 png_ptr->zstream.next_out = output; in png_inflate()
519 avail_in += png_ptr->zstream.avail_in; /* not consumed last time */ in png_inflate()
527 png_ptr->zstream.avail_in = avail; in png_inflate()
530 avail_out += png_ptr->zstream.avail_out; /* not written last time */ in png_inflate()
539 png_ptr->zstream.next_out = local_buffer; in png_inflate()
547 png_ptr->zstream.avail_out = avail; in png_inflate()
562 png_ptr->zstream.next_out = NULL; in png_inflate()
565 avail_in += png_ptr->zstream.avail_in; in png_inflate()
566 avail_out += png_ptr->zstream.avail_out; in png_inflate()
588 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate()
653 if (inflateReset(&png_ptr->zstream) == Z_OK) in png_decompress_chunk()
773 png_ptr->zstream.next_out = next_out; in png_inflate_read()
774 png_ptr->zstream.avail_out = 0; /* set in the loop */ in png_inflate_read()
778 if (png_ptr->zstream.avail_in == 0) in png_inflate_read()
787 png_ptr->zstream.next_in = read_buffer; in png_inflate_read()
788 png_ptr->zstream.avail_in = read_size; 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()
820 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate_read()
1432 png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2); in png_handle_iCCP()
1433 png_ptr->zstream.avail_in = read_length; in png_handle_iCCP()
1519 png_ptr->zstream.adler); in png_handle_iCCP()
1571 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1579 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1593 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1600 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
2600 errmsg = png_ptr->zstream.msg; in png_handle_zTXt()
2720 errmsg = png_ptr->zstream.msg; in png_handle_iTXt()
4001 png_ptr->zstream.next_out = output; in png_read_IDAT_data()
4002 png_ptr->zstream.avail_out = 0; /* safety: set below */ in png_read_IDAT_data()
4012 if (png_ptr->zstream.avail_in == 0) in png_read_IDAT_data()
4044 png_ptr->zstream.next_in = buffer; in png_read_IDAT_data()
4045 png_ptr->zstream.avail_in = avail_in; in png_read_IDAT_data()
4057 png_ptr->zstream.avail_out = out; in png_read_IDAT_data()
4062 png_ptr->zstream.next_out = tmpbuf; 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()
4087 png_ptr->zstream.next_out = NULL; in png_read_IDAT_data()
4092 if (png_ptr->zstream.avail_in > 0 || png_ptr->idat_size > 0) in png_read_IDAT_data()
4102 png_chunk_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4106 png_chunk_benign_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4140 png_ptr->zstream.next_out = NULL; /* safety */ in png_read_finish_IDAT()
4158 png_ptr->zstream.next_in = NULL; in png_read_finish_IDAT()
4159 png_ptr->zstream.avail_in = 0; in png_read_finish_IDAT()
4525 png_error(png_ptr, png_ptr->zstream.msg); in png_read_start_row()