Lines Matching refs:zstream
317 png_ptr->zstream.msg = PNGZ_MSG_CAST("in use by IDAT"); in png_deflate_claim()
396 if (deflateEnd(&png_ptr->zstream) != Z_OK) in png_deflate_claim()
405 png_ptr->zstream.next_in = NULL; in png_deflate_claim()
406 png_ptr->zstream.avail_in = 0; in png_deflate_claim()
407 png_ptr->zstream.next_out = NULL; in png_deflate_claim()
408 png_ptr->zstream.avail_out = 0; in png_deflate_claim()
414 ret = deflateReset(&png_ptr->zstream); in png_deflate_claim()
418 ret = deflateInit2(&png_ptr->zstream, level, method, windowBits, in png_deflate_claim()
521 png_ptr->zstream.next_in = PNGZ_INPUT_CAST(comp->input); in png_text_compress()
522 png_ptr->zstream.avail_in = 0; /* Set below */ in png_text_compress()
523 png_ptr->zstream.next_out = comp->output; in png_text_compress()
524 png_ptr->zstream.avail_out = (sizeof comp->output); in png_text_compress()
526 output_len = png_ptr->zstream.avail_out; in png_text_compress()
537 png_ptr->zstream.avail_in = avail_in; in png_text_compress()
539 if (png_ptr->zstream.avail_out == 0) in png_text_compress()
572 png_ptr->zstream.next_out = next->output; in png_text_compress()
573 png_ptr->zstream.avail_out = png_ptr->zbuffer_size; in png_text_compress()
574 output_len += png_ptr->zstream.avail_out; in png_text_compress()
581 ret = deflate(&png_ptr->zstream, in png_text_compress()
587 input_len += png_ptr->zstream.avail_in; in png_text_compress()
588 png_ptr->zstream.avail_in = 0; /* safety */ in png_text_compress()
595 output_len -= png_ptr->zstream.avail_out; in png_text_compress()
596 png_ptr->zstream.avail_out = 0; /* safety */ in png_text_compress()
605 png_ptr->zstream.msg = PNGZ_MSG_CAST("compressed data too long"); in png_text_compress()
949 png_error(png_ptr, png_ptr->zstream.msg); in png_compress_IDAT()
954 png_ptr->zstream.next_out = png_ptr->zbuffer_list->output; in png_compress_IDAT()
955 png_ptr->zstream.avail_out = png_ptr->zbuffer_size; in png_compress_IDAT()
962 png_ptr->zstream.next_in = PNGZ_INPUT_CAST(input); in png_compress_IDAT()
963 png_ptr->zstream.avail_in = 0; /* set below */ in png_compress_IDAT()
974 png_ptr->zstream.avail_in = avail; in png_compress_IDAT()
977 ret = deflate(&png_ptr->zstream, input_len > 0 ? Z_NO_FLUSH : flush); in png_compress_IDAT()
980 input_len += png_ptr->zstream.avail_in; in png_compress_IDAT()
981 png_ptr->zstream.avail_in = 0; in png_compress_IDAT()
987 if (png_ptr->zstream.avail_out == 0) in png_compress_IDAT()
1004 png_ptr->zstream.next_out = data; in png_compress_IDAT()
1005 png_ptr->zstream.avail_out = size; in png_compress_IDAT()
1039 uInt size = png_ptr->zbuffer_size - png_ptr->zstream.avail_out; in png_compress_IDAT()
1048 png_ptr->zstream.avail_out = 0; in png_compress_IDAT()
1049 png_ptr->zstream.next_out = NULL; in png_compress_IDAT()
1060 png_error(png_ptr, png_ptr->zstream.msg); in png_compress_IDAT()
1158 png_error(png_ptr, png_ptr->zstream.msg); in png_write_iCCP()
1577 png_error(png_ptr, png_ptr->zstream.msg); in png_write_zTXt()
1663 png_error(png_ptr, png_ptr->zstream.msg); in png_write_iTXt()