00001 /* 00002 * 00003 * Copyright (C) 1997-2005, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmjpeg 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: singleton class that registers encoders for all supported JPEG processes. 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:59:32 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmjpeg/include/dcmtk/dcmjpeg/djencode.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.6 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DJENCODE_H 00035 #define DJENCODE_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/ofstd/oftypes.h" /* for OFBool */ 00039 #include "dcmtk/dcmjpeg/djutils.h" 00040 #include "dcmtk/dcmdata/dctypes.h" /* for Uint32 */ 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 00087 static void registerCodecs( 00088 E_CompressionColorSpaceConversion pCompressionCSConversion = ECC_lossyYCbCr, 00089 E_UIDCreation pCreateSOPInstanceUID = EUC_default, 00090 OFBool pVerbose = OFFalse, 00091 OFBool pOptimizeHuffman = OFFalse, 00092 int pSmoothingFactor = 0, 00093 int pForcedBitDepth = 0, 00094 Uint32 pFragmentSize = 0, 00095 OFBool pCreateOffsetTable = OFTrue, 00096 E_SubSampling pSampleFactors = ESS_444, 00097 OFBool pWriteYBR422 = OFFalse, 00098 OFBool pConvertToSC = OFFalse, 00099 unsigned long pWindowType = 0, 00100 unsigned long pWindowParameter = 0, 00101 double pVoiCenter = 0.0, 00102 double pVoiWidth = 0.0, 00103 unsigned long pRoiLeft = 0, 00104 unsigned long pRoiTop = 0, 00105 unsigned long pRoiWidth = 0, 00106 unsigned long pRoiHeight = 0, 00107 OFBool pUsePixelValues = OFTrue, 00108 OFBool pUseModalityRescale = OFFalse, 00109 OFBool pAcceptWrongPaletteTags = OFFalse, 00110 OFBool pAcrNemaCompatibility = OFFalse, 00111 OFBool pRealLossless = OFFalse); 00112 00118 static void cleanup(); 00119 00120 private: 00121 00123 static OFBool registered; 00124 00126 static DJCodecParameter *cp; 00127 00129 static DJEncoderBaseline *encbas; 00130 00132 static DJEncoderExtended *encext; 00133 00135 static DJEncoderSpectralSelection *encsps; 00136 00138 static DJEncoderProgressive *encpro; 00139 00141 static DJEncoderP14SV1 *encsv1; 00142 00144 static DJEncoderLossless *enclol; 00145 00146 }; 00147 00148 #endif 00149 00150 /* 00151 * CVS/RCS Log 00152 * $Log: djencode.h,v $ 00153 * Revision 1.6 2005/12/08 16:59:32 meichel 00154 * Changed include path schema for all DCMTK header files 00155 * 00156 * Revision 1.5 2005/11/29 15:57:05 onken 00157 * Added commandline options --accept-acr-nema and --accept-palettes 00158 * (same as in dcm2pnm) to dcmcjpeg and extended dcmjpeg to support 00159 * these options. Thanks to Gilles Mevel for suggestion. 00160 * 00161 * Revision 1.3 2005/11/29 08:50:34 onken 00162 * Added support for "true" lossless compression in dcmjpeg, that doesn't 00163 * use dcmimage classes, but compresses raw pixel data (8 and 16 bit) to 00164 * avoid losses in quality caused by color space conversions or modality 00165 * transformations etc. 00166 * Corresponding commandline option in dcmcjpeg (new default) 00167 * 00168 * Revision 1.2 2001/11/19 15:13:29 meichel 00169 * Introduced verbose mode in module dcmjpeg. If enabled, warning 00170 * messages from the IJG library are printed on ofConsole, otherwise 00171 * the library remains quiet. 00172 * 00173 * Revision 1.1 2001/11/13 15:56:27 meichel 00174 * Initial release of module dcmjpeg 00175 * 00176 * 00177 */