Lines Matching full:input_len
472 png_alloc_size_t input_len; /* Its length */
479 png_alloc_size_t input_len)
482 comp->input_len = input_len;
503 ret = png_deflate_claim(png_ptr, chunk_name, comp->input_len);
516 png_alloc_size_t input_len = comp->input_len; /* may be zero! */
531 if (avail_in > input_len)
532 avail_in = (uInt)input_len;
534 input_len -= avail_in;
581 input_len > 0 ? Z_NO_FLUSH : Z_FINISH);
586 input_len += png_ptr->zstream.avail_in;
614 /* The only success case is Z_STREAM_END, input_len must be 0, if not this
617 if (ret == Z_STREAM_END && input_len == 0)
620 optimize_cmf(comp->output, comp->input_len);
1005 png_alloc_size_t input_len, int flush)
1048 if (avail > input_len)
1049 avail = (uInt)input_len; /* safe because of the check */
1052 input_len -= avail;
1054 ret = deflate(&png_ptr->zstream, input_len > 0 ? Z_NO_FLUSH : flush);
1057 input_len += png_ptr->zstream.avail_in;
1101 if (input_len == 0)
1744 if (comp.input_len > PNG_UINT_31_MAX-prefix_len)
1748 comp.output_len = (png_uint_32)/*SAFE*/comp.input_len;
1763 png_write_chunk_data(png_ptr, (png_const_bytep)text, comp.input_len);