71 void ExtractTile(
CEncoder& encoder,
bool tile =
false, UINT32 tileX = 0, UINT32 tileY = 0) THROW_;
81 void PlaceTile(
CDecoder& decoder,
int quantParam,
bool tile =
false, UINT32 tileX = 0, UINT32 tileY = 0) THROW_;
101 void SetData(UINT32 pos, DataT v) { ASSERT(pos < m_size); m_data[pos] = v; }
112 DataT
GetData(UINT32 pos)
const { ASSERT(pos < m_size);
return m_data[pos]; }
136 #ifdef __PGFROISUPPORT__
137 void IncBuffRow(UINT32 pos) { m_dataPos = pos + BufferWidth(); }
145 void Initialize(UINT32 width, UINT32 height,
int level, Orientation orient);
146 void WriteBuffer(DataT val) { ASSERT(m_dataPos < m_size); m_data[m_dataPos++] = val; }
147 void SetBuffer(DataT* b) { ASSERT(b); m_data = b; }
148 DataT ReadBuffer() { ASSERT(m_dataPos < m_size);
return m_data[m_dataPos++]; }
150 UINT32 GetBuffPos()
const {
return m_dataPos; }
152 #ifdef __PGFROISUPPORT__
153 UINT32 BufferWidth()
const {
return m_ROI.
Width(); }
154 void TilePosition(UINT32 tileX, UINT32 tileY, UINT32& left, UINT32& top, UINT32& w, UINT32& h)
const;
156 void SetNTiles(UINT32 nTiles) { m_nTiles = nTiles; }
157 void SetROI(
const PGFRect& roi) { ASSERT(roi.right <= m_width); ASSERT(roi.bottom <= m_height); m_ROI = roi; }
158 void InitBuffPos(UINT32 left = 0, UINT32 top = 0) { m_dataPos = top*BufferWidth() + left; ASSERT(m_dataPos < m_size); }
160 void InitBuffPos() { m_dataPos = 0; }
168 Orientation m_orientation;
172 #ifdef __PGFROISUPPORT__
178 #endif //PGF_SUBBAND_H
~CSubband()
Destructor.
Definition: Subband.cpp:51
PGF decoder.
Definition: Decoder.h:46
void FreeMemory()
Delete the memory buffer of this subband.
Definition: Subband.cpp:101
void Quantize(int quantParam)
Definition: Subband.cpp:112
PGF encoder.
Definition: Encoder.h:46
void Dequantize(int quantParam)
Definition: Subband.cpp:154
void PlaceTile(CDecoder &decoder, int quantParam, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_
Definition: Subband.cpp:202
Wavelet channel class.
Definition: Subband.h:42
void ExtractTile(CEncoder &encoder, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_
Definition: Subband.cpp:177
void IncBuffRow(UINT32 pos)
Definition: Subband.h:140
Orientation GetOrientation() const
Definition: Subband.h:134
CSubband()
Standard constructor.
Definition: Subband.cpp:35
DataT * GetBuffer()
Definition: Subband.h:106
int GetLevel() const
Definition: Subband.h:117
DataT GetData(UINT32 pos) const
Definition: Subband.h:112
int GetHeight() const
Definition: Subband.h:122
int GetWidth() const
Definition: Subband.h:127
bool AllocMemory()
Definition: Subband.cpp:77
ROI indices.
Definition: WaveletTransform.h:45
void SetData(UINT32 pos, DataT v)
Definition: Subband.h:101
UINT32 Width() const
Definition: PGFtypes.h:205
Rectangle.
Definition: PGFtypes.h:194