GDCM 3.2.7

gdcmJPEGTurboCodec.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 GDCMJPEGTURBOCODEC_H
15#define GDCMJPEGTURBOCODEC_H
16
17#include "gdcmJPEGCodec.h"
18
19 namespace gdcm
20{
21
22 class JPEGTurboInternals;
27 class GDCM_EXPORT JPEGTurboCodec : public JPEGCodec
28{
29 public:
30 JPEGTurboCodec();
31 ~JPEGTurboCodec() override;
32
33 bool DecodeByStreams(std::istream &is, std::ostream &os) override;
34 bool InternalCode(const char *input, unsigned long len, std::ostream &os) override;
35
36 bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override;
37
38 protected:
39 bool IsStateSuspension() const override;
40 bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override;
41
42 private:
43 JPEGTurboInternals *Internals;
44};
45
46} // end namespace gdcm
47
48#endif //GDCMJPEGTURBOCODEC_H
gdcm::JPEGCodec::JPEGCodec
JPEGCodec()
gdcm::JPEGTurboCodec::GetHeaderInfo
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
gdcm::JPEGTurboCodec::DecodeByStreams
bool DecodeByStreams(std::istream &is, std::ostream &os) override
gdcm::JPEGTurboCodec::JPEGTurboCodec
JPEGTurboCodec()
gdcm::JPEGTurboCodec::IsStateSuspension
bool IsStateSuspension() const override
gdcm::JPEGTurboCodec::InternalCode
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override
gdcm::JPEGTurboCodec::EncodeBuffer
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override
gdcm::JPEGTurboCodec::~JPEGTurboCodec
~JPEGTurboCodec() override
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmJPEGCodec.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21