Main MRPT website > C++ reference for MRPT 1.5.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  unsigned int ehufco[256]; /* code for each symbol */
26  char ehufsi[256]; /* length of code for each symbol */
27  /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */
29 
30 /* Short forms of external names for systems with brain-damaged linkers. */
31 
32 #ifdef NEED_SHORT_EXTERNAL_NAMES
33 #define jpeg_make_c_derived_tbl jMkCDerived
34 #define jpeg_gen_optimal_table jGenOptTbl
35 #endif /* NEED_SHORT_EXTERNAL_NAMES */
36 
37 /* Expand a Huffman table definition into the derived format */
39  JPP((j_compress_ptr cinfo, boolean isDC, int tblno,
40  c_derived_tbl ** pdtbl));
41 
42 /* Generate an optimal table definition given the specified counts */
44  JPP((j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[]));
boolean int c_derived_tbl ** pdtbl
Definition: jchuff.h:39
jpeg_make_c_derived_tbl(j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl)
Definition: jchuff.cpp:172
jpeg_gen_optimal_table(j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[])
Definition: jchuff.cpp:698
JHUFF_TBL long freq[]
Definition: jchuff.h:44
#define JPP(arglist)
Definition: mrpt_jpeglib.h:815
EXTERN(void) jpeg_make_c_derived_tbl JPP((j_compress_ptr cinfo
JHUFF_TBL * htbl
Definition: jchuff.h:44
boolean int tblno
Definition: jchuff.h:39
boolean isDC
Definition: jchuff.h:39



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020