OFFIS DCMTK  Version 3.6.0
pubtypes.h
1 //
2 // (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
3 //
4 #ifndef CHARLS_PUBLICTYPES
5 #define CHARLS_PUBLICTYPES
6 
7 #include "config.h"
8 
9 enum JLS_ERROR
10 {
11  OK = 0,
12  InvalidJlsParameters,
13  ParameterValueNotSupported,
14  UncompressedBufferTooSmall,
15  CompressedBufferTooSmall,
16  InvalidCompressedData,
17  TooMuchCompressedData,
18  ImageTypeNotSupported,
19  UnsupportedBitDepthForTransform,
20  UnsupportedColorTransform
21 };
22 
23 
24 enum interleavemode
25 {
26  ILV_NONE = 0,
27  ILV_LINE = 1,
28  ILV_SAMPLE = 2
29 };
30 
31 
33 {
34  int MAXVAL;
35  int T1;
36  int T2;
37  int T3;
38  int RESET;
39 };
40 
41 
42 struct JlsRect
43 {
44  int X, Y;
45  int Width, Height;
46 };
47 
48 
50 {
51  int Ver;
52  char units;
53  int XDensity;
54  int YDensity;
55  short Xthumb;
56  short Ythumb;
57  void* pdataThumbnail; // user must set buffer which size is Xthumb*Ythumb*3(RGB) before JpegLsDecode()
58 };
59 
60 
62 {
63  int width;
64  int height;
65  int bitspersample;
66  int bytesperline; // for [source (at encoding)][decoded (at decoding)] pixel image in user buffer
67  int components;
68  int allowedlossyerror;
69  enum interleavemode ilv;
70  int colorTransform;
71  char outputBgr;
72  struct JlsCustomParameters custom;
73  struct JfifParameters jfif;
74 };
75 
76 #endif


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2