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 DJUTILS_H
00030 #define DJUTILS_H
00031
00032 #include "dcmtk/config/osconfig.h"
00033 #include "dcmtk/ofstd/ofcond.h"
00034 #include "dcmtk/dcmimgle/diutils.h"
00035 #include "dcmtk/oflog/oflog.h"
00036
00037
00038
00039
00040 OFLogger DCM_dcmjpegGetLogger();
00041
00042 #define DCMJPEG_TRACE(msg) OFLOG_TRACE(DCM_dcmjpegGetLogger(), msg)
00043 #define DCMJPEG_DEBUG(msg) OFLOG_DEBUG(DCM_dcmjpegGetLogger(), msg)
00044 #define DCMJPEG_INFO(msg) OFLOG_INFO(DCM_dcmjpegGetLogger(), msg)
00045 #define DCMJPEG_WARN(msg) OFLOG_WARN(DCM_dcmjpegGetLogger(), msg)
00046 #define DCMJPEG_ERROR(msg) OFLOG_ERROR(DCM_dcmjpegGetLogger(), msg)
00047 #define DCMJPEG_FATAL(msg) OFLOG_FATAL(DCM_dcmjpegGetLogger(), msg)
00048
00049
00050 class DcmItem;
00051
00054 enum EJ_Mode
00055 {
00057 EJM_baseline,
00058
00060 EJM_sequential,
00061
00063 EJM_spectralSelection,
00064
00066 EJM_progressive,
00067
00069 EJM_lossless
00070 };
00071
00075 enum E_SubSampling
00076 {
00078 ESS_444,
00080 ESS_422,
00082 ESS_411
00083 };
00084
00088 enum E_UIDCreation
00089 {
00093 EUC_default,
00094
00096 EUC_always,
00097
00099 EUC_never
00100 };
00101
00105 enum E_PlanarConfiguration
00106 {
00110 EPC_default,
00111
00113 EPC_colorByPixel,
00114
00116 EPC_colorByPlane
00117 };
00118
00123 enum E_CompressionColorSpaceConversion
00124 {
00129 ECC_lossyYCbCr,
00130
00134 ECC_lossyRGB,
00135
00138 ECC_monochrome
00139 };
00140
00145 enum E_DecompressionColorSpaceConversion
00146 {
00150 EDC_photometricInterpretation,
00151
00155 EDC_lossyOnly,
00156
00160 EDC_always,
00161
00164 EDC_never,
00165
00171 EDC_guessLossyOnly,
00172
00177 EDC_guess
00178 };
00179
00180
00181
00182
00184 extern const OFCondition EJ_Suspension;
00186 extern const OFCondition EJ_IJG8_FrameBufferTooSmall;
00188 extern const OFCondition EJ_IJG12_FrameBufferTooSmall;
00190 extern const OFCondition EJ_IJG16_FrameBufferTooSmall;
00192 extern const OFCondition EJ_UnsupportedPhotometricInterpretation;
00194 extern const OFCondition EJ_UnsupportedColorConversion;
00195
00196
00197 const unsigned short EJCode_IJG8_Compression = 0x0100;
00198 const unsigned short EJCode_IJG8_Decompression = 0x0101;
00199 const unsigned short EJCode_IJG12_Compression = 0x0102;
00200 const unsigned short EJCode_IJG12_Decompression = 0x0103;
00201 const unsigned short EJCode_IJG16_Compression = 0x0104;
00202 const unsigned short EJCode_IJG16_Decompression = 0x0105;
00203
00207 class DcmJpegHelper
00208 {
00209 public:
00210
00216 static EP_Interpretation getPhotometricInterpretation(DcmItem *item);
00217 };
00218
00219 #endif
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244