// About 99% of all Huffman codes are <= 8 bits long (see codelen.txt),
// and it's what libjpeg uses. Thus, it seems like a reasonable size.
// About 99% of all Huffman codes are <= 8 bits long (see codelen.txt),
// and it's what libjpeg uses. Thus, it seems like a reasonable size.
typedef struct huffman_table huffman_tables_t[NUM_COEFF_CLASSES][4];
// Read Huffman tables from a stream, and compute the derived values.
typedef struct huffman_table huffman_tables_t[NUM_COEFF_CLASSES][4];
// Read Huffman tables from a stream, and compute the derived values.
unsigned read_huffman_symbol_slow_path(const struct huffman_table* table,
struct bit_source* source);
unsigned read_huffman_symbol_slow_path(const struct huffman_table* table,
struct bit_source* source);
static inline unsigned read_huffman_symbol(const struct huffman_table* table,
struct bit_source* source)
{
static inline unsigned read_huffman_symbol(const struct huffman_table* table,
struct bit_source* source)
{