=========================================================================== * Initialize the tree data structures for a new zlib stream. */
| 454 | * Initialize the tree data structures for a new zlib stream. |
| 455 | */ |
| 456 | void ZLIB_INTERNAL _tr_init(deflate_state *s) { |
| 457 | tr_static_init(); |
| 458 | |
| 459 | s->l_desc.dyn_tree = s->dyn_ltree; |
| 460 | s->l_desc.stat_desc = &static_l_desc; |
| 461 | |
| 462 | s->d_desc.dyn_tree = s->dyn_dtree; |
| 463 | s->d_desc.stat_desc = &static_d_desc; |
| 464 | |
| 465 | s->bl_desc.dyn_tree = s->bl_tree; |
| 466 | s->bl_desc.stat_desc = &static_bl_desc; |
| 467 | |
| 468 | s->bi_buf = 0; |
| 469 | s->bi_valid = 0; |
| 470 | s->bi_used = 0; |
| 471 | #ifdef ZLIB_DEBUG |
| 472 | s->compressed_len = 0L; |
| 473 | s->bits_sent = 0L; |
| 474 | #endif |
| 475 | |
| 476 | /* Initialize the first block of the first file: */ |
| 477 | init_block(s); |
| 478 | } |
| 479 | |
| 480 | #define SMALLEST 1 |
| 481 | /* Index within the heap array of least frequent node in the Huffman tree */ |
no test coverage detected