00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef DCMJPLS_DJLSUTILS_H
00030 #define DCMJPLS_DJLSUTILS_H
00031
00032 #include "dcmtk/config/osconfig.h"
00033 #include "dcmtk/ofstd/ofcond.h"
00034 #include "dcmtk/oflog/oflog.h"
00035
00036
00037
00038
00039 OFLogger DCM_dcmjplsGetLogger();
00040
00041 #define DCMJPLS_TRACE(msg) OFLOG_TRACE(DCM_dcmjplsGetLogger(), msg)
00042 #define DCMJPLS_DEBUG(msg) OFLOG_DEBUG(DCM_dcmjplsGetLogger(), msg)
00043 #define DCMJPLS_INFO(msg) OFLOG_INFO(DCM_dcmjplsGetLogger(), msg)
00044 #define DCMJPLS_WARN(msg) OFLOG_WARN(DCM_dcmjplsGetLogger(), msg)
00045 #define DCMJPLS_ERROR(msg) OFLOG_ERROR(DCM_dcmjplsGetLogger(), msg)
00046 #define DCMJPLS_FATAL(msg) OFLOG_FATAL(DCM_dcmjplsGetLogger(), msg)
00047
00048
00052 enum JLS_UIDCreation
00053 {
00057 EJLSUC_default,
00058
00060 EJLSUC_always,
00061
00063 EJLSUC_never
00064 };
00065
00069 enum JLS_PlanarConfiguration
00070 {
00072 EJLSPC_restore,
00073
00077 EJLSPC_auto,
00078
00080 EJLSPC_colorByPixel,
00081
00083 EJLSPC_colorByPlane
00084 };
00085
00089 enum JLS_CompressionBitDepth
00090 {
00092 EJLSBD_original,
00093
00097 EJLSBD_limit,
00098
00103 EJLSBD_force
00104 };
00105
00106
00107
00108
00110 extern const OFCondition EC_JLSUncompressedBufferTooSmall;
00111
00113 extern const OFCondition EC_JLSCompressedBufferTooSmall;
00114
00116 extern const OFCondition EC_JLSCodecUnsupportedImageType;
00117
00119 extern const OFCondition EC_JLSCodecInvalidParameters;
00120
00122 extern const OFCondition EC_JLSCodecUnsupportedValue;
00123
00125 extern const OFCondition EC_JLSInvalidCompressedData;
00126
00128 extern const OFCondition EC_JLSUnsupportedBitDepthForTransform;
00129
00131 extern const OFCondition EC_JLSUnsupportedColorTransform;
00132
00134 extern const OFCondition EC_JLSUnsupportedBitDepth;
00135
00137 extern const OFCondition EC_JLSCannotComputeNumberOfFragments;
00138
00140 extern const OFCondition EC_JLSImageDataMismatch;
00141
00143 extern const OFCondition EC_JLSUnsupportedPhotometricInterpretation;
00144
00146 extern const OFCondition EC_JLSUnsupportedPixelRepresentation;
00147
00149 extern const OFCondition EC_JLSUnsupportedImageType;
00150
00152 extern const OFCondition EC_JLSTooMuchCompressedData;
00153
00154 #endif
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195