Lines Matching refs:zstream
399 png_ptr->zstream.next_in = NULL; in png_inflate_claim()
400 png_ptr->zstream.avail_in = 0; in png_inflate_claim()
401 png_ptr->zstream.next_out = NULL; in png_inflate_claim()
402 png_ptr->zstream.avail_out = 0; in png_inflate_claim()
407 ret = inflateReset2(&png_ptr->zstream, window_bits); in png_inflate_claim()
409 ret = inflateReset(&png_ptr->zstream); in png_inflate_claim()
416 ret = inflateInit2(&png_ptr->zstream, window_bits); in png_inflate_claim()
418 ret = inflateInit(&png_ptr->zstream); in png_inflate_claim()
429 ret = inflateValidate(&png_ptr->zstream, 0); in png_inflate_claim()
456 if (png_ptr->zstream_start && png_ptr->zstream.avail_in > 0) in png_zlib_inflate()
458 if ((*png_ptr->zstream.next_in >> 4) > 7) in png_zlib_inflate()
460 png_ptr->zstream.msg = "invalid window size (libpng)"; in png_zlib_inflate()
467 return inflate(&png_ptr->zstream, flush); in png_zlib_inflate()
504 png_ptr->zstream.next_in = PNGZ_INPUT_CAST(input); in png_inflate()
506 png_ptr->zstream.avail_in = 0; in png_inflate()
507 png_ptr->zstream.avail_out = 0; in png_inflate()
513 png_ptr->zstream.next_out = output; in png_inflate()
528 avail_in += png_ptr->zstream.avail_in; /* not consumed last time */ in png_inflate()
536 png_ptr->zstream.avail_in = avail; in png_inflate()
539 avail_out += png_ptr->zstream.avail_out; /* not written last time */ in png_inflate()
548 png_ptr->zstream.next_out = local_buffer; in png_inflate()
556 png_ptr->zstream.avail_out = avail; in png_inflate()
571 png_ptr->zstream.next_out = NULL; in png_inflate()
574 avail_in += png_ptr->zstream.avail_in; in png_inflate()
575 avail_out += png_ptr->zstream.avail_out; in png_inflate()
597 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate()
662 if (inflateReset(&png_ptr->zstream) == Z_OK) in png_decompress_chunk()
783 png_ptr->zstream.next_out = next_out; in png_inflate_read()
784 png_ptr->zstream.avail_out = 0; /* set in the loop */ in png_inflate_read()
788 if (png_ptr->zstream.avail_in == 0) in png_inflate_read()
797 png_ptr->zstream.next_in = read_buffer; in png_inflate_read()
798 png_ptr->zstream.avail_in = read_size; in png_inflate_read()
801 if (png_ptr->zstream.avail_out == 0) in png_inflate_read()
808 png_ptr->zstream.avail_out = avail; in png_inflate_read()
818 while (ret == Z_OK && (*out_size > 0 || png_ptr->zstream.avail_out > 0)); in png_inflate_read()
820 *out_size += png_ptr->zstream.avail_out; in png_inflate_read()
821 png_ptr->zstream.avail_out = 0; /* Should not be required, but is safe */ in png_inflate_read()
830 png_ptr->zstream.msg = PNGZ_MSG_CAST("zstream unclaimed"); in png_inflate_read()
1454 png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2); in png_handle_iCCP()
1455 png_ptr->zstream.avail_in = read_length; in png_handle_iCCP()
1540 png_ptr->zstream.adler); in png_handle_iCCP()
1587 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1592 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1606 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
1613 errmsg = png_ptr->zstream.msg; in png_handle_iCCP()
2702 errmsg = png_ptr->zstream.msg; in png_handle_zTXt()
2822 errmsg = png_ptr->zstream.msg; in png_handle_iTXt()
4153 png_ptr->zstream.next_out = output; in png_read_IDAT_data()
4154 png_ptr->zstream.avail_out = 0; /* safety: set below */ in png_read_IDAT_data()
4164 if (png_ptr->zstream.avail_in == 0) in png_read_IDAT_data()
4196 png_ptr->zstream.next_in = buffer; in png_read_IDAT_data()
4197 png_ptr->zstream.avail_in = avail_in; in png_read_IDAT_data()
4209 png_ptr->zstream.avail_out = out; in png_read_IDAT_data()
4214 png_ptr->zstream.next_out = tmpbuf; in png_read_IDAT_data()
4215 png_ptr->zstream.avail_out = (sizeof tmpbuf); in png_read_IDAT_data()
4229 avail_out += png_ptr->zstream.avail_out; in png_read_IDAT_data()
4232 avail_out += (sizeof tmpbuf) - png_ptr->zstream.avail_out; in png_read_IDAT_data()
4234 png_ptr->zstream.avail_out = 0; in png_read_IDAT_data()
4239 png_ptr->zstream.next_out = NULL; in png_read_IDAT_data()
4244 if (png_ptr->zstream.avail_in > 0 || png_ptr->idat_size > 0) in png_read_IDAT_data()
4254 png_chunk_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4258 png_chunk_benign_error(png_ptr, png_ptr->zstream.msg); in png_read_IDAT_data()
4292 png_ptr->zstream.next_out = NULL; /* safety */ in png_read_finish_IDAT()
4310 png_ptr->zstream.next_in = NULL; in png_read_finish_IDAT()
4311 png_ptr->zstream.avail_in = 0; in png_read_finish_IDAT()
4677 png_error(png_ptr, png_ptr->zstream.msg); in png_read_start_row()