]> Creatis software - gdcm.git/blob - src/iddcmjpeg.h
*ENH: Added CharEvent to browse throught a multiframe volume, press any key it will...
[gdcm.git] / src / iddcmjpeg.h
1 #include <stdio.h>  // for FILE
2 #include <string>
3
4 #define BOOL int
5
6 typedef struct {
7         int HufSz;
8         int HufCode;
9         int HufVal;
10 } HuffTable;
11
12
13 typedef struct {
14         unsigned char precision;
15         int Himg;
16         int Wimg;
17         unsigned char NbComponent;
18         long SofTabPos;
19 } Sof;
20
21
22 typedef struct {
23         unsigned char CompCount;
24         unsigned char CompId;
25         unsigned char CompDc;
26         unsigned char SpectralSelStart;
27         unsigned char SpectralSelEnd;
28         unsigned char SuccessiveAp;
29         unsigned char Sospttrans;
30         long SofTabPos;
31 } Sos;
32
33
34 typedef struct  {
35         unsigned long RestartInterval;
36         BOOL MarkerFound;
37         int MaxHuffVal;
38         int MaxHuffSz;
39         int* DataImg;
40         unsigned char RawDHT[256];
41         unsigned char ValCurByte;
42         unsigned char PosCurBit;
43         FILE* infp;
44         unsigned char RawDHTstart[256];
45         Sof lSof;
46         Sos lSos;
47         HuffTable lHuffTable[256];      
48 } ClbJpeg;
49
50
51 ClbJpeg*_IdDcmJpegRead (FILE *);
52 void    _IdDcmJpegFree (ClbJpeg *);
53
54
55 //
56         
57         
58
59
60