Lines Matching refs:input_len
473 png_alloc_size_t input_len; /* Its length */
480 png_alloc_size_t input_len)
483 comp->input_len = input_len;
504 ret = png_deflate_claim(png_ptr, chunk_name, comp->input_len);
517 png_alloc_size_t input_len = comp->input_len; /* may be zero! */
532 if (avail_in > input_len)
533 avail_in = (uInt)input_len;
535 input_len -= avail_in;
582 input_len > 0 ? Z_NO_FLUSH : Z_FINISH);
587 input_len += png_ptr->zstream.avail_in;
615 /* The only success case is Z_STREAM_END, input_len must be 0; if not this
618 if (ret == Z_STREAM_END && input_len == 0)
622 optimize_cmf(comp->output, comp->input_len);
928 png_alloc_size_t input_len, int flush)
971 if (avail > input_len)
972 avail = (uInt)input_len; /* safe because of the check */
975 input_len -= avail;
977 ret = deflate(&png_ptr->zstream, input_len > 0 ? Z_NO_FLUSH : flush);
980 input_len += png_ptr->zstream.avail_in;
1024 if (input_len == 0)
1668 if (comp.input_len > PNG_UINT_31_MAX-prefix_len)
1672 comp.output_len = (png_uint_32)/*SAFE*/comp.input_len;