4 * ---------------------------------------------------------------
6 * Lossless JPEG compression and decompression algorithms.
8 * ---------------------------------------------------------------
10 * It is based on the program originally named ljpgtopnm and pnmtoljpg.
11 * Major portions taken from the Independetn JPEG Group' software, and
12 * from the Cornell lossless JPEG code (the original copyright notices
13 * for those packages appears below).
15 * ---------------------------------------------------------------
17 * This is the main routine for the lossless JPEG decoder. Large
18 * parts are stolen from the IJG code
21 * $Id: jpegless.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
25 #ifndef _JPEGLOSSLESS_
26 #define _JPEGLOSSLESS_
28 #if defined(__cplusplus)
35 /* Global variables for lossless encoding process */
37 int psvSet[7]; /* the PSV (prediction selection value) set */
38 int numSelValue; /* number of PSVs in psvSet */
39 long inputFileBytes; /* the input file size in bytes */
40 long outputFileBytes; /* the output file size in bytes */
41 long totalHuffSym[7]; /* total bits of category symbols for each PSV */
42 long totalAddBits[7]; /* total bits of additional bits for each PSV */
43 int verbose; /* the verbose flag */
47 * read a JPEG lossless (8 or 16 bit) image in a file and decode it
49 GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
52 #if defined(__cplusplus)
56 #endif /* _JPEGLOSSLESS_ */