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:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:scan_tree

Proto:static void scan_tree(deflate_state *s, ct_data *tree, int max_code)

Type:void

Parameter:

TypeParameterName
deflate_state *s
ct_data *tree
intmax_code
633  prevlen = -1
635  nextlen = Len
636  count = 0
637  max_count = 7
638  min_count = 4
640  If nextlen == 0 Then max_count = 138 , min_count = 3
641  Len = 0xffff
643  When n <= max_code cycle
644  curlen = nextlen
644  nextlen = Len
645  If ++count < max_count && curlen == nextlen Then
646  Continue
647  Else if count < min_count Then
648  Freq += count
649  Else if curlen != 0 Then
650  If curlen != prevlen Then Freq++
651  Freq++
652  Else if count <= 10 Then
653  Freq++
654  Else
655  Freq++
657  count = 0
657  prevlen = curlen
658  If nextlen == 0 Then
659  max_count = 138 , min_count = 3
660  Else if curlen == nextlen Then
661  max_count = 6 , min_count = 3
662  Else
663  max_count = 7 , min_count = 4
Caller
NameDescribe
build_bl_tree