• Home
  • Raw
  • Download

Lines Matching refs: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_tree_group = BROTLI_STATE_TREE_GROUP_NONE; in BrotliDecoderStateInit()
37 s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_NONE; in BrotliDecoderStateInit()
38 s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_NONE; in BrotliDecoderStateInit()
39 s->substate_huffman = BROTLI_STATE_HUFFMAN_NONE; in BrotliDecoderStateInit()
40 s->substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE; in BrotliDecoderStateInit()
41 s->substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE; in BrotliDecoderStateInit()
43 s->buffer_length = 0; in BrotliDecoderStateInit()
44 s->loop_counter = 0; in BrotliDecoderStateInit()
45 s->pos = 0; in BrotliDecoderStateInit()
46 s->rb_roundtrips = 0; in BrotliDecoderStateInit()
47 s->partial_pos_out = 0; in BrotliDecoderStateInit()
49 s->block_type_trees = NULL; in BrotliDecoderStateInit()
50 s->block_len_trees = NULL; in BrotliDecoderStateInit()
51 s->ringbuffer = NULL; in BrotliDecoderStateInit()
52 s->ringbuffer_size = 0; in BrotliDecoderStateInit()
53 s->new_ringbuffer_size = 0; in BrotliDecoderStateInit()
54 s->ringbuffer_mask = 0; in BrotliDecoderStateInit()
56 s->context_map = NULL; in BrotliDecoderStateInit()
57 s->context_modes = NULL; in BrotliDecoderStateInit()
58 s->dist_context_map = NULL; in BrotliDecoderStateInit()
59 s->context_map_slice = NULL; in BrotliDecoderStateInit()
60 s->dist_context_map_slice = NULL; in BrotliDecoderStateInit()
62 s->sub_loop_counter = 0; in BrotliDecoderStateInit()
64 s->literal_hgroup.codes = NULL; in BrotliDecoderStateInit()
65 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateInit()
66 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateInit()
67 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateInit()
68 s->distance_hgroup.codes = NULL; in BrotliDecoderStateInit()
69 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateInit()
71 s->is_last_metablock = 0; in BrotliDecoderStateInit()
72 s->is_uncompressed = 0; in BrotliDecoderStateInit()
73 s->is_metadata = 0; in BrotliDecoderStateInit()
74 s->should_wrap_ringbuffer = 0; in BrotliDecoderStateInit()
75 s->canny_ringbuffer_allocation = 1; in BrotliDecoderStateInit()
77 s->window_bits = 0; in BrotliDecoderStateInit()
78 s->max_distance = 0; in BrotliDecoderStateInit()
79 s->dist_rb[0] = 16; in BrotliDecoderStateInit()
80 s->dist_rb[1] = 15; in BrotliDecoderStateInit()
81 s->dist_rb[2] = 11; in BrotliDecoderStateInit()
82 s->dist_rb[3] = 4; in BrotliDecoderStateInit()
83 s->dist_rb_idx = 0; in BrotliDecoderStateInit()
84 s->block_type_trees = NULL; in BrotliDecoderStateInit()
85 s->block_len_trees = NULL; in BrotliDecoderStateInit()
88 s->symbol_lists = &s->symbols_lists_array[BROTLI_HUFFMAN_MAX_CODE_LENGTH + 1]; in BrotliDecoderStateInit()
90 s->mtf_upper_bound = 63; in BrotliDecoderStateInit()
92 s->dictionary = BrotliGetDictionary(); in BrotliDecoderStateInit()
93 s->transforms = BrotliGetTransforms(); in BrotliDecoderStateInit()
98 void BrotliDecoderStateMetablockBegin(BrotliDecoderState* s) { in BrotliDecoderStateMetablockBegin() argument
99 s->meta_block_remaining_len = 0; in BrotliDecoderStateMetablockBegin()
100 s->block_length[0] = 1U << 24; in BrotliDecoderStateMetablockBegin()
101 s->block_length[1] = 1U << 24; in BrotliDecoderStateMetablockBegin()
102 s->block_length[2] = 1U << 24; in BrotliDecoderStateMetablockBegin()
103 s->num_block_types[0] = 1; in BrotliDecoderStateMetablockBegin()
104 s->num_block_types[1] = 1; in BrotliDecoderStateMetablockBegin()
105 s->num_block_types[2] = 1; in BrotliDecoderStateMetablockBegin()
106 s->block_type_rb[0] = 1; in BrotliDecoderStateMetablockBegin()
107 s->block_type_rb[1] = 0; in BrotliDecoderStateMetablockBegin()
108 s->block_type_rb[2] = 1; in BrotliDecoderStateMetablockBegin()
109 s->block_type_rb[3] = 0; in BrotliDecoderStateMetablockBegin()
110 s->block_type_rb[4] = 1; in BrotliDecoderStateMetablockBegin()
111 s->block_type_rb[5] = 0; in BrotliDecoderStateMetablockBegin()
112 s->context_map = NULL; in BrotliDecoderStateMetablockBegin()
113 s->context_modes = NULL; in BrotliDecoderStateMetablockBegin()
114 s->dist_context_map = NULL; in BrotliDecoderStateMetablockBegin()
115 s->context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
116 s->literal_htree = NULL; in BrotliDecoderStateMetablockBegin()
117 s->dist_context_map_slice = NULL; in BrotliDecoderStateMetablockBegin()
118 s->dist_htree_index = 0; in BrotliDecoderStateMetablockBegin()
119 s->context_lookup = NULL; in BrotliDecoderStateMetablockBegin()
120 s->literal_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
121 s->literal_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
122 s->insert_copy_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
123 s->insert_copy_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
124 s->distance_hgroup.codes = NULL; in BrotliDecoderStateMetablockBegin()
125 s->distance_hgroup.htrees = NULL; in BrotliDecoderStateMetablockBegin()
128 void BrotliDecoderStateCleanupAfterMetablock(BrotliDecoderState* s) { in BrotliDecoderStateCleanupAfterMetablock() argument
129 BROTLI_DECODER_FREE(s, s->context_modes); in BrotliDecoderStateCleanupAfterMetablock()
130 BROTLI_DECODER_FREE(s, s->context_map); in BrotliDecoderStateCleanupAfterMetablock()
131 BROTLI_DECODER_FREE(s, s->dist_context_map); in BrotliDecoderStateCleanupAfterMetablock()
132 BROTLI_DECODER_FREE(s, s->literal_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
133 BROTLI_DECODER_FREE(s, s->insert_copy_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
134 BROTLI_DECODER_FREE(s, s->distance_hgroup.htrees); in BrotliDecoderStateCleanupAfterMetablock()
137 void BrotliDecoderStateCleanup(BrotliDecoderState* s) { in BrotliDecoderStateCleanup() argument
138 BrotliDecoderStateCleanupAfterMetablock(s); in BrotliDecoderStateCleanup()
140 BROTLI_DECODER_FREE(s, s->ringbuffer); in BrotliDecoderStateCleanup()
141 BROTLI_DECODER_FREE(s, s->block_type_trees); in BrotliDecoderStateCleanup()
144 BROTLI_BOOL BrotliDecoderHuffmanTreeGroupInit(BrotliDecoderState* s, in BrotliDecoderHuffmanTreeGroupInit() argument
152 HuffmanCode** p = (HuffmanCode**)BROTLI_DECODER_ALLOC(s, in BrotliDecoderHuffmanTreeGroupInit()