Home
last modified time | relevance | path

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

/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/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/ffmpeg/libavcodec/
Dtruemotion2.c118 static int tm2_read_tree(TM2Context *ctx, int length, TM2Huff *huff) in tm2_read_tree() argument
121 if (length > huff->max_bits) { in tm2_read_tree()
123 huff->max_bits); in tm2_read_tree()
131 if (huff->num >= huff->max_num) { in tm2_read_tree()
135 huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits); in tm2_read_tree()
136 huff->lens[huff->num] = length; in tm2_read_tree()
137 huff->num++; in tm2_read_tree()
140 if ((ret2 = tm2_read_tree(ctx, length + 1, huff)) < 0) in tm2_read_tree()
142 if ((ret = tm2_read_tree(ctx, length + 1, huff)) < 0) in tm2_read_tree()
150 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.c419 const HuffmanCodebook *huff = &at9_huffman_coeffs[cb][prec][cbi]; in read_coeffs_coarse() local
420 const int groups = bands >> huff->value_cnt_pow; in read_coeffs_coarse()
425 for (int k = 0; k < huff->value_cnt; k++) { in read_coeffs_coarse()
426 coeffs[k] = sign_extend(val, huff->value_bits); in read_coeffs_coarse()
427 val >>= huff->value_bits; in read_coeffs_coarse()
430 coeffs += huff->value_cnt; in read_coeffs_coarse()
Dvp3.c2842 static int read_huffman_tree(HuffTable *huff, GetBitContext *gb, int length, in read_huffman_tree() argument
2847 if (huff->nb_entries >= 32) { /* overflow */ in read_huffman_tree()
2853 length, huff->nb_entries, token); in read_huffman_tree()
2854 huff->entries[huff->nb_entries++] = (HuffEntry){ length, token }; in read_huffman_tree()
2862 if (read_huffman_tree(huff, gb, length, avctx)) in read_huffman_tree()
2864 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/flutter/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/node/deps/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/freetype/src/gzip/
Dinftrees.c48 unsigned huff; /* Huffman code */ in inflate_table() local
198 huff = 0; /* starting code */ in inflate_table()
236 next[(huff >> drop) + fill] = here; in inflate_table()
241 while (huff & incr) in inflate_table()
244 huff &= incr - 1; in inflate_table()
245 huff += incr; in inflate_table()
248 huff = 0; in inflate_table()
258 if (len > root && (huff & mask) != low) { in inflate_table()
283 low = huff & mask; in inflate_table()
293 if (huff != 0) { in inflate_table()
[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/flutter/skia/third_party/externals/libjpeg-turbo/
DCMakeLists.txt988 # CC: null SAMP: fullsize FDCT: islow ENT: huff
993 # CC: null SAMP: fullsize IDCT: islow ENT: huff
1005 # CC: RGB->RGB565 SAMP: fullsize IDCT: islow ENT: huff
1010 # CC: RGB->RGB565 (dithered) SAMP: fullsize IDCT: islow ENT: huff
1016 # CC: RGB->YCC SAMP: fullsize/h2v1 FDCT: ifast ENT: 2-pass huff
1021 # CC: YCC->RGB SAMP: fullsize/h2v1 fancy IDCT: ifast ENT: huff
1026 # CC: YCC->RGB SAMP: h2v1 merged IDCT: ifast ENT: huff
1032 # CC: YCC->RGB565 SAMP: h2v1 merged IDCT: ifast ENT: huff
1038 # CC: YCC->RGB565 (dithered) SAMP: h2v1 merged IDCT: ifast ENT: huff
1044 # CC: RGB->YCC SAMP: fullsize/h2v2 FDCT: ifast ENT: prog huff
[all …]
/third_party/libjpeg-turbo/
DCMakeLists.txt1064 # CC: null SAMP: fullsize FDCT: islow ENT: huff
1069 # CC: null SAMP: fullsize IDCT: islow ENT: huff
1085 # CC: RGB->RGB565 SAMP: fullsize IDCT: islow ENT: huff
1090 # CC: RGB->RGB565 (dithered) SAMP: fullsize IDCT: islow ENT: huff
1096 # CC: RGB->YCC SAMP: fullsize/h2v1 FDCT: ifast ENT: 2-pass huff
1101 # CC: YCC->RGB SAMP: fullsize/h2v1 fancy IDCT: ifast ENT: huff
1106 # CC: RGB->YCC SAMP: fullsize/h1v2 FDCT: islow ENT: huff
1111 # CC: YCC->RGB SAMP: fullsize/h1v2 fancy IDCT: islow ENT: huff
1116 # CC: YCC->RGB SAMP: h2v1 merged IDCT: ifast ENT: huff
1122 # CC: YCC->RGB565 SAMP: h2v1 merged IDCT: ifast ENT: huff
[all …]
/third_party/flutter/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/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/flutter/skia/third_party/externals/wuffs/test/data/
DREADME.md85 romeo.txt.fixed-huff.deflate was derived from romeo.txt by a custom program to
/third_party/rust/crates/bindgen/book/src/
Dtutorial-5.md158 [1: huff+mtf rt+rld {0x47bfca17, 0x47bfca17}]