digikam
CSubband Class Reference
PGF wavelet channel subband class. More...
#include <Subband.h>
Public Member Functions | |
| CSubband () | |
| ~CSubband () | |
| bool | AllocMemory () |
| UINT32 | BufferWidth () const |
| void | Dequantize (int quantParam, int level) |
| void | ExtractTile (CEncoder &encoder, int quant, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
| void | FreeMemory () |
| DataT * | GetBuffer () |
| DataT | GetData (UINT32 pos) const |
| int | GetHeight () const |
| int | GetLevel () const |
| Orientation | GetOrientation () const |
| int | GetWidth () const |
| void | IncBuffRow (UINT32 pos) |
| void | PlaceTile (CDecoder &decoder, int quantParam, bool tile=false, UINT32 tileX=0, UINT32 tileY=0) THROW_ |
| void | Quantize (int quantParam) |
| void | SetData (UINT32 pos, DataT v) |
Detailed Description
PGF wavelet channel subband class.
Definition at line 36 of file Subband.h.
Constructor & Destructor Documentation
| CSubband::CSubband | ( | ) |
Standard constructor.
Definition at line 30 of file Subband.cpp.
| CSubband::~CSubband | ( | ) |
Destructor.
Definition at line 39 of file Subband.cpp.
Member Function Documentation
| 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
Definition at line 64 of file Subband.cpp.
| UINT32 CSubband::BufferWidth | ( | ) | const [inline] |
| void CSubband::Dequantize | ( | int | quantParam, | |
| int | level | |||
| ) |
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) Level
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) level Level
Definition at line 148 of file Subband.cpp.
| void CSubband::ExtractTile | ( | CEncoder & | encoder, | |
| int | quant, | |||
| 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 quant A quantization value (linear scalar quantization) 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 172 of file Subband.cpp.
| void CSubband::FreeMemory | ( | ) |
Delete the memory buffer of this subband.
Definition at line 94 of file Subband.cpp.
| DataT* CSubband::GetBuffer | ( | ) | [inline] |
| DataT CSubband::GetData | ( | UINT32 | pos | ) | const [inline] |
| int CSubband::GetHeight | ( | ) | const [inline] |
| int CSubband::GetLevel | ( | ) | const [inline] |
| Orientation CSubband::GetOrientation | ( | ) | const [inline] |
| int CSubband::GetWidth | ( | ) | const [inline] |
| void CSubband::IncBuffRow | ( | UINT32 | pos | ) | [inline] |
| 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
Definition at line 200 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.
- Parameters:
-
quantParam A quantization parameter (larger or equal to 0)
Definition at line 105 of file Subband.cpp.
| void CSubband::SetData | ( | UINT32 | pos, | |
| DataT | v | |||
| ) | [inline] |
The documentation for this class was generated from the following files:
KDE 4.4 API Reference