GDCM: gdcmJPEG16Codec.h Source File

GDCM 3.2.7

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
19namespace gdcm
20{
21
22class JPEGInternals_16BIT;
23class ByteValue;
28 class JPEG16Codec : public JPEGCodec
29{
30public:
31 JPEG16Codec();
32 ~JPEG16Codec() 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_16BIT *Internals;
45};
46
47} // end namespace gdcm
48
49#endif //GDCMJPEG16CODEC_H
gdcm::ByteValue
Class to represent binary value (array of bytes).
Definition gdcmByteValue.h:36
gdcm::JPEG16Codec::EncodeBuffer
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override
gdcm::JPEG16Codec::GetHeaderInfo
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
gdcm::JPEG16Codec::DecodeByStreams
bool DecodeByStreams(std::istream &is, std::ostream &os) override
gdcm::JPEG16Codec::JPEG16Codec
JPEG16Codec()
gdcm::JPEG16Codec::IsStateSuspension
bool IsStateSuspension() const override
gdcm::JPEG16Codec::InternalCode
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override
gdcm::JPEG16Codec::~JPEG16Codec
~JPEG16Codec() override
gdcm::JPEGCodec::JPEGCodec
JPEGCodec()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmJPEGCodec.h
gdcm
Definition gdcmASN1.h:21