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: Marco Eichelberg, Norbert Olges 00021 * 00022 * Purpose: Codec class for encoding JPEG Baseline (lossy, 8-bit) 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:59:29 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmjpeg/include/dcmtk/dcmjpeg/djencbas.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 DJENCBAS_H 00035 #define DJENCBAS_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/dcmjpeg/djcodece.h" /* for class DJCodecEncoder */ 00039 00040 00043 class DJEncoderBaseline : public DJCodecEncoder 00044 { 00045 public: 00046 00048 DJEncoderBaseline(); 00049 00051 virtual ~DJEncoderBaseline(); 00052 00057 virtual E_TransferSyntax supportedTransferSyntax() const; 00058 00059 private: 00060 00065 virtual OFBool isLosslessProcess() const; 00066 00077 virtual void createDerivationDescription( 00078 const DcmRepresentationParameter * toRepParam, 00079 const DJCodecParameter *cp, 00080 Uint8 bitsPerSample, 00081 double ratio, 00082 OFString& derivationDescription) const; 00083 00091 virtual DJEncoder *createEncoderInstance( 00092 const DcmRepresentationParameter * toRepParam, 00093 const DJCodecParameter *cp, 00094 Uint8 bitsPerSample) const; 00095 00096 }; 00097 00098 #endif 00099 00100 /* 00101 * CVS/RCS Log 00102 * $Log: djencbas.h,v $ 00103 * Revision 1.2 2005/12/08 16:59:29 meichel 00104 * Changed include path schema for all DCMTK header files 00105 * 00106 * Revision 1.1 2001/11/13 15:56:25 meichel 00107 * Initial release of module dcmjpeg 00108 * 00109 * 00110 */