OFFIS DCMTK  Version 3.6.0
djencabs.h
1 /*
2  *
3  * Copyright (C) 1997-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmjpeg
15  *
16  * Author: Norbert Olges, Marco Eichelberg
17  *
18  * Purpose: abstract base class for compression classes
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:17:17 $
22  * CVS/RCS Revision: $Revision: 1.3 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DJENCABS_H
30 #define DJENCABS_H
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dctypes.h"
34 #include "dcmtk/dcmimgle/diutils.h" /* for EP_Interpretation */
35 #include "dcmtk/dcmjpeg/djutils.h" /* for enums */
36 
39 class DJEncoder
40 {
41 public:
42 
45  {
46  }
47 
49  virtual ~DJEncoder()
50  {
51  }
52 
65  virtual OFCondition encode(
66  Uint16 columns,
67  Uint16 rows,
68  EP_Interpretation interpr,
69  Uint16 samplesPerPixel,
70  Uint16 *image_buffer,
71  Uint8 *&to,
72  Uint32 &length) = 0;
73 
86  virtual OFCondition encode(
87  Uint16 columns,
88  Uint16 rows,
89  EP_Interpretation interpr,
90  Uint16 samplesPerPixel,
91  Uint8 *image_buffer,
92  Uint8 *&to,
93  Uint32 &length) = 0;
94 
97  virtual Uint16 bytesPerSample() const = 0;
98 
101  virtual Uint16 bitsPerSample() const = 0;
102 
103 };
104 
105 
106 #endif
107 
108 /*
109  * CVS/RCS Log
110  * $Log: djencabs.h,v $
111  * Revision 1.3 2010-10-14 13:17:17 joergr
112  * Updated copyright header. Added reference to COPYRIGHT file.
113  *
114  * Revision 1.2 2005-12-08 16:59:28 meichel
115  * Changed include path schema for all DCMTK header files
116  *
117  * Revision 1.1 2001/11/13 15:56:25 meichel
118  * Initial release of module dcmjpeg
119  *
120  *
121  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2