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

Name:set_data_type

Proto:static void set_data_type(deflate_state *s)

Type:void

Parameter:

TypeParameterName
deflate_state *s
1076  n = 0
1077  ascii_freq = 0
1078  bin_freq = 0
1079  When n < 7 cycle
1079  bin_freq += Freq
1080  When n < 128 cycle
1080  ascii_freq += Freq
1081  When n < umber of length codes, not counting the special END_BLOCK code cycle
1081  bin_freq += Freq
1082  UNKNOWN, BINARY or ASCII = If bin_freq > ascii_freq >> 2 Then compression strategy; see deflateInit2() below for details Else Z_ASCII
Caller
NameDescribe
zlib_tr_flush_blockDetermine 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.