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: Norbert Olges, Marco Eichelberg 00021 * 00022 * Purpose: abstract base class for decompression classes 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:59:14 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmjpeg/include/dcmtk/dcmjpeg/djdecabs.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 DJDECABS_H 00035 #define DJDECABS_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/dcmdata/dctypes.h" 00039 #include "dcmtk/dcmjpeg/djutils.h" /* for enums */ 00040 #include "dcmtk/dcmimgle/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 00079 virtual OFCondition decode( 00080 Uint8 *compressedFrameBuffer, 00081 Uint32 compressedFrameBufferSize, 00082 Uint8 *uncompressedFrameBuffer, 00083 Uint32 uncompressedFrameBufferSize, 00084 OFBool isSigned) = 0; 00085 00088 virtual Uint16 bytesPerSample() const = 0; 00089 00093 virtual EP_Interpretation getDecompressedColorModel() const = 0; 00094 00095 }; 00096 00097 #endif 00098 00099 /* 00100 * CVS/RCS Log 00101 * $Log: djdecabs.h,v $ 00102 * Revision 1.3 2005/12/08 16:59:14 meichel 00103 * Changed include path schema for all DCMTK header files 00104 * 00105 * Revision 1.2 2005/11/30 14:12:27 onken 00106 * Added decode() parameter denoting whether input is signed or unsigned 00107 * 00108 * Revision 1.1 2001/11/13 15:56:18 meichel 00109 * Initial release of module dcmjpeg 00110 * 00111 * 00112 */