dcmjpeg/include/dcmtk/dcmjpeg/dipijpeg.h

00001 /*
00002  *
00003  *  Copyright (C) 2001-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module:  dcmjpeg
00015  *
00016  *  Author:  Joerg Riesmeier
00017  *
00018  *  Purpose: Implements JPEG interface for plugable image formats
00019  *
00020  *  Last Update:      $Author: joergr $
00021  *  Update Date:      $Date: 2010-10-14 13:17:16 $
00022  *  CVS/RCS Revision: $Revision: 1.5 $
00023  *  Status:           $State: Exp $
00024  *
00025  *  CVS/RCS Log at end of file
00026  *
00027  */
00028 
00029 
00030 #ifndef DIPIJPEG_H
00031 #define DIPIJPEG_H
00032 
00033 #include "dcmtk/config/osconfig.h"
00034 
00035 #include "dcmtk/dcmimgle/diplugin.h"
00036 #include "dcmtk/dcmjpeg/djutils.h"
00037 
00038 
00039 /*------------------------*
00040  *  forward declarations  *
00041  *------------------------*/
00042 
00043 class DiImage;
00044 
00045 
00046 /*---------------------*
00047  *  class declaration  *
00048  *---------------------*/
00049 
00052 class DiJPEGPlugin
00053   : public DiPluginFormat
00054 {
00055 
00056   public:
00057 
00060     DiJPEGPlugin();
00061 
00064     virtual ~DiJPEGPlugin();
00065 
00072     virtual int write(DiImage *image,
00073                       FILE *stream,
00074                       const unsigned long frame = 0) const;
00075 
00079     void setQuality(const unsigned int quality);
00080 
00087     void setSampling(const E_SubSampling sampling);
00088 
00093     void outputMessage(void *arg) const;
00094 
00099     static OFString getLibraryVersionString();
00100 
00101 
00102  private:
00103 
00105     unsigned int  Quality;
00107     E_SubSampling Sampling;
00108 };
00109 
00110 
00111 #endif
00112 
00113 
00114 /*
00115  *
00116  * CVS/RCS Log:
00117  * $Log: dipijpeg.h,v $
00118  * Revision 1.5  2010-10-14 13:17:16  joergr
00119  * Updated copyright header. Added reference to COPYRIGHT file.
00120  *
00121  * Revision 1.4  2005-12-08 16:59:10  meichel
00122  * Changed include path schema for all DCMTK header files
00123  *
00124  * Revision 1.3  2003/12/05 10:42:54  joergr
00125  * Removed leading underscore characters from preprocessor symbols (reserved
00126  * symbols). Updated copyright date where appropriate.
00127  *
00128  * Revision 1.2  2002/09/19 08:36:18  joergr
00129  * Added static method getLibraryVersionString().
00130  *
00131  * Revision 1.1  2001/11/27 18:25:39  joergr
00132  * Added support for plugable output formats in class DicomImage. First
00133  * implementation is JPEG.
00134  *
00135  *
00136  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1