GDCM 3.0.24
gdcmJPEG12Codec.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 GDCMJPEG12CODEC_H
15#define GDCMJPEG12CODEC_H
16
17#include "gdcmJPEGCodec.h"
18
19namespace gdcm
20{
21
22class JPEGInternals_12BIT;
23class ByteValue;
28class JPEG12Codec : public JPEGCodec
29{
30public:
32 ~JPEG12Codec() override;
33
34 bool DecodeByStreams(std::istream &is, std::ostream &os) override;
35 bool InternalCode(const char *input, unsigned long len, std::ostream &os) override;
36
37 bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override;
38
39protected:
40 bool IsStateSuspension() const override;
41 bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override;
42
43private:
44 JPEGInternals_12BIT *Internals;
45};
46
47} // end namespace gdcm
48
49#endif //GDCMJPEG12CODEC_H
Class to do JPEG 12bits (lossy & lossless)
Definition gdcmJPEG12Codec.h:29
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override
bool IsStateSuspension() const override
bool DecodeByStreams(std::istream &is, std::ostream &os) override
~JPEG12Codec() override
JPEG codec.
Definition gdcmJPEGCodec.h:41
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
Definition gdcmASN1.h:21