Logo Search packages:      
Sourcecode: gdcm version File versions

gdcm::JPEG8Codec Class Reference

#include <gdcmJPEG8Codec.h>

Inheritance diagram for gdcm::JPEG8Codec:

gdcm::JPEGCodec gdcm::ImageCodec gdcm::Codec gdcm::Coder gdcm::Decoder

List of all members.


Detailed Description

Class to do JPEG 8bits (lossy & lossless).

Note:
internal class

Definition at line 29 of file gdcmJPEG8Codec.h.


Public Member Functions

bool CanCode (TransferSyntax const &ts) const
 Return whether this coder support this transfer syntax (can code it).
bool CanDecode (TransferSyntax const &ts) const
 Return whether this decoder support this transfer syntax (can decode it).
bool Code (DataElement const &in, DataElement &out)
 Compress into JPEG.
void ComputeOffsetTable (bool b)
 Compute the offset table:.
bool Decode (DataElement const &is, DataElement &os)
 Decode.
bool Decode (std::istream &is, std::ostream &os)
const unsigned int * GetDimensions () const
bool GetHeaderInfo (std::istream &is, TransferSyntax &ts)
const LookupTableGetLUT () const
bool GetNeedByteSwap () const
const PhotometricInterpretationGetPhotometricInterpretation () const
const PixelFormatGetPixelFormat () const
unsigned int GetPlanarConfiguration () const
bool InternalCode (const char *input, unsigned long len, std::ostream &os)
void SetDimensions (const unsigned int *d)
void SetLUT (LookupTable const &lut)
void SetNeedByteSwap (bool b)
void SetNeedOverlayCleanup (bool b)
void SetNumberOfDimensions (unsigned int dim)
void SetPhotometricInterpretation (PhotometricInterpretation const &pi)
void SetPixelFormat (PixelFormat const &pf)
void SetPlanarConfiguration (unsigned int pc)

Protected Types

typedef SmartPointer< LookupTableLUTPtr

Protected Member Functions

bool DoByteSwap (std::istream &is, std::ostream &os)
bool DoInvertMonochrome (std::istream &is, std::ostream &os)
bool DoOverlayCleanup (std::istream &is, std::ostream &os)
bool DoPaddedCompositePixelCode (std::istream &is, std::ostream &os)
bool DoPlanarConfiguration (std::istream &is, std::ostream &os)
bool DoSimpleCopy (std::istream &is, std::ostream &os)
bool DoYBR (std::istream &is, std::ostream &os)
void SetBitSample (int bit)

Protected Attributes

int BitSample
unsigned int Dimensions [3]
LUTPtr LUT
bool NeedByteSwap
bool NeedOverlayCleanup
unsigned int NumberOfDimensions
PixelFormat PF
PhotometricInterpretation PI
unsigned int PlanarConfiguration
bool RequestPaddedCompositePixelCode
bool RequestPlanarConfiguration

Private Attributes

JPEGInternals * Internals

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index