libpgf
6.12.24
PGF - Progressive Graphics File
|
#include <Subband.h>
Public Member Functions | |
*Standard constructor * | CSubband () |
*Destructor * | ~CSubband () |
*Allocate a memory buffer to store all wavelet coefficients of this subband *return True if the allocation did work without any problems *bool | AllocMemory () |
*Delete the memory buffer of this subband *void | FreeMemory () |
*Extracts a rectangular subregion of this subband *Write wavelet coefficients into buffer *It might throw an IOException *param encoder An encoder instance *param tile True if just a rectangular region is false if the entire subband is extracted *param tileX Tile index in x direction *param tileY Tile index in y direction *void | ExtractTile (CEncoder &encoder, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
*Decoding and dequantization of this subband *It might throw an IOException *param decoder A decoder instance *param quantParam Dequantization value *param tile True if just a rectangular region is false if the entire subband is placed *param tileX Tile index in x direction *param tileY Tile index in y direction *void | PlaceTile (CDecoder &decoder, int quantParam, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
*Perform subband quantization with given quantization parameter *A scalar | quantization (with dead-zone) is used.A large quantization value *results in strong quantization and therefore in big quality loss.*@param quantParam A quantization parameter(larger or equal to 0)*/void Quantize(int quantParam) |
*Perform subband dequantization with given quantization parameter *A scalar | quantization (with dead-zone) is used.A large quantization value *results in strong quantization and therefore in big quality loss.*@param quantParam A quantization parameter(larger or equal to 0)*/void Dequantize(int quantParam) |
*Store wavelet coefficient in subband at given position *param pos A subband | position (>=0)*@param v A wavelet coefficient */void SetData(UINT32 pos |
*Get a pointer to an array of all wavelet coefficients of this subband *return Pointer to array of wavelet coefficients *DataT * | GetBuffer () |
*Return wavelet coefficient at given position *param pos A subband | position (>=0)*@return Wavelet coefficient */DataT GetData(UINT32 pos) const |
*Return level of this subband *return Level of this subband *int | GetLevel () const |
*Return height of this subband *return Height of this | subband (in pixels)*/int GetHeight() const |
*Return width of this subband *return Width of this | subband (in pixels)*/int GetWidth() const |
*Return orientation of this subband *LL LH *HL HH *return Orientation of this | subband (LL, HL, LH, HH)*/Orientation GetOrientation() const |
Public Attributes | |
*Extracts a rectangular subregion of this subband *Write wavelet coefficients into buffer *It might throw an IOException *param encoder An encoder instance *param tile True if just a rectangular region is | extracted |
*Decoding and dequantization of this subband *It might throw an IOException *param decoder A decoder instance *param quantParam Dequantization value *param tile True if just a rectangular region is | placed |
*Store wavelet coefficient in subband at given position *param pos A subband DataT | v { ASSERT(pos < m_size) |
m_data [pos] = v | |
Private Member Functions | |
void | Initialize (UINT32 width, UINT32 height, int level, Orientation orient) |
void | WriteBuffer (DataT val) |
void | SetBuffer (DataT *b) |
DataT | ReadBuffer () |
UINT32 | GetBuffPos () const |
void | InitBuffPos () |
Private Attributes | |
UINT32 | m_width |
width in pixels | |
UINT32 | m_height |
height in pixels | |
UINT32 | m_size |
size of data buffer m_data | |
int | m_level |
recursion level | |
Orientation | m_orientation |
0=LL, 1=HL, 2=LH, 3=HH L=lowpass filtered, H=highpass filterd | |
UINT32 | m_dataPos |
current position in m_data | |
DataT * | m_data |
buffer | |
Friends | |
class | CWaveletTransform |
*file Subband cpp *brief PGF wavelet subband class implementation *author C Stamm * CSubband::CSubband | ( | ) |
Definition at line 35 of file Subband.cpp.
CSubband::~CSubband | ( | ) |
Definition at line 46 of file Subband.cpp.
bool CSubband::AllocMemory | ( | ) |
*Extracts a rectangular subregion of this subband *Write wavelet coefficients into buffer *It might throw an IOException *param encoder An encoder instance *param tile True if just a rectangular region is false if the entire subband is extracted *param tileX Tile index in x direction *param tileY Tile index in y direction *void CSubband::ExtractTile | ( | CEncoder & | encoder, |
bool | tile = false , |
||
UINT32 | tileX = 0 , |
||
UINT32 | tileY = 0 |
||
) |
Definition at line 172 of file Subband.cpp.
void CSubband::FreeMemory | ( | ) |
Definition at line 96 of file Subband.cpp.
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 52 of file Subband.cpp.
*Decoding and dequantization of this subband *It might throw an IOException *param decoder A decoder instance *param quantParam Dequantization value *param tile True if just a rectangular region is false if the entire subband is placed *param tileX Tile index in x direction *param tileY Tile index in y direction *void CSubband::PlaceTile | ( | CDecoder & | decoder, |
int | quantParam, | ||
bool | tile = false , |
||
UINT32 | tileX = 0 , |
||
UINT32 | tileY = 0 |
||
) |
Definition at line 197 of file Subband.cpp.
* Store wavelet coefficient in subband at given position* param pos A subband CSubband::position | ( | >= | 0 | ) |
* Perform subband quantization with given quantization parameter* A scalar CSubband::quantization | ( | with dead- | zone | ) |
* Perform subband dequantization with given quantization parameter* A scalar CSubband::quantization | ( | with dead- | zone | ) |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
Definition at line 133 of file Subband.h.
|
inlineprivate |
|
friend |
* Extracts a rectangular subregion of this subband* Write wavelet coefficients into buffer* It might throw an IOException* param encoder An encoder instance* param tile True if just a rectangular region is CSubband::extracted |
|
private |
|
private |
|
private |
* Decoding and dequantization of this subband* It might throw an IOException* param decoder A decoder instance* param quantParam Dequantization value* param tile True if just a rectangular region is CSubband::placed |