CEncoder Class Reference
PGF encoder class.
More...
#include <Encoder.h>
List of all members.
Detailed Description
PGF encoder class.
- Author:
- C. Stamm, R. Spuler
Definition at line 40 of file Encoder.h.
Constructor & Destructor Documentation
Write pre-header, header, postHeader, and levelLength.
It might throw an IOException.
- Parameters:
-
| stream | A PGF stream |
| preHeader | A already filled in PGF pre header |
| header | An already filled in PGF header |
| postHeader | [in] A already filled in PGF post header (containing color table, user data, ...) |
| levelLength | A reference to an integer array, large enough to save the relative file positions of all PGF levels |
Definition at line 61 of file Encoder.cpp.
Member Function Documentation
| UINT32 CEncoder::Flush |
( |
|
) |
|
Pad buffer with zeros, encode buffer, write levelLength into header Return number of bytes written into stream It might throw an IOException.
Definition at line 200 of file Encoder.cpp.
| void CEncoder::Partition |
( |
CSubband * |
band, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
startPos, |
|
|
int |
pitch | |
|
) |
| | |
Partitions a rectangular region of a given subband.
Partitioning scheme: The plane is partitioned in squares of side length LinBlockSize. Write wavelet coefficients into buffer. It might throw an IOException.
- Parameters:
-
| band | A subband |
| width | The width of the rectangle |
| height | The height of the rectangle |
| startPos | The buffer position of the top left corner of the rectangular region |
| pitch | The number of bytes in row of the subband |
Definition at line 134 of file Encoder.cpp.
| void CEncoder::SetLevelIsEncoded |
( |
bool |
b |
) |
[inline] |
Set or clear flag.
The flag must be set to true as soon a wavelet transform level is encoded.
- Parameters:
-
Definition at line 78 of file Encoder.h.
| void CEncoder::WriteValue |
( |
CSubband * |
band, |
|
|
int |
bandPos | |
|
) |
| | |
Write a single value into subband at given position.
It might throw an IOException.
- Parameters:
-
| band | A subband |
| bandPos | A valid position in subband band |
Definition at line 251 of file Encoder.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: