========================================================================= */
(strm, good_length, max_lazy, nice_length, max_chain)
| 618 | |
| 619 | /* ========================================================================= */ |
| 620 | int ZEXPORT deflateTune(strm, good_length, max_lazy, nice_length, max_chain) |
| 621 | z_streamp strm; |
| 622 | int good_length; |
| 623 | int max_lazy; |
| 624 | int nice_length; |
| 625 | int max_chain; |
| 626 | { |
| 627 | deflate_state *s; |
| 628 | |
| 629 | if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
| 630 | s = strm->state; |
| 631 | s->good_match = (uInt)good_length; |
| 632 | s->max_lazy_match = (uInt)max_lazy; |
| 633 | s->nice_match = nice_length; |
| 634 | s->max_chain_length = (uInt)max_chain; |
| 635 | return Z_OK; |
| 636 | } |
| 637 | |
| 638 | /* ========================================================================= |
| 639 | * For the default windowBits of 15 and memLevel of 8, this function returns |
no test coverage detected