00001 /* 00002 * 00003 * Copyright (C) 1997-2001, 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: Norbert Olges, Marco Eichelberg 00021 * 00022 * Purpose: abstract base class for decompression classes 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2001/11/13 15:56:18 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmjpeg/include/djdecabs.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.1 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DJDECABS_H 00035 #define DJDECABS_H 00036 00037 #include "osconfig.h" 00038 #include "dctypes.h" 00039 #include "djutils.h" /* for enums */ 00040 #include "diutils.h" /* for EP_Interpretation */ 00041 00047 class DJDecoder 00048 { 00049 public: 00050 00052 DJDecoder() 00053 { 00054 } 00055 00057 virtual ~DJDecoder() 00058 { 00059 } 00060 00065 virtual OFCondition init() = 0; 00066 00078 virtual OFCondition decode( 00079 Uint8 *compressedFrameBuffer, 00080 Uint32 compressedFrameBufferSize, 00081 Uint8 *uncompressedFrameBuffer, 00082 Uint32 uncompressedFrameBufferSize) = 0; 00083 00086 virtual Uint16 bytesPerSample() const = 0; 00087 00091 virtual EP_Interpretation getDecompressedColorModel() const = 0; 00092 00093 }; 00094 00095 #endif 00096 00097 /* 00098 * CVS/RCS Log 00099 * $Log: djdecabs.h,v $ 00100 * Revision 1.1 2001/11/13 15:56:18 meichel 00101 * Initial release of module dcmjpeg 00102 * 00103 * 00104 */