Wavelet channel class.
More...
#include <Subband.h>
Wavelet channel class.
PGF wavelet channel subband class.
- Author
- C. Stamm, R. Spuler
bool CSubband::AllocMemory |
( |
| ) |
|
Allocate a memory buffer to store all wavelet coefficients of this subband.
- Returns
- True if the allocation did work without any problems
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.
- Parameters
-
quantParam | A quantization parameter (larger or equal to 0) |
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.
- Parameters
-
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 |
DataT* CSubband::GetBuffer |
( |
| ) |
|
|
inline |
Get a pointer to an array of all wavelet coefficients of this subband.
- Returns
- Pointer to array of wavelet coefficients
DataT CSubband::GetData |
( |
UINT32 |
pos | ) |
const |
|
inline |
Return wavelet coefficient at given position.
- Parameters
-
pos | A subband position (>= 0) |
- Returns
- Wavelet coefficient
int CSubband::GetHeight |
( |
| ) |
const |
|
inline |
Return height of this subband.
- Returns
- Height of this subband (in pixels)
int CSubband::GetLevel |
( |
| ) |
const |
|
inline |
Return level of this subband.
- Returns
- Level of this subband
Orientation CSubband::GetOrientation |
( |
| ) |
const |
|
inline |
Return orientation of this subband. LL LH HL HH
- Returns
- Orientation of this subband (LL, HL, LH, HH)
int CSubband::GetWidth |
( |
| ) |
const |
|
inline |
Return width of this subband.
- Returns
- Width of this subband (in pixels)
void CSubband::IncBuffRow |
( |
UINT32 |
pos | ) |
|
|
inline |
Set data buffer position to given position + one row.
- Parameters
-
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.
- Parameters
-
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 |
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.
- Parameters
-
quantParam | A quantization parameter (larger or equal to 0) |
void CSubband::SetData |
( |
UINT32 |
pos, |
|
|
DataT |
v |
|
) |
| |
|
inline |
Store wavelet coefficient in subband at given position.
- Parameters
-
pos | A subband position (>= 0) |
v | A wavelet coefficient |
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/third_party/pgf/Subband.h
- /Users/ale/src/Scribus/scribus/third_party/pgf/Subband.cpp