00001 /* 00002 * 00003 * Copyright (C) 1994-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: dcmdata 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: decoder codec class for RLE 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:28:33 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcrleccd.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.3 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DCRLECCD_H 00035 #define DCRLECCD_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/ofstd/oftypes.h" 00039 #include "dcmtk/dcmdata/dccodec.h" /* for class DcmCodec */ 00040 00045 class DcmRLECodecDecoder: public DcmCodec 00046 { 00047 public: 00048 00050 DcmRLECodecDecoder(); 00051 00053 virtual ~DcmRLECodecDecoder(); 00054 00065 virtual OFCondition decode( 00066 const DcmRepresentationParameter * fromRepParam, 00067 DcmPixelSequence * pixSeq, 00068 DcmPolymorphOBOW& uncompressedPixelData, 00069 const DcmCodecParameter * cp, 00070 const DcmStack& objStack) const; 00071 00086 virtual OFCondition encode( 00087 const Uint16 * pixelData, 00088 const Uint32 length, 00089 const DcmRepresentationParameter * toRepParam, 00090 DcmPixelSequence * & pixSeq, 00091 const DcmCodecParameter *cp, 00092 DcmStack & objStack) const; 00093 00108 virtual OFCondition encode( 00109 const E_TransferSyntax fromRepType, 00110 const DcmRepresentationParameter * fromRepParam, 00111 DcmPixelSequence * fromPixSeq, 00112 const DcmRepresentationParameter * toRepParam, 00113 DcmPixelSequence * & toPixSeq, 00114 const DcmCodecParameter * cp, 00115 DcmStack & objStack) const; 00116 00124 virtual OFBool canChangeCoding( 00125 const E_TransferSyntax oldRepType, 00126 const E_TransferSyntax newRepType) const; 00127 00128 private: 00129 00131 DcmRLECodecDecoder(const DcmRLECodecDecoder&); 00132 00134 DcmRLECodecDecoder& operator=(const DcmRLECodecDecoder&); 00135 00136 }; 00137 00138 #endif 00139 00140 /* 00141 * CVS/RCS Log 00142 * $Log: dcrleccd.h,v $ 00143 * Revision 1.3 2005/12/08 16:28:33 meichel 00144 * Changed include path schema for all DCMTK header files 00145 * 00146 * Revision 1.2 2003/03/21 13:06:46 meichel 00147 * Minor code purifications for warnings reported by MSVC in Level 4 00148 * 00149 * Revision 1.1 2002/06/06 14:52:34 meichel 00150 * Initial release of the new RLE codec classes 00151 * and the dcmcrle/dcmdrle tools in module dcmdata 00152 * 00153 * 00154 */