gdcmJPEG8Codec.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMJPEG8CODEC_H
#define GDCMJPEG8CODEC_H
#include "gdcmJPEGCodec.h"
namespace gdcm
{
class JPEGInternals_8BIT;
class ByteValue;
class JPEG8Codec : public JPEGCodec
{
public:
JPEG8Codec();
~JPEG8Codec() override;
bool DecodeByStreams(std::istream &is, std::ostream &os) override;
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override;
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override;
protected:
bool IsStateSuspension() const override;
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override;
private:
JPEGInternals_8BIT *Internals;
};
} // end namespace gdcm
#endif //GDCMJPEG8CODEC_H
gdcm::ByteValue
Class to represent binary value (array of bytes).
Definition gdcmByteValue.h:35
gdcm::JPEG8Codec::~JPEG8Codec
~JPEG8Codec() override
gdcm::JPEG8Codec::DecodeByStreams
bool DecodeByStreams(std::istream &is, std::ostream &os) override
gdcm::JPEG8Codec::IsStateSuspension
bool IsStateSuspension() const override
gdcm::JPEG8Codec::GetHeaderInfo
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
gdcm::JPEG8Codec::EncodeBuffer
bool EncodeBuffer(std::ostream &os, const char *data, size_t datalen) override
gdcm::JPEG8Codec::InternalCode
bool InternalCode(const char *input, unsigned long len, std::ostream &os) override
gdcm::JPEG8Codec::JPEG8Codec
JPEG8Codec()
gdcm::JPEGCodec::JPEGCodec
JPEGCodec()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmJPEGCodec.h
gdcm
Definition gdcmASN1.h:21