GDCM  2.2.6
gdcmJPEG16Codec.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef GDCMJPEG16CODEC_H
15 #define GDCMJPEG16CODEC_H
16 
17 #include "gdcmJPEGCodec.h"
18 
19 namespace gdcm
20 {
21 
22 class JPEGInternals;
23 class ByteValue;
28 class JPEG16Codec : public JPEGCodec
29 {
30 public:
31  JPEG16Codec();
32  ~JPEG16Codec();
33 
34  bool DecodeByStreams(std::istream &is, std::ostream &os);
35  bool InternalCode(const char *input, unsigned long len, std::ostream &os);
36 
37  bool GetHeaderInfo(std::istream &is, TransferSyntax &ts);
38 
39 protected:
40  bool IsStateSuspension() const;
41  virtual bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen);
42 
43 private:
44  JPEGInternals *Internals;
45 };
46 
47 } // end namespace gdcm
48 
49 #endif //GDCMJPEG16CODEC_H
bool InternalCode(const char *input, unsigned long len, std::ostream &os)
bool IsStateSuspension() const
Class to do JPEG 16bits (lossless)
Definition: gdcmJPEG16Codec.h:28
Class to manipulate Transfer Syntax.
Definition: gdcmTransferSyntax.h:39
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts)
bool DecodeByStreams(std::istream &is, std::ostream &os)
virtual bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen)
JPEG codec Class to do JPEG (8bits, 12bits, 16bits lossy & lossless). It redispatch in between the di...
Definition: gdcmJPEGCodec.h:40

Generated on Sat Dec 21 2013 05:56:17 for GDCM by doxygen 1.8.5
SourceForge.net Logo