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()
496 png_ptr->zstream.next_in = PNGZ_INPUT_CAST(input); in png_inflate()
498 png_ptr->zstream.avail_in = 0; in png_inflate()
499 png_ptr->zstream.avail_out = 0; in png_inflate()
505 png_ptr->zstream.next_out = output; in png_inflate()
520 avail_in += png_ptr->zstream.avail_in; /* not consumed last time */ in png_inflate()
528 png_ptr->zstream.avail_in = avail; in png_inflate()
531 avail_out += png_ptr->zstream.avail_out; /* not written last time */ in png_inflate()
540 png_ptr->zstream.next_out = local_buffer; in png_inflate()
548 png_ptr->zstream.avail_out = avail; in png_inflate()
563 png_ptr->zstream.next_out = NULL; in png_inflate()
566 avail_in += png_ptr->zstream.avail_in; in png_inflate()
567 avail_out += png_ptr->zstream.avail_out; in png_inflate()
589 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate()
654 if (inflateReset(&png_ptr->zstream) == Z_OK) in png_decompress_chunk()
775 png_ptr->zstream.next_out = next_out; in png_inflate_read()
776 png_ptr->zstream.avail_out = 0; /* set in the loop */ in png_inflate_read()
780 if (png_ptr->zstream.avail_in == 0) in png_inflate_read()
789 png_ptr->zstream.next_in = read_buffer; in png_inflate_read()
790 png_ptr->zstream.avail_in = read_size; in png_inflate_read()
793 if (png_ptr->zstream.avail_out == 0) in png_inflate_read()
800 png_ptr->zstream.avail_out = avail; in png_inflate_read()
810 while (ret == Z_OK && (*out_size > 0 || png_ptr->zstream.avail_out > 0)); in png_inflate_read()
812 *out_size += png_ptr->zstream.avail_out; in png_inflate_read()
813 png_ptr->zstream.avail_out = 0; /* Should not be required, but is safe */ in png_inflate_read()
822 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate_read()
1434 png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2); in png_handle_iCCP()
1435 png_ptr->zstream.avail_in = read_length; in png_handle_iCCP()
1521 png_ptr->zstream.adler); in png_handle_iCCP()
1573 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1581 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1595 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1602 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
2602 errmsg = png_ptr->zstream.msg; in png_handle_zTXt()
2722 errmsg = png_ptr->zstream.msg; in png_handle_iTXt()
4003 png_ptr->zstream.next_out = output; in png_read_IDAT_data()
4004 png_ptr->zstream.avail_out = 0; /* safety: set below */ in png_read_IDAT_data()
4014 if (png_ptr->zstream.avail_in == 0) in png_read_IDAT_data()
4046 png_ptr->zstream.next_in = buffer; in png_read_IDAT_data()
4047 png_ptr->zstream.avail_in = avail_in; in png_read_IDAT_data()
4059 png_ptr->zstream.avail_out = out; in png_read_IDAT_data()
4064 png_ptr->zstream.next_out = tmpbuf; in png_read_IDAT_data()
4065 png_ptr->zstream.avail_out = (sizeof tmpbuf); in png_read_IDAT_data()
4079 avail_out += png_ptr->zstream.avail_out; in png_read_IDAT_data()
4082 avail_out += (sizeof tmpbuf) - png_ptr->zstream.avail_out; in png_read_IDAT_data()
4084 png_ptr->zstream.avail_out = 0; in png_read_IDAT_data()
4089 png_ptr->zstream.next_out = NULL; in png_read_IDAT_data()
4094 if (png_ptr->zstream.avail_in > 0 || png_ptr->idat_size > 0) in png_read_IDAT_data()
4105 if(!strncmp(png_ptr->zstream.msg,"incorrect data check",20)) in png_read_IDAT_data()
4111 png_chunk_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4116 png_chunk_benign_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4150 png_ptr->zstream.next_out = NULL; /* safety */ in png_read_finish_IDAT()
4168 png_ptr->zstream.next_in = NULL; in png_read_finish_IDAT()
4169 png_ptr->zstream.avail_in = 0; in png_read_finish_IDAT()
4535 png_error(png_ptr, png_ptr->zstream.msg); in png_read_start_row()