Grok
9.5.0
|
#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 | |
TileCodingParams * | m_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... | |
grk::DecompressorState::DecompressorState | ( | ) |
void grk::DecompressorState::andState | ( | uint16_t | state | ) |
References m_state.
Referenced by findNextTile().
bool grk::DecompressorState::findNextTile | ( | CodeStreamDecompress * | codeStream | ) |
References andState(), grk::DECOMPRESS_STATE_DATA, grk::DECOMPRESS_STATE_EOC, grk::DECOMPRESS_STATE_NO_EOC, grk::CodeStreamDecompress::getCurrentMarker(), getState(), grk::CodeStream::getStream(), GRK_UNUSED, grk::GRK_WARN(), J2K_MS_EOC, J2K_MS_SOT, lastTilePartWasRead, grk::CodeStreamDecompress::readMarker(), and setState().
uint16_t grk::DecompressorState::getState | ( | void | ) |
References m_state.
Referenced by findNextTile(), and grk::CodeStreamDecompress::isDecodingTilePartHeader().
void grk::DecompressorState::orState | ( | uint16_t | state | ) |
References m_state.
void grk::DecompressorState::setState | ( | uint16_t | state | ) |
References m_state.
Referenced by findNextTile(), grk::TileProcessor::prepareSodDecompress(), and grk::SOTMarker::read().
uint64_t grk::DecompressorState::lastSotReadPosition |
Position of the last SOT marker read.
Referenced by grk::CodeStreamDecompress::CodeStreamDecompress().
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().
bool grk::DecompressorState::lastTilePartWasRead |
Referenced by findNextTile(), and grk::SOTMarker::read().
TileCodingParams* grk::DecompressorState::m_default_tcp |
uint32_t grk::DecompressorState::m_end_tile_x_index |
Referenced by grk::SOTMarker::read().
uint32_t grk::DecompressorState::m_end_tile_y_index |
Referenced by grk::SOTMarker::read().
uint32_t grk::DecompressorState::m_start_tile_x_index |
Only tile indices in the correct range will be decompressed.
Referenced by grk::SOTMarker::read().
uint32_t grk::DecompressorState::m_start_tile_y_index |
|
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().
bool grk::DecompressorState::skipTileData |
Referenced by grk::SOTMarker::read().