|
libpgf 6.14.12
PGF - Progressive Graphics File
|
Wavelet channel class. More...
#include <Subband.h>
Public Member Functions | |
| CSubband () | |
| Standard constructor. | |
| ~CSubband () | |
| Destructor. | |
| bool | AllocMemory () |
| void | FreeMemory () |
| Delete the memory buffer of this subband. | |
| void | ExtractTile (CEncoder &encoder, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
| void | PlaceTile (CDecoder &decoder, int quantParam, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
| void | Quantize (int quantParam) |
| void | Dequantize (int quantParam) |
| void | SetData (UINT32 pos, DataT v) |
| DataT * | GetBuffer () |
| DataT | GetData (UINT32 pos) const |
| int | GetLevel () const |
| int | GetHeight () const |
| int | GetWidth () const |
| Orientation | GetOrientation () const |
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 |
| CSubband::CSubband | ( | ) |
Standard constructor.
Definition at line 35 of file Subband.cpp.
| CSubband::~CSubband | ( | ) |
Destructor.
Definition at line 51 of file Subband.cpp.
| bool CSubband::AllocMemory | ( | ) |
Allocate a memory buffer to store all wavelet coefficients of this subband.
Definition at line 77 of file Subband.cpp.
| void CSubband::Dequantize | ( | 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.
| quantParam | A quantization parameter (larger or equal to 0) |
Definition at line 154 of file Subband.cpp.
| void CSubband::ExtractTile | ( | CEncoder & | encoder, |
| bool | tile = false, |
||
| UINT32 | tileX = 0, |
||
| UINT32 | tileY = 0 |
||
| ) |
Extracts a rectangular subregion of this subband. Write wavelet coefficients into buffer. It might throw an IOException.
| encoder | An encoder instance |
| tile | True if just a rectangular region is extracted, false if the entire subband is extracted. |
| tileX | Tile index in x-direction |
| tileY | Tile index in y-direction |
Definition at line 177 of file Subband.cpp.
| void CSubband::FreeMemory | ( | ) |
Delete the memory buffer of this subband.
Definition at line 101 of file Subband.cpp.
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
private |
Definition at line 57 of file Subband.cpp.
| void CSubband::PlaceTile | ( | CDecoder & | decoder, |
| int | quantParam, | ||
| bool | tile = false, |
||
| UINT32 | tileX = 0, |
||
| UINT32 | tileY = 0 |
||
| ) |
Decoding and dequantization of this subband. It might throw an IOException.
| decoder | A decoder instance |
| quantParam | Dequantization value |
| tile | True if just a rectangular region is placed, false if the entire subband is placed. |
| tileX | Tile index in x-direction |
| tileY | Tile index in y-direction |
Definition at line 202 of file Subband.cpp.
| void CSubband::Quantize | ( | int | quantParam | ) |
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.
| quantParam | A quantization parameter (larger or equal to 0) |
Definition at line 112 of file Subband.cpp.
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
friend |
|
private |
|
private |
|
private |