 |
libpgf
7.15.32
PGF - Progressive Graphics File
|
Go to the documentation of this file.
39 #define BufferLen (BufferSize/WordWidth)
40 #define CodeBufferLen BufferSize
57 #pragma warning( suppress : 4351 )
82 UINT32
ComposeBitplane(UINT32 bufferSize,
DataT planeMask, UINT32* sigBits, UINT32* refBits, UINT32* signBits);
84 UINT32
ComposeBitplaneRLD(UINT32 bufferSize,
DataT planeMask, UINT32* sigBits, UINT32* refBits, UINT32 signPos);
104 PGFPostHeader& postHeader, UINT32*& levelLength, UINT64& userDataPos,
105 bool useOMP, UINT32 userDataPolicy);
122 void Partition(
CSubband* band,
int quantParam,
int width,
int height,
int startPos,
int pitch);
149 void Skip(UINT64 offset);
181 #ifdef __PGFROISUPPORT__
182 void SkipTileBuffer();
190 void SetROI() { m_roi =
true; }
211 #ifdef __PGFROISUPPORT__
216 #endif //PGF_DECODER_H
void SetBitAtPos(UINT32 pos, DataT planeMask)
UINT32 m_codeBuffer[CodeBufferLen]
input buffer for encoded bitstream
UINT32 m_valuePos
current position in m_value
UINT32 ComposeBitplane(UINT32 bufferSize, DataT planeMask, UINT32 *sigBits, UINT32 *refBits, UINT32 *signBits)
#define BufferSize
must be a multiple of WordWidth, BufferSize <= UINT16_MAX
UINT32 m_encodedHeaderLength
stream offset from startPos to the beginning of the data part (highest level)
DataT m_value[BufferSize]
output buffer of values with index m_valuePos
void SetStreamPosToStart()
Resets stream position to beginning of PGF pre-header.
void Partition(CSubband *band, int quantParam, int width, int height, int startPos, int pitch)
CMacroBlock * m_currentBlock
current macro block (used by main thread)
void SetSign(UINT32 pos, bool sign)
void DecodeInterleaved(CWaveletTransform *wtChannel, int level, int quantParam)
CMacroBlock ** m_macroBlocks
array of macroblocks
int m_macroBlockLen
array length
int m_macroBlocksAvailable
number of decoded macro blocks (including currently used macro block)
PGF wavelet subband class.
void ReadMacroBlock(CMacroBlock *block)
throws IOException
void SetStreamPosToData()
Resets stream position to beginning of data block.
virtual void SetPos(short posMode, INT64 posOff)=0
bool IsCompletelyRead() const
int m_currentBlockIndex
index of current macro block
UINT32 ReadEncodedData(UINT8 *target, UINT32 len) const
UINT64 m_startPos
stream position at the beginning of the PGF pre-header
void DequantizeValue(CSubband *band, UINT32 bandPos, int quantParam)
CDecoder(CPGFStream *stream, PGFPreHeader &preHeader, PGFHeader &header, PGFPostHeader &postHeader, UINT32 *&levelLength, UINT64 &userDataPos, bool useOMP, UINT32 userDataPolicy)
bool m_sigFlagVector[BufferSize+1]
CPGFStream * m_stream
input PGF stream
CMacroBlock()
Constructor: Initializes new macro block.
A macro block is a decoding unit of fixed size (uncoded)
UINT64 m_streamSizeEstimation
estimation of stream size
#define CodeBufferLen
number of words in code buffer (CodeBufferLen > BufferLen)
UINT32 ComposeBitplaneRLD(UINT32 bufferSize, DataT planeMask, UINT32 sigPos, UINT32 *refBits)
Abstract stream base class.
UINT32 GetEncodedHeaderLength() const
ROIBlockHeader m_header
block header