Grok  9.5.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
grk::DecompressorState Struct Reference

#include <CodingParams.h>

Public Member Functions

 DecompressorState ()
 
bool findNextTile (CodeStreamDecompress *codeStream)
 
uint16_t getState (void)
 
void setState (uint16_t state)
 
void orState (uint16_t state)
 
void andState (uint16_t state)
 

Public Attributes

TileCodingParamsm_default_tcp
 
uint32_t m_start_tile_x_index
 Only tile indices in the correct range will be decompressed. More...
 
uint32_t m_start_tile_y_index
 
uint32_t m_end_tile_x_index
 
uint32_t m_end_tile_y_index
 
uint64_t lastSotReadPosition
 Position of the last SOT marker read. More...
 
bool lastTilePartInCodeStream
 Indicate that the current tile-part is assumed to be the last tile part of the code stream. More...
 
bool lastTilePartWasRead
 
bool skipTileData
 

Private Attributes

uint16_t m_state
 Decoder state: used to indicate in which part of the code stream the decompressor is (main header, tile header, end) More...
 

Constructor & Destructor Documentation

◆ DecompressorState()

grk::DecompressorState::DecompressorState ( )

Member Function Documentation

◆ andState()

void grk::DecompressorState::andState ( uint16_t  state)

References m_state.

Referenced by findNextTile().

◆ findNextTile()

bool grk::DecompressorState::findNextTile ( CodeStreamDecompress codeStream)

◆ getState()

uint16_t grk::DecompressorState::getState ( void  )

◆ orState()

void grk::DecompressorState::orState ( uint16_t  state)

References m_state.

◆ setState()

void grk::DecompressorState::setState ( uint16_t  state)

Member Data Documentation

◆ lastSotReadPosition

uint64_t grk::DecompressorState::lastSotReadPosition

Position of the last SOT marker read.

Referenced by grk::CodeStreamDecompress::CodeStreamDecompress().

◆ lastTilePartInCodeStream

bool grk::DecompressorState::lastTilePartInCodeStream

Indicate that the current tile-part is assumed to be the last tile part of the code stream.

This is useful in the case when PSot is equal to zero. The SOT length will be computed in the SOD reader function.

Referenced by grk::TileProcessor::prepareSodDecompress(), and grk::SOTMarker::read().

◆ lastTilePartWasRead

bool grk::DecompressorState::lastTilePartWasRead

◆ m_default_tcp

TileCodingParams* grk::DecompressorState::m_default_tcp

◆ m_end_tile_x_index

uint32_t grk::DecompressorState::m_end_tile_x_index

Referenced by grk::SOTMarker::read().

◆ m_end_tile_y_index

uint32_t grk::DecompressorState::m_end_tile_y_index

Referenced by grk::SOTMarker::read().

◆ m_start_tile_x_index

uint32_t grk::DecompressorState::m_start_tile_x_index

Only tile indices in the correct range will be decompressed.

Referenced by grk::SOTMarker::read().

◆ m_start_tile_y_index

uint32_t grk::DecompressorState::m_start_tile_y_index

◆ m_state

uint16_t grk::DecompressorState::m_state
private

Decoder state: used to indicate in which part of the code stream the decompressor is (main header, tile header, end)

Referenced by andState(), getState(), orState(), and setState().

◆ skipTileData

bool grk::DecompressorState::skipTileData

Referenced by grk::SOTMarker::read().


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