djencabs.h

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 compression classes
00023  *
00024  *  Last Update:      $Author: meichel $
00025  *  Update Date:      $Date: 2005/12/08 16:59:28 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmjpeg/include/dcmtk/dcmjpeg/djencabs.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.2 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef DJENCABS_H
00035 #define DJENCABS_H
00036 
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/dcmdata/dctypes.h"
00039 #include "dcmtk/dcmimgle/diutils.h" /* for EP_Interpretation */
00040 #include "dcmtk/dcmjpeg/djutils.h" /* for enums */
00041 
00044 class DJEncoder
00045 {
00046 public: 
00047 
00049   DJEncoder()
00050   {
00051   }
00052 
00054   virtual ~DJEncoder()
00055   {
00056   }
00057 
00070   virtual OFCondition encode(
00071     Uint16 columns,
00072     Uint16 rows,
00073     EP_Interpretation interpr,
00074     Uint16 samplesPerPixel,
00075     Uint16 *image_buffer,
00076     Uint8 *&to,
00077     Uint32 &length) = 0;
00078 
00091   virtual OFCondition encode(
00092     Uint16 columns,
00093     Uint16 rows,
00094     EP_Interpretation interpr,
00095     Uint16 samplesPerPixel,
00096     Uint8 *image_buffer,
00097     Uint8 *&to,
00098     Uint32 &length) = 0;
00099 
00102   virtual Uint16 bytesPerSample() const = 0;
00103 
00106   virtual Uint16 bitsPerSample() const = 0;
00107 
00108 };
00109 
00110 
00111 #endif
00112 
00113 /*
00114  * CVS/RCS Log
00115  * $Log: djencabs.h,v $
00116  * Revision 1.2  2005/12/08 16:59:28  meichel
00117  * Changed include path schema for all DCMTK header files
00118  *
00119  * Revision 1.1  2001/11/13 15:56:25  meichel
00120  * Initial release of module dcmjpeg
00121  *
00122  *
00123  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5