libpgf
6.14.12
PGF - Progressive Graphics File
|
Wavelet channel class. More...
#include <Subband.h>
Public Member Functions | |
CSubband () | |
Standard constructor. More... | |
~CSubband () | |
Destructor. More... | |
bool | AllocMemory () |
void | FreeMemory () |
Delete the memory buffer of this subband. More... | |
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 More... | |
UINT32 | m_height |
height in pixels More... | |
UINT32 | m_size |
size of data buffer m_data More... | |
int | m_level |
recursion level More... | |
Orientation | m_orientation |
0=LL, 1=HL, 2=LH, 3=HH L=lowpass filtered, H=highpass filterd More... | |
UINT32 | m_dataPos |
current position in m_data More... | |
DataT * | m_data |
buffer More... | |
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 | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return orientation of this subband. LL LH HL HH
Definition at line 134 of file Subband.h.
|
inline |
|
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.
|
inline |
|
friend |
|
private |
|
private |
|
private |