Main MRPT website > C++ reference for MRPT 1.9.9
jchuff.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 /* The legal range of a DCT coefficient is
11  * -1024 .. +1023 for 8-bit data;
12  * -16384 .. +16383 for 12-bit data.
13  * Hence the magnitude should always fit in 10 or 14 bits respectively.
14  */
15 
16 #if BITS_IN_JSAMPLE == 8
17 #define MAX_COEF_BITS 10
18 #else
19 #define MAX_COEF_BITS 14
20 #endif
21 
22 /* Derived data constructed for each Huffman table */
23 
24 typedef struct
25 {
26  unsigned int ehufco[256]; /* code for each symbol */
27  char ehufsi[256]; /* length of code for each symbol */
28  /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */
30 
31 /* Short forms of external names for systems with brain-damaged linkers. */
32 
33 #ifdef NEED_SHORT_EXTERNAL_NAMES
34 #define jpeg_make_c_derived_tbl jMkCDerived
35 #define jpeg_gen_optimal_table jGenOptTbl
36 #endif /* NEED_SHORT_EXTERNAL_NAMES */
37 
38 /* Expand a Huffman table definition into the derived format */
39 EXTERN(void)
41  (j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl** pdtbl));
42 
43 /* Generate an optimal table definition given the specified counts */
44 EXTERN(void)
46  (j_compress_ptr cinfo, JHUFF_TBL* htbl, long freq[]));
#define EXTERN(type)
Definition: jmorecfg.h:179
jpeg_make_c_derived_tbl(j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl)
Definition: jchuff.cpp:178
jpeg_gen_optimal_table(j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[])
Definition: jchuff.cpp:716
jpeg_make_c_derived_tbl JPP((j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl))



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019