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

#include <CodingParams.h>

Public Member Functions

 DecompressorState ()
 
bool findNextSOT (CodeStreamDecompress *codeStream)
 
uint16_t getState (void)
 
void setState (uint16_t state)
 
void orState (uint16_t state)
 
void andState (uint16_t state)
 
void setComplete (uint16_t tileIndex)
 

Public Attributes

TileCodingParamsdefault_tcp_
 
TileSet tilesToDecompress_
 
uint64_t lastSotReadPosition
 Position of the last SOT marker read.
 
bool lastTilePartInCodeStream
 Indicate that the current tile-part is assumed to be the last tile part of the code stream.
 

Private Attributes

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

Constructor & Destructor Documentation

◆ DecompressorState()

grk::DecompressorState::DecompressorState ( )

Member Function Documentation

◆ andState()

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

References grk::grk_read(), and state_.

Referenced by findNextSOT().

◆ findNextSOT()

bool grk::DecompressorState::findNextSOT ( CodeStreamDecompress * codeStream)

◆ getState()

uint16_t grk::DecompressorState::getState ( void )

◆ orState()

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

◆ setComplete()

void grk::DecompressorState::setComplete ( uint16_t tileIndex)

◆ setState()

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

Member Data Documentation

◆ default_tcp_

TileCodingParams* grk::DecompressorState::default_tcp_

◆ lastSotReadPosition

uint64_t grk::DecompressorState::lastSotReadPosition

◆ 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::SOTMarker::read().

◆ state_

uint16_t grk::DecompressorState::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().

◆ tilesToDecompress_

TileSet grk::DecompressorState::tilesToDecompress_

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