1 /* libhpojip -- HP OfficeJet image-processing library. */
3 /* Copyright (C) 1995-2002 Hewlett-Packard Company
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * is provided AS IS, WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and
13 * NON-INFRINGEMENT. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20 * In addition, as a special exception, Hewlett-Packard Company
21 * gives permission to link the code of this program with any
22 * version of the OpenSSL library which is distributed under a
23 * license identical to that listed in the included LICENSE.OpenSSL
24 * file, and distribute linked combinations including the two.
25 * You must obey the GNU General Public License in all respects
26 * for all of the code used other than OpenSSL. If you modify
27 * this file, you may extend this exception to your version of the
28 * file, but you are not obligated to do so. If you do not wish to
29 * do so, delete this exception statement from your version.
32 /* Original author: Mark Overton and others.
34 * Ported to Linux by David Paschal.
37 /*____________________________________________________________________________
39 | xjpg_huf.h | Huffman tables for JPEG encoder and decoder |
40 |____________|_______________________________________________________________|
42 | Mark Overton, April 1996 |
43 |____________________________________________________________________________|
59 /* Tables used by encoder */
60 extern const enc_huff_elem_t enc_DC_table[17];
61 extern const enc_huff_elem_t enc_AC_table[256];
63 /* Tables used by decoder */
64 extern const dec_huff_elem_t dec_DC_table[13];
65 extern const BYTE dec_DC_table_index[512];
66 extern const dec_huff_elem_t dec_AC_main_table[37];
67 extern const BYTE dec_AC_main_table_index[4096];
68 extern const BYTE dec_AC_aux_table[128];
70 /* Tables from which Huffman tables are computed */
71 extern const BYTE LuminanceDCCounts[16];
72 extern const BYTE LuminanceDCValues[12];
73 extern const BYTE LuminanceACCounts[16];
74 extern const BYTE LuminanceACValues[162];
77 extern const BYTE ChrominanceDCCounts[16];
78 extern const BYTE ChrominanceDCValues[12];
79 extern const BYTE ChrominanceACCounts[16];
80 extern const BYTE ChrominanceACValues[162];