00001 /* 00002 * 00003 * Copyright (C) 1994-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmdata 00015 * 00016 * Author: Marco Eichelberg 00017 * 00018 * Purpose: codec parameter for RLE 00019 * 00020 * Last Update: $Author: joergr $ 00021 * Update Date: $Date: 2010-10-14 13:15:42 $ 00022 * CVS/RCS Revision: $Revision: 1.6 $ 00023 * Status: $State: Exp $ 00024 * 00025 * CVS/RCS Log at end of file 00026 * 00027 */ 00028 00029 #ifndef DCRLECP_H 00030 #define DCRLECP_H 00031 00032 #include "dcmtk/config/osconfig.h" 00033 #include "dcmtk/dcmdata/dccodec.h" /* for DcmCodecParameter */ 00034 00037 class DcmRLECodecParameter: public DcmCodecParameter 00038 { 00039 public: 00040 00052 DcmRLECodecParameter( 00053 OFBool pCreateSOPInstanceUID = OFFalse, 00054 Uint32 pFragmentSize = 0, 00055 OFBool pCreateOffsetTable = OFTrue, 00056 OFBool pConvertToSC = OFFalse, 00057 OFBool pReverseDecompressionByteOrder = OFFalse); 00058 00060 DcmRLECodecParameter(const DcmRLECodecParameter& arg); 00061 00063 virtual ~DcmRLECodecParameter(); 00064 00069 virtual DcmCodecParameter *clone() const; 00070 00074 virtual const char *className() const; 00075 00079 Uint32 getFragmentSize() const 00080 { 00081 return fragmentSize; 00082 } 00083 00087 OFBool getCreateOffsetTable() const 00088 { 00089 return createOffsetTable; 00090 } 00091 00095 OFBool getConvertToSC() const 00096 { 00097 return convertToSC; 00098 } 00099 00103 OFBool getUIDCreation() const 00104 { 00105 return createInstanceUID; 00106 } 00107 00111 OFBool getReverseDecompressionByteOrder() const 00112 { 00113 return reverseDecompressionByteOrder; 00114 } 00115 00116 00117 private: 00118 00120 DcmRLECodecParameter& operator=(const DcmRLECodecParameter&); 00121 00123 Uint32 fragmentSize; 00124 00126 OFBool createOffsetTable; 00127 00129 OFBool convertToSC; 00130 00132 OFBool createInstanceUID; 00133 00137 OFBool reverseDecompressionByteOrder; 00138 }; 00139 00140 00141 #endif 00142 00143 /* 00144 * CVS/RCS Log 00145 * $Log: dcrlecp.h,v $ 00146 * Revision 1.6 2010-10-14 13:15:42 joergr 00147 * Updated copyright header. Added reference to COPYRIGHT file. 00148 * 00149 * Revision 1.5 2009-11-04 09:58:07 uli 00150 * Switched to logging mechanism provided by the "new" oflog module 00151 * 00152 * Revision 1.4 2008-06-23 12:09:13 joergr 00153 * Fixed inconsistencies in Doxygen API documentation. 00154 * 00155 * Revision 1.3 2005/12/08 16:28:35 meichel 00156 * Changed include path schema for all DCMTK header files 00157 * 00158 * Revision 1.2 2005/07/26 17:08:33 meichel 00159 * Added option to RLE decoder that allows to correctly decode images with 00160 * incorrect byte order of byte segments (LSB instead of MSB). 00161 * 00162 * Revision 1.1 2002/06/06 14:52:35 meichel 00163 * Initial release of the new RLE codec classes 00164 * and the dcmcrle/dcmdrle tools in module dcmdata 00165 * 00166 * 00167 */