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
00030
00031
00032
00033
00034 #ifndef DJENCODE_H
00035 #define DJENCODE_H
00036
00037 #include "osconfig.h"
00038 #include "oftypes.h"
00039 #include "djutils.h"
00040 #include "dctypes.h"
00041
00042 class DJCodecParameter;
00043 class DJEncoderBaseline;
00044 class DJEncoderExtended;
00045 class DJEncoderLossless;
00046 class DJEncoderP14SV1;
00047 class DJEncoderProgressive;
00048 class DJEncoderSpectralSelection;
00049
00052 class DJEncoderRegistration
00053 {
00054 public:
00055
00084 static void registerCodecs(
00085 E_CompressionColorSpaceConversion pCompressionCSConversion = ECC_lossyYCbCr,
00086 E_UIDCreation pCreateSOPInstanceUID = EUC_default,
00087 OFBool pVerbose = OFFalse,
00088 OFBool pOptimizeHuffman = OFFalse,
00089 int pSmoothingFactor = 0,
00090 int pForcedBitDepth = 0,
00091 Uint32 pFragmentSize = 0,
00092 OFBool pCreateOffsetTable = OFTrue,
00093 E_SubSampling pSampleFactors = ESS_444,
00094 OFBool pWriteYBR422 = OFFalse,
00095 OFBool pConvertToSC = OFFalse,
00096 unsigned long pWindowType = 0,
00097 unsigned long pWindowParameter = 0,
00098 double pVoiCenter = 0.0,
00099 double pVoiWidth = 0.0,
00100 unsigned long pRoiLeft = 0,
00101 unsigned long pRoiTop = 0,
00102 unsigned long pRoiWidth = 0,
00103 unsigned long pRoiHeight = 0,
00104 OFBool pUsePixelValues = OFTrue,
00105 OFBool pUseModalityRescale = OFFalse);
00106
00112 static void cleanup();
00113
00114 private:
00115
00117 static OFBool registered;
00118
00120 static DJCodecParameter *cp;
00121
00123 static DJEncoderBaseline *encbas;
00124
00126 static DJEncoderExtended *encext;
00127
00129 static DJEncoderSpectralSelection *encsps;
00130
00132 static DJEncoderProgressive *encpro;
00133
00135 static DJEncoderP14SV1 *encsv1;
00136
00138 static DJEncoderLossless *enclol;
00139
00140 };
00141
00142 #endif
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156