Function report |
Source Code:lib\zlib_deflate\deftree.c |
Create Date:2022-07-28 06:58:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:build_tree
Proto:static void build_tree(deflate_state *s, tree_desc *desc)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
deflate_state * | s | |
tree_desc * | desc |
543 | tree = the dynamic tree |
544 | stree = static_tree |
547 | max_code = -1 |
571 | node = umber of codes at each bit length for an optimal tree [++(heap_len)] = If max_code < 2 Then ++max_code Else 0 |
572 | Freq = 1 |
573 | The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.* The same heap array is used to build all trees.[node] = 0 |
574 | If stree Then length of current block with static trees -= Len |
588 | Do |
607 | pqdownheap(s, tree, SMALLEST) |
611 | umber of codes at each bit length for an optimal tree [--(lement of largest frequency )] = umber of codes at each bit length for an optimal tree [SMALLEST] |
616 | gen_bitlen(s, (tree_desc * )desc) |
Name | Describe |
---|---|
build_bl_tree | |
zlib_tr_flush_block | Determine the best encoding for the current block: dynamic trees, static* trees or store, and output the encoded block to the zip file. This function* returns the total compressed length for the file so far. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |