Grok
9.5.0
|
#include <SOTMarker.h>
Public Member Functions | |
SOTMarker (void) | |
bool | write (TileProcessor *proc, uint32_t tileLength) |
Writes the SOT marker (Start of tile-part) More... | |
bool | write_psot (IBufferedStream *stream, uint32_t tileLength) |
bool | read (CodeStreamDecompress *codeStream, uint8_t *headerData, uint16_t header_size) |
Decompress a SOT marker (Start of tile-part) More... | |
Private Member Functions | |
bool | read (CodeStreamDecompress *codeStream, uint8_t *headerData, uint32_t header_size, uint32_t *p_tot_len, uint8_t *p_current_part, uint8_t *p_num_parts) |
Reads values from a SOT marker (Start of tile-part) More... | |
Private Attributes | |
uint64_t | m_psot_location |
grk::SOTMarker::SOTMarker | ( | void | ) |
bool grk::SOTMarker::read | ( | CodeStreamDecompress * | codeStream, |
uint8_t * | headerData, | ||
uint16_t | header_size | ||
) |
Decompress a SOT marker (Start of tile-part)
headerData | the data contained in the SOT marker. |
header_size | the size of the data contained in the PPT marker. |
References grk::CodeStream::currentProcessor(), grk::DECOMPRESS_STATE_TPH, grk::CodeStreamDecompress::getCodeStreamInfo(), grk::CodeStream::getCodingParams(), grk::CodeStreamDecompress::getDecompressorState(), grk::GRK_ERROR(), grk::GRK_WARN(), grk::DecompressorState::lastTilePartInCodeStream, grk::DecompressorState::lastTilePartWasRead, grk::DecompressorState::m_end_tile_x_index, grk::DecompressorState::m_end_tile_y_index, grk::DecompressorState::m_start_tile_x_index, grk::TileProcessor::m_tileIndex, grk::DecompressorState::setState(), grk::DecompressorState::skipTileData, grk::sot_marker_segment_len, grk::CodeStreamDecompress::tileIndexToDecode(), grk::TileProcessor::tilePartDataLength, and grk::CodeStreamInfo::updateTileInfo().
Referenced by grk::CodeStreamDecompress::read_sot().
|
private |
Reads values from a SOT marker (Start of tile-part)
the j2k decompressor state is not affected. No side effects, no checks except for header_size.
headerData | the data contained in the SOT marker. |
header_size | the size of the data contained in the SOT marker. |
p_tot_len | Psot. |
p_current_part | TPsot. |
p_num_parts | TNsot. |
References grk::CodeStreamDecompress::allocateProcessor(), grk::GRK_ERROR(), grk::grk_marker_length, and grk::sot_marker_segment_len.
bool grk::SOTMarker::write | ( | TileProcessor * | proc, |
uint32_t | tileLength | ||
) |
Writes the SOT marker (Start of tile-part)
References grk::TileProcessor::getStream(), J2K_MS_SOT, grk::TileProcessor::m_cp, grk::TileCodingParams::m_numTileParts, m_psot_location, grk::TileProcessor::m_tileIndex, grk::TileProcessor::m_tilePartIndexCounter, and grk::CodingParams::tcps.
Referenced by grk::CodeStreamCompress::writeTilePart().
bool grk::SOTMarker::write_psot | ( | IBufferedStream * | stream, |
uint32_t | tileLength | ||
) |
References m_psot_location, grk::IBufferedStream::seek(), grk::IBufferedStream::tell(), and grk::IBufferedStream::writeInt().
Referenced by grk::CodeStreamCompress::writeTilePart().
|
private |
Referenced by write(), and write_psot().