Home
last modified time | relevance | path

Searched refs:huff (Results 1 – 17 of 17) sorted by relevance

/third_party/libwebsockets/win32port/zlib/
Dinftrees.c48 unsigned huff; /* Huffman code */ local
200 huff = 0; /* starting code */
238 next[(huff >> drop) + fill] = here;
243 while (huff & incr)
246 huff &= incr - 1;
247 huff += incr;
250 huff = 0;
260 if (len > root && (huff & mask) != low) {
285 low = huff & mask;
302 while (huff != 0) {
[all …]
/third_party/zlib/contrib/infback9/
Dinftree9.c48 unsigned huff; /* Huffman code */ local
194 huff = 0; /* starting code */
231 next[(huff >> drop) + fill] = this;
236 while (huff & incr)
239 huff &= incr - 1;
240 huff += incr;
243 huff = 0;
253 if (len > root && (huff & mask) != low) {
278 low = huff & mask;
295 while (huff != 0) {
[all …]
/third_party/ffmpeg/libavcodec/
Dtruemotion2.c119 static int tm2_read_tree(TM2Context *ctx, int length, TM2Huff *huff) in tm2_read_tree() argument
122 if (length > huff->max_bits) { in tm2_read_tree()
124 huff->max_bits); in tm2_read_tree()
132 if (huff->num >= huff->max_num) { in tm2_read_tree()
136 huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits); in tm2_read_tree()
137 huff->lens[huff->num] = length; in tm2_read_tree()
138 huff->num++; in tm2_read_tree()
141 if ((ret2 = tm2_read_tree(ctx, length + 1, huff)) < 0) in tm2_read_tree()
143 if ((ret = tm2_read_tree(ctx, length + 1, huff)) < 0) in tm2_read_tree()
151 TM2Huff huff; in tm2_build_huff_table() local
[all …]
Dvaapi_mjpeg.c78 VAHuffmanTableBufferJPEGBaseline huff; in vaapi_mjpeg_decode_slice() local
83 memset(&huff, 0, sizeof(huff)); in vaapi_mjpeg_decode_slice()
85 huff.load_huffman_table[i] = 1; in vaapi_mjpeg_decode_slice()
87 huff.huffman_table[i].num_dc_codes[j] = s->raw_huffman_lengths[0][i][j]; in vaapi_mjpeg_decode_slice()
89 huff.huffman_table[i].dc_values[j] = s->raw_huffman_values[0][i][j]; in vaapi_mjpeg_decode_slice()
91 huff.huffman_table[i].num_ac_codes[j] = s->raw_huffman_lengths[1][i][j]; in vaapi_mjpeg_decode_slice()
93 huff.huffman_table[i].ac_values[j] = s->raw_huffman_values[1][i][j]; in vaapi_mjpeg_decode_slice()
98 &huff, sizeof(huff)); in vaapi_mjpeg_decode_slice()
Dvaapi_encode_mjpeg.c186 VAHuffmanTableBufferJPEGBaseline *huff; in vaapi_encode_mjpeg_write_extra_buffer() local
188 if (*data_len < sizeof(*huff)) in vaapi_encode_mjpeg_write_extra_buffer()
191 *data_len = sizeof(*huff); in vaapi_encode_mjpeg_write_extra_buffer()
193 huff = (VAHuffmanTableBufferJPEGBaseline*)data; in vaapi_encode_mjpeg_write_extra_buffer()
194 memset(huff, 0, sizeof(*huff)); in vaapi_encode_mjpeg_write_extra_buffer()
199 huff->load_huffman_table[t] = 1; in vaapi_encode_mjpeg_write_extra_buffer()
203 k += (huff->huffman_table[t].num_dc_codes[i] = ht->L[i]); in vaapi_encode_mjpeg_write_extra_buffer()
204 av_assert0(k <= sizeof(huff->huffman_table[t].dc_values)); in vaapi_encode_mjpeg_write_extra_buffer()
206 huff->huffman_table[t].dc_values[i] = ht->V[i]; in vaapi_encode_mjpeg_write_extra_buffer()
210 k += (huff->huffman_table[t].num_ac_codes[i] = ht->L[i]); in vaapi_encode_mjpeg_write_extra_buffer()
[all …]
Datrac9dec.c421 const HuffmanCodebook *huff = &at9_huffman_coeffs[cb][prec][cbi]; in read_coeffs_coarse() local
422 const int groups = bands >> huff->value_cnt_pow; in read_coeffs_coarse()
427 for (int k = 0; k < huff->value_cnt; k++) { in read_coeffs_coarse()
428 coeffs[k] = sign_extend(val, huff->value_bits); in read_coeffs_coarse()
429 val >>= huff->value_bits; in read_coeffs_coarse()
432 coeffs += huff->value_cnt; in read_coeffs_coarse()
Dvp3.c2848 static int read_huffman_tree(HuffTable *huff, GetBitContext *gb, int length, in read_huffman_tree() argument
2853 if (huff->nb_entries >= 32) { /* overflow */ in read_huffman_tree()
2859 length, huff->nb_entries, token); in read_huffman_tree()
2860 huff->entries[huff->nb_entries++] = (HuffEntry){ length, token }; in read_huffman_tree()
2868 if (read_huffman_tree(huff, gb, length, avctx)) in read_huffman_tree()
2870 if (read_huffman_tree(huff, gb, length, avctx)) in read_huffman_tree()
Dutvideodec.c93 const uint8_t *src, const uint8_t *huff, in decode_plane10() argument
102 if ((ret = build_huff(c, huff, &vlc, &fsym, 1024)) < 0) { in decode_plane10()
/third_party/skia/third_party/externals/zlib/
Dinftrees.c48 unsigned huff; /* Huffman code */ local
198 huff = 0; /* starting code */
236 next[(huff >> drop) + fill] = here;
241 while (huff & incr)
244 huff &= incr - 1;
245 huff += incr;
248 huff = 0;
258 if (len > root && (huff & mask) != low) {
283 low = huff & mask;
293 if (huff != 0) {
[all …]
/third_party/zlib/
Dinftrees.c44 unsigned huff; /* Huffman code */ in inflate_table() local
194 huff = 0; /* starting code */ in inflate_table()
232 next[(huff >> drop) + fill] = here; in inflate_table()
237 while (huff & incr) in inflate_table()
240 huff &= incr - 1; in inflate_table()
241 huff += incr; in inflate_table()
244 huff = 0; in inflate_table()
254 if (len > root && (huff & mask) != low) { in inflate_table()
279 low = huff & mask; in inflate_table()
289 if (huff != 0) { in inflate_table()
[all …]
/third_party/node/deps/zlib/
Dinftrees.c43 unsigned huff; /* Huffman code */ in inflate_table() local
193 huff = 0; /* starting code */ in inflate_table()
231 next[(huff >> drop) + fill] = here; in inflate_table()
236 while (huff & incr) in inflate_table()
239 huff &= incr - 1; in inflate_table()
240 huff += incr; in inflate_table()
243 huff = 0; in inflate_table()
253 if (len > root && (huff & mask) != low) { in inflate_table()
278 low = huff & mask; in inflate_table()
288 if (huff != 0) { in inflate_table()
[all …]
/third_party/node/deps/v8/third_party/zlib/
Dinftrees.c48 unsigned huff; /* Huffman code */ local
198 huff = 0; /* starting code */
236 next[(huff >> drop) + fill] = here;
241 while (huff & incr)
244 huff &= incr - 1;
245 huff += incr;
248 huff = 0;
258 if (len > root && (huff & mask) != low) {
283 low = huff & mask;
293 if (huff != 0) {
[all …]
/third_party/toybox/lib/
Ddeflate.c155 struct huff { struct
165 static void len2huff(struct huff *huff, char bitlen[], int len) in len2huff() argument
171 memset(huff, 0, sizeof(struct huff)); in len2huff()
172 for (i = 0; i<len; i++) huff->length[bitlen[i]]++; in len2huff()
176 *huff->length = *offset = 0; in len2huff()
177 for (i = 1; i<16; i++) offset[i] = offset[i-1] + huff->length[i-1]; in len2huff()
178 for (i = 0; i<len; i++) if (bitlen[i]) huff->symbol[offset[bitlen[i]]++] = i; in len2huff()
185 static unsigned huff_and_puff(struct bitbuf *bb, struct huff *huff) in huff_and_puff() argument
187 unsigned short *length = huff->length; in huff_and_puff()
195 if ((length - huff->length) & 16) error_exit("bad symbol"); in huff_and_puff()
[all …]
/third_party/skia/third_party/externals/libwebp/src/dec/
Dvp8l_dec.c220 HuffmanCode32* const huff) { in AccumulateHCode() argument
221 huff->bits += hcode.bits; in AccumulateHCode()
222 huff->value |= (uint32_t)hcode.value << shift; in AccumulateHCode()
223 assert(huff->bits <= HUFFMAN_TABLE_BITS); in AccumulateHCode()
231 HuffmanCode32* const huff = &htree_group->packed_table[bits]; in BuildPackedTable() local
234 huff->bits = hcode.bits + BITS_SPECIAL_MARKER; in BuildPackedTable()
235 huff->value = hcode.value; in BuildPackedTable()
237 huff->bits = 0; in BuildPackedTable()
238 huff->value = 0; in BuildPackedTable()
239 bits >>= AccumulateHCode(hcode, 8, huff); in BuildPackedTable()
[all …]
/third_party/libwebsockets/lib/roles/h2/
Dprivate-lib-roles-h2.h264 unsigned int huff:1; member
Dhpack.c1029 h2n->huff = !!(c & 0x80); in lws_hpack_interpret()
1112 if (h2n->huff) { in lws_hpack_interpret()
1216 if (h2n->huff && (h2n->huff_pad > 7 || in lws_hpack_interpret()
/third_party/rust/crates/bindgen/book/src/
Dtutorial-5.md158 [1: huff+mtf rt+rld {0x47bfca17, 0x47bfca17}]