Lines Matching defs:flush
65 block_done, /* block flush performed */
70 typedef block_state (*compress_func)(deflate_state *s, int flush);
73 local block_state deflate_stored(deflate_state *s, int flush);
74 local block_state deflate_fast(deflate_state *s, int flush);
76 local block_state deflate_slow(deflate_state *s, int flush);
78 local block_state deflate_rle(deflate_state *s, int flush);
79 local block_state deflate_huff(deflate_state *s, int flush);
954 int ZEXPORT deflate(z_streamp strm, int flush) {
955 int old_flush; /* value of flush param for previous deflate call */
958 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
965 (s->status == FINISH_STATE && flush != Z_FINISH)) {
971 s->last_flush = flush;
991 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
992 flush != Z_FINISH) {
1187 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
1190 bstate = s->level == 0 ? deflate_stored(s, flush) :
1191 s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
1192 s->strategy == Z_RLE ? deflate_rle(s, flush) :
1193 (*(configuration_table[s->level].func))(s, flush);
1203 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
1204 * of deflate should use the same flush parameter to make sure
1205 * that the flush is complete. So we don't have to output an
1212 if (flush == Z_PARTIAL_FLUSH) {
1214 } else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
1216 /* For a full flush, this empty block will be recognized
1219 if (flush == Z_FULL_FLUSH) {
1236 if (flush != Z_FINISH) return Z_OK;
1259 * to flush the rest.
1638 local block_state deflate_stored(deflate_state *s, int flush)
1674 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
1675 flush == Z_NO_FLUSH ||
1682 last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0;
1764 if (flush != Z_NO_FLUSH && flush != Z_FINISH &&
1802 ((left || flush == Z_FINISH) && flush != Z_NO_FLUSH &&
1805 last = flush == Z_FINISH && s->strm->avail_in == 0 &&
1823 local block_state deflate_fast(deflate_state *s, int flush)
1836 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1839 if (s->lookahead == 0) break; /* flush the current block */
1908 if (flush == Z_FINISH) {
1923 local block_state deflate_slow(deflate_state *s, int flush)
1937 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1940 if (s->lookahead == 0) break; /* flush the current block */
2030 Assert (flush != Z_NO_FLUSH, "no flush?");
2037 if (flush == Z_FINISH) {
2052 local block_state deflate_rle(deflate_state *s, int flush)
2065 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2068 if (s->lookahead == 0) break; /* flush the current block */
2111 if (flush == Z_FINISH) {
2124 local block_state deflate_huff(deflate_state *s, int flush)
2133 if (flush == Z_NO_FLUSH)
2135 break; /* flush the current block */
2148 if (flush == Z_FINISH) {