14#ifndef GDCMIMAGECODEC_H
15#define GDCMIMAGECODEC_H
54 return PlanarConfiguration;
58 assert( pc == 0 || pc == 1 );
59 PlanarConfiguration = pc;
87 NeedOverlayCleanup = b;
118 virtual bool AppendRowEncode( std::ostream & out,
const char * data,
size_t datalen );
134 unsigned int Dimensions[3];
140 bool DoYBR(std::istream &is_, std::ostream &os);
Codec class.
Definition gdcmCodec.h:27
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
FileChangeTransferSyntax.
Definition gdcmFileChangeTransferSyntax.h:40
ImageChangePhotometricInterpretation class.
Definition gdcmImageChangePhotometricInterpretation.h:30
ImageCodec.
Definition gdcmImageCodec.h:31
virtual bool StartEncode(std::ostream &os)
void SetNeedOverlayCleanup(bool b)
Definition gdcmImageCodec.h:85
bool DoPlanarConfiguration(std::istream &is_, std::ostream &os)
virtual bool GetHeaderInfo(std::istream &is_, TransferSyntax &ts)
void SetLossyFlag(bool l)
bool DoOverlayCleanup(std::istream &is_, std::ostream &os)
bool DecodeByStreams(std::istream &is_, std::ostream &os) override
PhotometricInterpretation PI
Definition gdcmImageCodec.h:127
virtual bool IsValid(PhotometricInterpretation const &pi)
SmartPointer< LookupTable > LUTPtr
Definition gdcmImageCodec.h:132
void SetDimensions(const std::vector< unsigned int > &d)
void SetDimensions(const unsigned int d[3])
void SetNumberOfDimensions(unsigned int dim)
PixelFormat PF
Definition gdcmImageCodec.h:128
unsigned int NumberOfDimensions
Definition gdcmImageCodec.h:135
bool RequestPaddedCompositePixelCode
Definition gdcmImageCodec.h:124
const PhotometricInterpretation & GetPhotometricInterpretation() const
bool DoYBR(std::istream &is_, std::ostream &os)
bool GetLossyFlag() const
const unsigned int * GetDimensions() const
Definition gdcmImageCodec.h:100
bool DoInvertMonochrome(std::istream &is_, std::ostream &os)
bool DoYBRFull422(std::istream &is_, std::ostream &os)
const PixelFormat & GetPixelFormat() const
Definition gdcmImageCodec.h:66
virtual bool AppendRowEncode(std::ostream &out, const char *data, size_t datalen)
bool CanCode(TransferSyntax const &) const override
Return whether this coder support this transfer syntax (can code it)
Definition gdcmImageCodec.h:36
unsigned int GetNumberOfDimensions() const
unsigned int PlanarConfiguration
Definition gdcmImageCodec.h:126
void SetPlanarConfiguration(unsigned int pc)
Definition gdcmImageCodec.h:56
virtual void SetPixelFormat(PixelFormat const &pf)
Definition gdcmImageCodec.h:70
virtual bool AppendFrameEncode(std::ostream &out, const char *data, size_t datalen)
bool DoByteSwap(std::istream &is_, std::ostream &os)
bool RequestPlanarConfiguration
Definition gdcmImageCodec.h:123
bool CleanupUnusedBits(char *data, size_t datalen)
bool DoSimpleCopy(std::istream &is_, std::ostream &os)
virtual bool IsRowEncoder()
unsigned int GetPlanarConfiguration() const
Definition gdcmImageCodec.h:52
bool NeedOverlayCleanup
Definition gdcmImageCodec.h:130
PixelFormat & GetPixelFormat()
Definition gdcmImageCodec.h:62
virtual bool StopEncode(std::ostream &os)
const LookupTable & GetLUT() const
Definition gdcmImageCodec.h:93
bool NeedByteSwap
Definition gdcmImageCodec.h:129
void SetNeedByteSwap(bool b)
Definition gdcmImageCodec.h:81
virtual ImageCodec * Clone() const =0
bool Decode(DataElement const &is_, DataElement &os) override
Decode.
virtual bool IsFrameEncoder()
void SetLUT(LookupTable const &lut)
Definition gdcmImageCodec.h:89
bool GetNeedByteSwap() const
Definition gdcmImageCodec.h:77
bool LossyFlag
Definition gdcmImageCodec.h:136
bool DoPaddedCompositePixelCode(std::istream &is_, std::ostream &os)
bool CanDecode(TransferSyntax const &) const override
Return whether this decoder support this transfer syntax (can decode it)
Definition gdcmImageCodec.h:37
void SetPhotometricInterpretation(PhotometricInterpretation const &pi)
LUTPtr LUT
Definition gdcmImageCodec.h:133
LookupTable class.
Definition gdcmLookupTable.h:30
Class to represent an PhotometricInterpretation.
Definition gdcmPhotometricInterpretation.h:29
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
#define GDCM_EXPORT
Definition gdcmWin32.h:34