Home
last modified time | relevance | path

Searched refs:HUFFMAN_TABLE_BITS (Results 1 – 4 of 4) sorted by relevance

/external/webp/src/utils/
Dhuffman_utils.h25 #define HUFFMAN_TABLE_BITS 8 macro
26 #define HUFFMAN_TABLE_MASK ((1 << HUFFMAN_TABLE_BITS) - 1)
/external/brotli/c/dec/
Ddecode.c39 #define HUFFMAN_TABLE_BITS 8U macro
355 if (BROTLI_HC_FAST_LOAD_BITS(table) > HUFFMAN_TABLE_BITS) { in DecodeSymbol()
356 uint32_t nbits = BROTLI_HC_FAST_LOAD_BITS(table) - HUFFMAN_TABLE_BITS; in DecodeSymbol()
357 BrotliDropBits(br, HUFFMAN_TABLE_BITS); in DecodeSymbol()
360 ((bits >> HUFFMAN_TABLE_BITS) & BitMask(nbits))); in DecodeSymbol()
389 if (BROTLI_HC_FAST_LOAD_BITS(table) <= HUFFMAN_TABLE_BITS) { in SafeDecodeSymbol()
398 if (available_bits <= HUFFMAN_TABLE_BITS) { in SafeDecodeSymbol()
403 val = (val & BitMask(BROTLI_HC_FAST_LOAD_BITS(table))) >> HUFFMAN_TABLE_BITS; in SafeDecodeSymbol()
404 available_bits -= HUFFMAN_TABLE_BITS; in SafeDecodeSymbol()
410 BrotliDropBits(br, HUFFMAN_TABLE_BITS + BROTLI_HC_FAST_LOAD_BITS(table)); in SafeDecodeSymbol()
[all …]
/external/brotli/java/org/brotli/dec/
DDecode.java51 private static final int HUFFMAN_TABLE_BITS = 8; field in Decode
391 if (bits <= HUFFMAN_TABLE_BITS) { in readSymbol()
397 offset += (val & mask) >>> HUFFMAN_TABLE_BITS; in readSymbol()
398 s.bitOffset += ((tableGroup[offset] >> 16) + HUFFMAN_TABLE_BITS); in readSymbol()
565 tableGroup, tableIdx, HUFFMAN_TABLE_BITS, codeLengths, alphabetSizeLimit); in readSimpleHuffmanCode()
596 tableGroup, tableIdx, HUFFMAN_TABLE_BITS, codeLengths, alphabetSizeLimit); in readComplexHuffmanCode()
/external/webp/src/dec/
Dvp8l_dec.c188 nbits = table->bits - HUFFMAN_TABLE_BITS; in ReadSymbol()
190 VP8LSetBitPos(br, br->bit_pos_ + HUFFMAN_TABLE_BITS); in ReadSymbol()
223 assert(huff->bits <= HUFFMAN_TABLE_BITS); in AccumulateHCode()
348 size = VP8LBuildHuffmanTable(table, HUFFMAN_TABLE_BITS, in ReadHuffmanCode()