GDCM: gdcmJPEG12Codec.h Source File

GDCM 3.0.25

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;
28 class JPEG12Codec : public JPEGCodec
29{
30public:
31 JPEG12Codec();
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
gdcm::ByteValue
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
gdcm::JPEG12Codec::EncodeBuffer
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override
gdcm::JPEG12Codec::GetHeaderInfo
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
gdcm::JPEG12Codec::JPEG12Codec
JPEG12Codec()
gdcm::JPEG12Codec::InternalCode
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override
gdcm::JPEG12Codec::IsStateSuspension
bool IsStateSuspension() const override
gdcm::JPEG12Codec::DecodeByStreams
bool DecodeByStreams(std::istream &is, std::ostream &os) override
gdcm::JPEG12Codec::~JPEG12Codec
~JPEG12Codec() override
gdcm::JPEGCodec::JPEGCodec
JPEGCodec()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmJPEGCodec.h
gdcm
Definition gdcmASN1.h:21