Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

dipijpeg.h

00001 /*
00002  *
00003  *  Copyright (C) 2001-2003, 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:  Joerg Riesmeier
00021  *
00022  *  Purpose: Implements JPEG interface for plugable image formats
00023  *
00024  *  Last Update:      $Author: joergr $
00025  *  Update Date:      $Date: 2003/12/05 10:42:54 $
00026  *  CVS/RCS Revision: $Revision: 1.3 $
00027  *  Status:           $State: Exp $
00028  *
00029  *  CVS/RCS Log at end of file
00030  *
00031  */
00032 
00033 
00034 #ifndef DIPIJPEG_H
00035 #define DIPIJPEG_H
00036 
00037 #include "osconfig.h"
00038 
00039 #include "diplugin.h"
00040 #include "djutils.h"
00041 
00042 
00043 /*------------------------*
00044  *  forward declarations  *
00045  *------------------------*/
00046 
00047 class DiImage;
00048 
00049 
00050 /*---------------------*
00051  *  class declaration  *
00052  *---------------------*/
00053 
00056 class DiJPEGPlugin
00057   : public DiPluginFormat
00058 {
00059 
00060   public:
00061 
00064     DiJPEGPlugin();
00065 
00068     virtual ~DiJPEGPlugin();
00069 
00076     virtual int write(DiImage *image,
00077                       FILE *stream,
00078                       const unsigned long frame = 0) const;
00079 
00083     void setQuality(const unsigned int quality);
00084 
00091     void setSampling(const E_SubSampling sampling);
00092 
00097     void outputMessage(void *arg) const;
00098 
00103     static OFString getLibraryVersionString();
00104 
00105 
00106  private:
00107 
00109     unsigned int  Quality;
00111     E_SubSampling Sampling;
00112 };
00113 
00114 
00115 #endif
00116 
00117 
00118 /*
00119  *
00120  * CVS/RCS Log:
00121  * $Log: dipijpeg.h,v $
00122  * Revision 1.3  2003/12/05 10:42:54  joergr
00123  * Removed leading underscore characters from preprocessor symbols (reserved
00124  * symbols). Updated copyright date where appropriate.
00125  *
00126  * Revision 1.2  2002/09/19 08:36:18  joergr
00127  * Added static method getLibraryVersionString().
00128  *
00129  * Revision 1.1  2001/11/27 18:25:39  joergr
00130  * Added support for plugable output formats in class DicomImage. First
00131  * implementation is JPEG.
00132  *
00133  *
00134  */


Generated on 8 Dec 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.9.1