Grok 20.3.2
grk::t1::CodeblockCompressImpl Struct Reference

#include <CodeblockCompressImpl.h>

Inheritance diagram for grk::t1::CodeblockCompressImpl:
grk::t1::CodeblockImpl

Public Member Functions

 CodeblockCompressImpl (uint16_t numLayers)
 ~CodeblockCompressImpl ()
void init ()
bool allocData (size_t nominalBlockSize)
 Allocates data memory for a compression code block.
CodePassgetPass (uint8_t passno)
uint8_t getNumPasses (void) const
void setNumPasses (uint8_t numPasses)
CodePassgetLastPass (void)
LayergetLayer (uint16_t layno)
uint8_t * getPaddedCompressedStream (void)
void setPaddedCompressedStream (uint8_t *stream)
uint8_t getNumPassesInPreviousLayers (void)
void setNumPassesInPreviousLayers (uint8_t numPasses)
Public Member Functions inherited from grk::t1::CodeblockImpl
 CodeblockImpl (uint16_t numLayers)
 ~CodeblockImpl ()
uint8_t getNumPassesInLayer (uint16_t layno)
void setNumPassesInLayer (uint16_t layno, uint8_t passes)
void incNumPassesInLayer (uint16_t layno, uint8_t delta)
Buffer8getCompressedStream (void)
uint8_t numbps (void)
void setNumBps (uint8_t bps)
uint8_t numlenbits ()
void setNumLenBits (uint8_t bits)

Private Attributes

uint8_t * paddedCompressedStream
Layerlayers
CodePasspasses
uint8_t numPassesInPreviousPackets
uint8_t totalPasses_

Additional Inherited Members

Protected Member Functions inherited from grk::t1::CodeblockImpl
void init ()
Protected Attributes inherited from grk::t1::CodeblockImpl
Buffer8 compressedStream
uint8_t numbps_
uint8_t numlenbits_
uint8_t * signalledPassesByLayer_
uint16_t numLayers_

Constructor & Destructor Documentation

◆ CodeblockCompressImpl()

grk::t1::CodeblockCompressImpl::CodeblockCompressImpl ( uint16_t numLayers)
inlineexplicit

◆ ~CodeblockCompressImpl()

grk::t1::CodeblockCompressImpl::~CodeblockCompressImpl ( )
inline

References layers, and passes.

Member Function Documentation

◆ allocData()

bool grk::t1::CodeblockCompressImpl::allocData ( size_t nominalBlockSize)
inline

Allocates data memory for a compression code block.

We actually allocate 2 more bytes than specified, and then offset data by +2. This is done so that we can safely initialize the MQ coder pointer to data-1, without risk of accessing uninitialized memory.

References grk::t1::CodeblockImpl::compressedStream, grk_cblk_enc_compressed_data_pad_left, and paddedCompressedStream.

Referenced by grk::t1::CodeblockCompress::allocData().

◆ getLastPass()

CodePass * grk::t1::CodeblockCompressImpl::getLastPass ( void )
inline

◆ getLayer()

Layer * grk::t1::CodeblockCompressImpl::getLayer ( uint16_t layno)
inline

References layers.

Referenced by grk::t1::CodeblockCompress::getLayer().

◆ getNumPasses()

uint8_t grk::t1::CodeblockCompressImpl::getNumPasses ( void ) const
inline

◆ getNumPassesInPreviousLayers()

uint8_t grk::t1::CodeblockCompressImpl::getNumPassesInPreviousLayers ( void )
inline

◆ getPaddedCompressedStream()

uint8_t * grk::t1::CodeblockCompressImpl::getPaddedCompressedStream ( void )
inline

◆ getPass()

CodePass * grk::t1::CodeblockCompressImpl::getPass ( uint8_t passno)
inline

References passes.

Referenced by grk::t1::CodeblockCompress::getPass().

◆ init()

void grk::t1::CodeblockCompressImpl::init ( )
inline

◆ setNumPasses()

void grk::t1::CodeblockCompressImpl::setNumPasses ( uint8_t numPasses)
inline

◆ setNumPassesInPreviousLayers()

void grk::t1::CodeblockCompressImpl::setNumPassesInPreviousLayers ( uint8_t numPasses)
inline

◆ setPaddedCompressedStream()

void grk::t1::CodeblockCompressImpl::setPaddedCompressedStream ( uint8_t * stream)
inline

Member Data Documentation

◆ layers

Layer* grk::t1::CodeblockCompressImpl::layers
private

◆ numPassesInPreviousPackets

uint8_t grk::t1::CodeblockCompressImpl::numPassesInPreviousPackets
private

◆ paddedCompressedStream

uint8_t* grk::t1::CodeblockCompressImpl::paddedCompressedStream
private

◆ passes

CodePass* grk::t1::CodeblockCompressImpl::passes
private

◆ totalPasses_

uint8_t grk::t1::CodeblockCompressImpl::totalPasses_
private

The documentation for this struct was generated from the following file: