43 void Print(std::ostream &)
const;
48 unsigned int GetNumberOfDimensions()
const;
49 void SetNumberOfDimensions(
unsigned int dim);
52 unsigned int GetPlanarConfiguration()
const;
54 void SetPlanarConfiguration(
unsigned int pc);
56 bool GetNeedByteSwap()
const
60 void SetNeedByteSwap(
bool b)
73 bool IsTransferSyntaxCompatible(
TransferSyntax const & ts )
const;
95 const unsigned int *GetDimensions()
const;
96 unsigned int GetDimension(
unsigned int idx)
const;
98 void SetColumns(
unsigned int col) { SetDimension(0,col); }
99 unsigned int GetColumns()
const {
return GetDimension(0); }
100 void SetRows(
unsigned int rows) { SetDimension(1,rows); }
101 unsigned int GetRows()
const {
return GetDimension(1); }
102 void SetDimensions(
const unsigned int dims[3]);
103 void SetDimension(
unsigned int idx,
unsigned int dim);
123 bool IsEmpty()
const {
return Dimensions.size() == 0; }
129 unsigned long GetBufferLength()
const;
132 bool GetBuffer(
char *buffer)
const;
135 bool IsLossy()
const;
141 bool TryRAWCodec(
char *buffer,
bool &lossyflag)
const;
142 bool TryJPEGCodec(
char *buffer,
bool &lossyflag)
const;
143 bool TryPVRGCodec(
char *buffer,
bool &lossyflag)
const;
144 bool TryKAKADUCodec(
char *buffer,
bool &lossyflag)
const;
145 bool TryJPEGLSCodec(
char *buffer,
bool &lossyflag)
const;
146 bool TryJPEG2000Codec(
char *buffer,
bool &lossyflag)
const;
147 bool TryRLECodec(
char *buffer,
bool &lossyflag)
const;
149 bool TryJPEGCodec2(std::ostream &os)
const;
150 bool TryJPEG2000Codec2(std::ostream &os)
const;
152 bool GetBuffer2(std::ostream &os)
const;
158 bool ComputeLossyFlag();
179 bool GetBufferInternal(
char *buffer,
bool &lossyflag)
const;
184 #endif //GDCMBITMAP_H