• Home
  • Raw
  • Download

Lines Matching +full:- +full:s

18 BROTLI_BOOL BrotliDecoderStateInit(BrotliDecoderState* s,  in BrotliDecoderStateInit()  argument
21 s->alloc_func = BrotliDefaultAllocFunc; in BrotliDecoderStateInit()
22 s->free_func = BrotliDefaultFreeFunc; in BrotliDecoderStateInit()
23 s->memory_manager_opaque = 0; in BrotliDecoderStateInit()
25 s->alloc_func = alloc_func; in BrotliDecoderStateInit()
26 s->free_func = free_func; in BrotliDecoderStateInit()
27 s->memory_manager_opaque = opaque; in BrotliDecoderStateInit()
30 s->error_code = 0; /* BROTLI_DECODER_NO_ERROR */ in BrotliDecoderStateInit()
32 BrotliInitBitReader(&s->br); in BrotliDecoderStateInit()
33 s->state = BROTLI_STATE_UNINITED; in BrotliDecoderStateInit()
34 s->large_window = 0; in BrotliDecoderStateInit()
35 s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NONE; in BrotliDecoderStateInit()
36 s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_NONE; in BrotliDecoderStateInit()
37 s->substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE; in BrotliDecoderStateInit()
38 s->substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE; in BrotliDecoderStateInit()
40 s->buffer_length = 0; in BrotliDecoderStateInit()
41 s->loop_counter = 0; in BrotliDecoderStateInit()
42 s->pos = 0; in BrotliDecoderStateInit()
43 s->rb_roundtrips = 0; in BrotliDecoderStateInit()
44 s->partial_pos_out = 0; in BrotliDecoderStateInit()
46 s->block_type_trees = NULL; in BrotliDecoderStateInit()
47 s->block_len_trees = NULL; in BrotliDecoderStateInit()
48 s->ringbuffer = NULL; in BrotliDecoderStateInit()
49 s->ringbuffer_size = 0; in BrotliDecoderStateInit()
50 s->new_ringbuffer_size = 0; in BrotliDecoderStateInit()
51 s->ringbuffer_mask = 0; in BrotliDecoderStateInit()
53 s->context_map = NULL; in BrotliDecoderStateInit()
54 s->context_modes = NULL; in BrotliDecoderStateInit()
55 s->dist_context_map = NULL; in BrotliDecoderStateInit()
56 s->context_map_slice = NULL; in BrotliDecoderStateInit()
57 s->dist_context_map_slice = NULL; in BrotliDecoderStateInit()
59 s->literal_hgroup.codes = NULL; in BrotliDecoderStateInit()
60 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateInit()
61 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateInit()
62 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateInit()
63 s->distance_hgroup.codes = NULL; in BrotliDecoderStateInit()
64 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateInit()
66 s->is_last_metablock = 0; in BrotliDecoderStateInit()
67 s->is_uncompressed = 0; in BrotliDecoderStateInit()
68 s->is_metadata = 0; in BrotliDecoderStateInit()
69 s->should_wrap_ringbuffer = 0; in BrotliDecoderStateInit()
70 s->canny_ringbuffer_allocation = 1; in BrotliDecoderStateInit()
72 s->window_bits = 0; in BrotliDecoderStateInit()
73 s->max_distance = 0; in BrotliDecoderStateInit()
74 s->dist_rb[0] = 16; in BrotliDecoderStateInit()
75 s->dist_rb[1] = 15; in BrotliDecoderStateInit()
76 s->dist_rb[2] = 11; in BrotliDecoderStateInit()
77 s->dist_rb[3] = 4; in BrotliDecoderStateInit()
78 s->dist_rb_idx = 0; in BrotliDecoderStateInit()
79 s->block_type_trees = NULL; in BrotliDecoderStateInit()
80 s->block_len_trees = NULL; in BrotliDecoderStateInit()
82 s->mtf_upper_bound = 63; in BrotliDecoderStateInit()
84 s->dictionary = BrotliGetDictionary(); in BrotliDecoderStateInit()
85 s->transforms = BrotliGetTransforms(); in BrotliDecoderStateInit()
90 void BrotliDecoderStateMetablockBegin(BrotliDecoderState* s) { in BrotliDecoderStateMetablockBegin() argument
91 s->meta_block_remaining_len = 0; in BrotliDecoderStateMetablockBegin()
92 s->block_length[0] = 1U << 24; in BrotliDecoderStateMetablockBegin()
93 s->block_length[1] = 1U << 24; in BrotliDecoderStateMetablockBegin()
94 s->block_length[2] = 1U << 24; in BrotliDecoderStateMetablockBegin()
95 s->num_block_types[0] = 1; in BrotliDecoderStateMetablockBegin()
96 s->num_block_types[1] = 1; in BrotliDecoderStateMetablockBegin()
97 s->num_block_types[2] = 1; in BrotliDecoderStateMetablockBegin()
98 s->block_type_rb[0] = 1; in BrotliDecoderStateMetablockBegin()
99 s->block_type_rb[1] = 0; in BrotliDecoderStateMetablockBegin()
100 s->block_type_rb[2] = 1; in BrotliDecoderStateMetablockBegin()
101 s->block_type_rb[3] = 0; in BrotliDecoderStateMetablockBegin()
102 s->block_type_rb[4] = 1; in BrotliDecoderStateMetablockBegin()
103 s->block_type_rb[5] = 0; in BrotliDecoderStateMetablockBegin()
104 s->context_map = NULL; in BrotliDecoderStateMetablockBegin()
105 s->context_modes = NULL; in BrotliDecoderStateMetablockBegin()
106 s->dist_context_map = NULL; in BrotliDecoderStateMetablockBegin()
107 s->context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
108 s->literal_htree = NULL; in BrotliDecoderStateMetablockBegin()
109 s->dist_context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
110 s->dist_htree_index = 0; in BrotliDecoderStateMetablockBegin()
111 s->context_lookup = NULL; in BrotliDecoderStateMetablockBegin()
112 s->literal_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
113 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
114 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
115 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
116 s->distance_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
117 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
120 void BrotliDecoderStateCleanupAfterMetablock(BrotliDecoderState* s) { in BrotliDecoderStateCleanupAfterMetablock() argument
121 BROTLI_DECODER_FREE(s, s->context_modes); in BrotliDecoderStateCleanupAfterMetablock()
122 BROTLI_DECODER_FREE(s, s->context_map); in BrotliDecoderStateCleanupAfterMetablock()
123 BROTLI_DECODER_FREE(s, s->dist_context_map); in BrotliDecoderStateCleanupAfterMetablock()
124 BROTLI_DECODER_FREE(s, s->literal_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
125 BROTLI_DECODER_FREE(s, s->insert_copy_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
126 BROTLI_DECODER_FREE(s, s->distance_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
129 void BrotliDecoderStateCleanup(BrotliDecoderState* s) { in BrotliDecoderStateCleanup() argument
130 BrotliDecoderStateCleanupAfterMetablock(s); in BrotliDecoderStateCleanup()
132 BROTLI_DECODER_FREE(s, s->ringbuffer); in BrotliDecoderStateCleanup()
133 BROTLI_DECODER_FREE(s, s->block_type_trees); in BrotliDecoderStateCleanup()
136 BROTLI_BOOL BrotliDecoderHuffmanTreeGroupInit(BrotliDecoderState* s, in BrotliDecoderHuffmanTreeGroupInit() argument
139 /* 376 = 256 (1-st level table) + 4 + 7 + 15 + 31 + 63 (2-nd level mix-tables) in BrotliDecoderHuffmanTreeGroupInit()
147 HuffmanCode** p = (HuffmanCode**)BROTLI_DECODER_ALLOC(s, in BrotliDecoderHuffmanTreeGroupInit()
149 group->alphabet_size_max = (uint16_t)alphabet_size_max; in BrotliDecoderHuffmanTreeGroupInit()
150 group->alphabet_size_limit = (uint16_t)alphabet_size_limit; in BrotliDecoderHuffmanTreeGroupInit()
151 group->num_htrees = (uint16_t)ntrees; in BrotliDecoderHuffmanTreeGroupInit()
152 group->htrees = p; in BrotliDecoderHuffmanTreeGroupInit()
153 group->codes = (HuffmanCode*)(&p[ntrees]); in BrotliDecoderHuffmanTreeGroupInit()