Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zlib_deflate\deftree.c Create Date:2022-07-28 06:58:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pqdownheap

Proto:static void pqdownheap(deflate_state *s, ct_data *tree, int k)

Type:void

Parameter:

TypeParameterName
deflate_state *s
ct_data *tree
intk
377  v = umber of codes at each bit length for an optimal tree [k]
378  j = k << 1
379  When j <= heap_len cycle
383  j++
386  If Compares to subtrees, using the tree depth as tie breaker when* the subtrees have equal frequency. This minimizes the worst case length.(tree, v, umber of codes at each bit length for an optimal tree [j], 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.) Then Break
389  umber of codes at each bit length for an optimal tree [k] = umber of codes at each bit length for an optimal tree [j]
389  k = j
392  j <<= 1
394  umber of codes at each bit length for an optimal tree [k] = v
Caller
NameDescribe
build_tree