14#ifndef GDCMJPEGCODEC_H
15#define GDCMJPEGCODEC_H
69 const char *inbuffer,
size_t inlen);
74 unsigned int xmin,
unsigned int xmax,
75 unsigned int ymin,
unsigned int ymax,
76 unsigned int zmin,
unsigned int zmax,
86 bool AppendRowEncode( std::ostream & out,
const char * data,
size_t datalen )
override;
103 void SetupJPEGBitCodec(
int bit);
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
ImageCodec.
Definition gdcmImageCodec.h:31
ImageRegionReader.
Definition gdcmImageRegionReader.h:35
JPEG codec.
Definition gdcmJPEGCodec.h:41
void SetPixelFormat(PixelFormat const &pf) override
double GetQuality() const
bool Decode(DataElement const &is, DataElement &os) override
Decode.
void ComputeOffsetTable(bool b)
Compute the offset table:
bool IsFrameEncoder() override
int BitSample
Definition gdcmJPEGCodec.h:98
bool CanCode(TransferSyntax const &ts) const override
Return whether this coder support this transfer syntax (can code it)
bool StartEncode(std::ostream &) override
bool AppendRowEncode(std::ostream &out, const char *data, size_t datalen) override
bool CanDecode(TransferSyntax const &ts) const override
Return whether this decoder support this transfer syntax (can decode it)
bool AppendFrameEncode(std::ostream &out, const char *data, size_t datalen) override
int Quality
Definition gdcmJPEGCodec.h:100
bool StopEncode(std::ostream &) override
bool GetHeaderInfo(std::istream &is, TransferSyntax &ts) override
bool DecodeByStreams(std::istream &is, std::ostream &os) override
virtual bool IsStateSuspension() const
void SetQuality(double q)
void SetBitSample(int bit)
bool DecodeExtent(char *buffer, unsigned int xmin, unsigned int xmax, unsigned int ymin, unsigned int ymax, unsigned int zmin, unsigned int zmax, std::istream &is)
bool IsValid(PhotometricInterpretation const &pi) override
bool IsRowEncoder() override
bool Code(DataElement const &in, DataElement &out) override
Compress into JPEG.
ImageCodec * Clone() const override
virtual bool EncodeBuffer(std::ostream &out, const char *inbuffer, size_t inlen)
Class to represent an PhotometricInterpretation.
Definition gdcmPhotometricInterpretation.h:29
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
#define GDCM_EXPORT
Definition gdcmWin32.h:34