OFFIS DCMTK  Version 3.6.0
djlsutil.h
1 /*
2  *
3  * Copyright (C) 1997-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmjpls
15  *
16  * Author: Martin Willkomm, Uli Schlachter
17  *
18  * Purpose: enumerations, error constants and helper functions for dcmjp2k
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:17:19 $
22  * CVS/RCS Revision: $Revision: 1.6 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DCMJPLS_DJLSUTILS_H
30 #define DCMJPLS_DJLSUTILS_H
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/ofcond.h" /* for class OFCondition */
34 #include "dcmtk/oflog/oflog.h"
35 
36 
37 // global definitions for logging mechanism provided by the oflog module
38 
39 OFLogger DCM_dcmjplsGetLogger();
40 
41 #define DCMJPLS_TRACE(msg) OFLOG_TRACE(DCM_dcmjplsGetLogger(), msg)
42 #define DCMJPLS_DEBUG(msg) OFLOG_DEBUG(DCM_dcmjplsGetLogger(), msg)
43 #define DCMJPLS_INFO(msg) OFLOG_INFO(DCM_dcmjplsGetLogger(), msg)
44 #define DCMJPLS_WARN(msg) OFLOG_WARN(DCM_dcmjplsGetLogger(), msg)
45 #define DCMJPLS_ERROR(msg) OFLOG_ERROR(DCM_dcmjplsGetLogger(), msg)
46 #define DCMJPLS_FATAL(msg) OFLOG_FATAL(DCM_dcmjplsGetLogger(), msg)
47 
48 
52 enum JLS_UIDCreation
53 {
57  EJLSUC_default,
58 
60  EJLSUC_always,
61 
63  EJLSUC_never
64 };
65 
69 enum JLS_PlanarConfiguration
70 {
72  EJLSPC_restore,
73 
77  EJLSPC_auto,
78 
80  EJLSPC_colorByPixel,
81 
83  EJLSPC_colorByPlane
84 };
85 
89 enum JLS_CompressionBitDepth
90 {
92  EJLSBD_original,
93 
97  EJLSBD_limit,
98 
103  EJLSBD_force
104 };
105 
106 
107 // CONDITION CONSTANTS
108 
110 extern const OFCondition EC_JLSUncompressedBufferTooSmall;
111 
113 extern const OFCondition EC_JLSCompressedBufferTooSmall;
114 
116 extern const OFCondition EC_JLSCodecUnsupportedImageType;
117 
119 extern const OFCondition EC_JLSCodecInvalidParameters;
120 
122 extern const OFCondition EC_JLSCodecUnsupportedValue;
123 
125 extern const OFCondition EC_JLSInvalidCompressedData;
126 
128 extern const OFCondition EC_JLSUnsupportedBitDepthForTransform;
129 
131 extern const OFCondition EC_JLSUnsupportedColorTransform;
132 
134 extern const OFCondition EC_JLSUnsupportedBitDepth;
135 
137 extern const OFCondition EC_JLSCannotComputeNumberOfFragments;
138 
140 extern const OFCondition EC_JLSImageDataMismatch;
141 
143 extern const OFCondition EC_JLSUnsupportedPhotometricInterpretation;
144 
146 extern const OFCondition EC_JLSUnsupportedPixelRepresentation;
147 
149 extern const OFCondition EC_JLSUnsupportedImageType;
150 
152 extern const OFCondition EC_JLSTooMuchCompressedData;
153 
154 #endif
155 
156 /*
157  * CVS/RCS Log:
158  * $Log: djlsutil.h,v $
159  * Revision 1.6 2010-10-14 13:17:19 joergr
160  * Updated copyright header. Added reference to COPYRIGHT file.
161  *
162  * Revision 1.5 2010-03-01 10:35:28 uli
163  * Renamed include guards to avoid name clash with e.g. dcmjpeg.
164  *
165  * Revision 1.4 2010-02-25 08:50:38 uli
166  * Updated to latest CharLS version.
167  *
168  * Revision 1.3 2009-10-07 13:16:47 uli
169  * Switched to logging mechanism provided by the "new" oflog module.
170  *
171  * Revision 1.2 2009-07-31 09:05:43 meichel
172  * Added more detailed error messages, minor code clean-up
173  *
174  * Revision 1.1 2009-07-29 14:46:46 meichel
175  * Initial release of module dcmjpls, a JPEG-LS codec for DCMTK based on CharLS
176  *
177  * Revision 1.2 2007-06-20 12:37:37 meichel
178  * Completed implementation of encoder, which now supports lossless
179  * "raw" and "cooked" and near-lossless "cooked" modes.
180  *
181  * Revision 1.1 2007/06/15 14:35:45 meichel
182  * Renamed CMake project and include directory from dcmjpgls to dcmjpls
183  *
184  * Revision 1.4 2007/06/15 10:39:15 meichel
185  * Completed implementation of decoder, which now correctly processes all
186  * of the NEMA JPEG-LS sample images, including fragmented frames.
187  *
188  * Revision 1.3 2007/06/14 12:36:14 meichel
189  * Further code clean-up. Updated doxygen comments.
190  *
191  * Revision 1.2 2007/06/13 16:41:07 meichel
192  * Code clean-up and removal of dead code
193  *
194  *
195  */


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