]> Creatis software - gdcm.git/blob - src/jpeg/ljpg/jpegless.h
*FIX: only one function is being exported for now ! You should use GLOBAL(return...
[gdcm.git] / src / jpeg / ljpg / jpegless.h
1 /*
2  * JPEGLess.h
3  *
4  * ---------------------------------------------------------------
5  *
6  * Lossless JPEG compression and decompression algorithms.
7  *
8  * ---------------------------------------------------------------
9  *
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).
14  *
15  * ---------------------------------------------------------------
16  *
17  * This is the main routine for the lossless JPEG decoder.  Large
18  * parts are stolen from the IJG code
19  */
20 /*
21  * $Id: jpegless.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
22  */
23 #include "jpeg.h"
24
25 #ifndef _JPEGLOSSLESS_
26 #define _JPEGLOSSLESS_
27
28 #if defined(__cplusplus)
29 extern "C"
30 {
31 #endif
32
33
34
35 /* Global variables for lossless encoding process */
36
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                            */
44
45
46 /*
47  * read a JPEG lossless (8 or 16 bit) image in a file and decode it
48  */
49 GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
50
51
52 #if defined(__cplusplus)
53 }
54 #endif
55
56 #endif /* _JPEGLOSSLESS_ */
57