Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 #include <liboil/liboil-stdint.h>
24 #include "jpeg_bits.h"
26 typedef struct _HuffmanEntry HuffmanEntry;
27 typedef struct _HuffmanTable HuffmanTable;
29 struct _HuffmanEntry {
36 struct _HuffmanTable {
38 HuffmanEntry entries[256];
42 void huffman_table_init(HuffmanTable *table);
44 void huffman_table_dump(HuffmanTable *table);
45 void huffman_table_add(HuffmanTable *table, uint32_t code, int n_bits,
47 unsigned int huffman_table_decode_jpeg(HuffmanTable *tab, JpegBits *bits);
48 int huffman_table_decode_macroblock(short *block, HuffmanTable *dc_tab,
49 HuffmanTable *ac_tab, JpegBits *bits);
50 int huffman_table_decode(HuffmanTable *dc_tab, HuffmanTable *ac_tab, JpegBits *bits);