• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

CEncoder Class Reference

PGF encoder class. More...

#include <Encoder.h>

List of all members.

Public Member Functions

 CEncoder (CPGFStream *stream, PGFPreHeader preHeader, PGFHeader header, const PGFPostHeader &postHeader, UINT32 *&levelLength) THROW_
 ~CEncoder ()
UINT32 Flush () THROW_
void Partition (CSubband *band, int width, int height, int startPos, int pitch) THROW_
void SetLevelIsEncoded (bool b)
void WriteValue (CSubband *band, int bandPos) THROW_

Protected Attributes

UINT32 m_codeBuffer [BufferSize]
UINT32 m_codePos
int m_currLevelIndex
UINT64 m_currPosition
bool m_isLevelEncoded
UINT32 * m_levelLength
UINT64 m_levelLengthPos
UINT32 m_maxAbsValue
UINT32 m_sigFlagVector [BufferLen]
UINT64 m_startPosition
CPGFStream * m_stream
DataT m_value [BufferSize]
UINT32 m_valuePos

Detailed Description

PGF encoder class.

Author:
C. Stamm, R. Spuler

Definition at line 40 of file Encoder.h.


Constructor & Destructor Documentation

CEncoder::CEncoder ( CPGFStream *  stream,
PGFPreHeader  preHeader,
PGFHeader  header,
const PGFPostHeader &  postHeader,
UINT32 *&  levelLength 
)

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.

CEncoder::~CEncoder (  ) 

Destructor.

Definition at line 121 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:
b A flag value

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

UINT32 CEncoder::m_codeBuffer[BufferSize] [protected]

Definition at line 118 of file Encoder.h.

UINT32 CEncoder::m_codePos [protected]

Definition at line 123 of file Encoder.h.

int CEncoder::m_currLevelIndex [protected]

Definition at line 127 of file Encoder.h.

UINT64 CEncoder::m_currPosition [protected]

Definition at line 115 of file Encoder.h.

bool CEncoder::m_isLevelEncoded [protected]

Definition at line 128 of file Encoder.h.

UINT32* CEncoder::m_levelLength [protected]

Definition at line 126 of file Encoder.h.

UINT64 CEncoder::m_levelLengthPos [protected]

Definition at line 114 of file Encoder.h.

UINT32 CEncoder::m_maxAbsValue [protected]

Definition at line 124 of file Encoder.h.

UINT32 CEncoder::m_sigFlagVector[BufferLen] [protected]

Definition at line 120 of file Encoder.h.

UINT64 CEncoder::m_startPosition [protected]

Definition at line 113 of file Encoder.h.

CPGFStream* CEncoder::m_stream [protected]

Definition at line 112 of file Encoder.h.

DataT CEncoder::m_value[BufferSize] [protected]

Definition at line 117 of file Encoder.h.

UINT32 CEncoder::m_valuePos [protected]

Definition at line 122 of file Encoder.h.


The documentation for this class was generated from the following files:
  • Encoder.h
  • Encoder.cpp

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal