• Home
  • Raw
  • Download

Lines Matching refs:s

28 void BrotliDecoderStateInit(BrotliDecoderState* s) {  in BrotliDecoderStateInit()  argument
29 BrotliDecoderStateInitWithCustomAllocators(s, 0, 0, 0); in BrotliDecoderStateInit()
32 void BrotliDecoderStateInitWithCustomAllocators(BrotliDecoderState* s, in BrotliDecoderStateInitWithCustomAllocators() argument
35 s->alloc_func = DefaultAllocFunc; in BrotliDecoderStateInitWithCustomAllocators()
36 s->free_func = DefaultFreeFunc; in BrotliDecoderStateInitWithCustomAllocators()
37 s->memory_manager_opaque = 0; in BrotliDecoderStateInitWithCustomAllocators()
39 s->alloc_func = alloc_func; in BrotliDecoderStateInitWithCustomAllocators()
40 s->free_func = free_func; in BrotliDecoderStateInitWithCustomAllocators()
41 s->memory_manager_opaque = opaque; in BrotliDecoderStateInitWithCustomAllocators()
44 BrotliInitBitReader(&s->br); in BrotliDecoderStateInitWithCustomAllocators()
45 s->state = BROTLI_STATE_UNINITED; in BrotliDecoderStateInitWithCustomAllocators()
46 s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NONE; in BrotliDecoderStateInitWithCustomAllocators()
47 s->substate_tree_group = BROTLI_STATE_TREE_GROUP_NONE; in BrotliDecoderStateInitWithCustomAllocators()
48 s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_NONE; in BrotliDecoderStateInitWithCustomAllocators()
49 s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_NONE; in BrotliDecoderStateInitWithCustomAllocators()
50 s->substate_huffman = BROTLI_STATE_HUFFMAN_NONE; in BrotliDecoderStateInitWithCustomAllocators()
51 s->substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE; in BrotliDecoderStateInitWithCustomAllocators()
52 s->substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE; in BrotliDecoderStateInitWithCustomAllocators()
54 s->dictionary = BrotliGetDictionary(); in BrotliDecoderStateInitWithCustomAllocators()
56 s->buffer_length = 0; in BrotliDecoderStateInitWithCustomAllocators()
57 s->loop_counter = 0; in BrotliDecoderStateInitWithCustomAllocators()
58 s->pos = 0; in BrotliDecoderStateInitWithCustomAllocators()
59 s->rb_roundtrips = 0; in BrotliDecoderStateInitWithCustomAllocators()
60 s->partial_pos_out = 0; in BrotliDecoderStateInitWithCustomAllocators()
62 s->block_type_trees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
63 s->block_len_trees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
64 s->ringbuffer = NULL; in BrotliDecoderStateInitWithCustomAllocators()
65 s->ringbuffer_size = 0; in BrotliDecoderStateInitWithCustomAllocators()
66 s->new_ringbuffer_size = 0; in BrotliDecoderStateInitWithCustomAllocators()
67 s->ringbuffer_mask = 0; in BrotliDecoderStateInitWithCustomAllocators()
69 s->context_map = NULL; in BrotliDecoderStateInitWithCustomAllocators()
70 s->context_modes = NULL; in BrotliDecoderStateInitWithCustomAllocators()
71 s->dist_context_map = NULL; in BrotliDecoderStateInitWithCustomAllocators()
72 s->context_map_slice = NULL; in BrotliDecoderStateInitWithCustomAllocators()
73 s->dist_context_map_slice = NULL; in BrotliDecoderStateInitWithCustomAllocators()
75 s->sub_loop_counter = 0; in BrotliDecoderStateInitWithCustomAllocators()
77 s->literal_hgroup.codes = NULL; in BrotliDecoderStateInitWithCustomAllocators()
78 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
79 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateInitWithCustomAllocators()
80 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
81 s->distance_hgroup.codes = NULL; in BrotliDecoderStateInitWithCustomAllocators()
82 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
84 s->custom_dict = NULL; in BrotliDecoderStateInitWithCustomAllocators()
85 s->custom_dict_size = 0; in BrotliDecoderStateInitWithCustomAllocators()
87 s->is_last_metablock = 0; in BrotliDecoderStateInitWithCustomAllocators()
88 s->should_wrap_ringbuffer = 0; in BrotliDecoderStateInitWithCustomAllocators()
89 s->window_bits = 0; in BrotliDecoderStateInitWithCustomAllocators()
90 s->max_distance = 0; in BrotliDecoderStateInitWithCustomAllocators()
91 s->dist_rb[0] = 16; in BrotliDecoderStateInitWithCustomAllocators()
92 s->dist_rb[1] = 15; in BrotliDecoderStateInitWithCustomAllocators()
93 s->dist_rb[2] = 11; in BrotliDecoderStateInitWithCustomAllocators()
94 s->dist_rb[3] = 4; in BrotliDecoderStateInitWithCustomAllocators()
95 s->dist_rb_idx = 0; in BrotliDecoderStateInitWithCustomAllocators()
96 s->block_type_trees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
97 s->block_len_trees = NULL; in BrotliDecoderStateInitWithCustomAllocators()
100 s->symbol_lists = &s->symbols_lists_array[BROTLI_HUFFMAN_MAX_CODE_LENGTH + 1]; in BrotliDecoderStateInitWithCustomAllocators()
102 s->mtf_upper_bound = 63; in BrotliDecoderStateInitWithCustomAllocators()
105 void BrotliDecoderStateMetablockBegin(BrotliDecoderState* s) { in BrotliDecoderStateMetablockBegin() argument
106 s->meta_block_remaining_len = 0; in BrotliDecoderStateMetablockBegin()
107 s->block_length[0] = 1U << 28; in BrotliDecoderStateMetablockBegin()
108 s->block_length[1] = 1U << 28; in BrotliDecoderStateMetablockBegin()
109 s->block_length[2] = 1U << 28; in BrotliDecoderStateMetablockBegin()
110 s->num_block_types[0] = 1; in BrotliDecoderStateMetablockBegin()
111 s->num_block_types[1] = 1; in BrotliDecoderStateMetablockBegin()
112 s->num_block_types[2] = 1; in BrotliDecoderStateMetablockBegin()
113 s->block_type_rb[0] = 1; in BrotliDecoderStateMetablockBegin()
114 s->block_type_rb[1] = 0; in BrotliDecoderStateMetablockBegin()
115 s->block_type_rb[2] = 1; in BrotliDecoderStateMetablockBegin()
116 s->block_type_rb[3] = 0; in BrotliDecoderStateMetablockBegin()
117 s->block_type_rb[4] = 1; in BrotliDecoderStateMetablockBegin()
118 s->block_type_rb[5] = 0; in BrotliDecoderStateMetablockBegin()
119 s->context_map = NULL; in BrotliDecoderStateMetablockBegin()
120 s->context_modes = NULL; in BrotliDecoderStateMetablockBegin()
121 s->dist_context_map = NULL; in BrotliDecoderStateMetablockBegin()
122 s->context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
123 s->literal_htree = NULL; in BrotliDecoderStateMetablockBegin()
124 s->dist_context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
125 s->dist_htree_index = 0; in BrotliDecoderStateMetablockBegin()
126 s->context_lookup1 = NULL; in BrotliDecoderStateMetablockBegin()
127 s->context_lookup2 = NULL; in BrotliDecoderStateMetablockBegin()
128 s->literal_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
129 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
130 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
131 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
132 s->distance_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
133 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
136 void BrotliDecoderStateCleanupAfterMetablock(BrotliDecoderState* s) { in BrotliDecoderStateCleanupAfterMetablock() argument
137 BROTLI_FREE(s, s->context_modes); in BrotliDecoderStateCleanupAfterMetablock()
138 BROTLI_FREE(s, s->context_map); in BrotliDecoderStateCleanupAfterMetablock()
139 BROTLI_FREE(s, s->dist_context_map); in BrotliDecoderStateCleanupAfterMetablock()
140 BROTLI_FREE(s, s->literal_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
141 BROTLI_FREE(s, s->insert_copy_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
142 BROTLI_FREE(s, s->distance_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
145 void BrotliDecoderStateCleanup(BrotliDecoderState* s) { in BrotliDecoderStateCleanup() argument
146 BrotliDecoderStateCleanupAfterMetablock(s); in BrotliDecoderStateCleanup()
148 BROTLI_FREE(s, s->ringbuffer); in BrotliDecoderStateCleanup()
149 BROTLI_FREE(s, s->block_type_trees); in BrotliDecoderStateCleanup()
152 BROTLI_BOOL BrotliDecoderHuffmanTreeGroupInit(BrotliDecoderState* s, in BrotliDecoderHuffmanTreeGroupInit() argument
159 HuffmanCode** p = (HuffmanCode**)BROTLI_ALLOC(s, code_size + htree_size); in BrotliDecoderHuffmanTreeGroupInit()