Grok 12.0.1
|
#include <SOTMarker.h>
Public Member Functions | |
SOTMarker (void) | |
bool | write (TileProcessor *proc, uint32_t tileLength) |
Writes the SOT marker (Start of tile-part) | |
bool | write_psot (BufferedStream *stream, uint32_t tileLength) |
bool | read (CodeStreamDecompress *codeStream, uint8_t *headerData, uint16_t header_size) |
Decompress a SOT marker (Start of tile-part) | |
Private Member Functions | |
bool | read (CodeStreamDecompress *codeStream, uint8_t *headerData, uint32_t header_size, uint32_t *tot_len, uint16_t *tileIndex, uint8_t *current_part, uint8_t *num_parts) |
Reads values from a SOT marker (Start of tile-part) | |
Private Attributes | |
uint64_t | 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::Logger::error(), grk::CodeStreamDecompress::getCodeStreamInfo(), grk::CodeStream::getCodingParams(), grk::CodeStreamDecompress::getDecompressorState(), grk::grk_read(), grk::DecompressorState::lastTilePartInCodeStream, grk::Logger::logger_, read(), grk::CodeStreamDecompress::setExpectSOD(), grk::TileProcessor::setTilePartDataLength(), grk::sot_marker_segment_len_minus_tile_data_len, grk::sot_marker_segment_min_len, and grk::CodeStreamInfo::updateTileInfo().
Referenced by read(), and 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. |
tot_len | Psot. |
current_part | TPsot. |
num_parts | TNsot. |
References grk::CodeStreamDecompress::allocateProcessor(), grk::Logger::error(), grk::grk_read(), grk::Logger::logger_, grk::MARKER_PLUS_MARKER_LENGTH_BYTES, and grk::sot_marker_segment_len_minus_tile_data_len.
bool grk::SOTMarker::write | ( | TileProcessor * | proc, |
uint32_t | tileLength ) |
Writes the SOT marker (Start of tile-part)
References grk::grk_read(), grk::J2K_MS_SOT, and psot_location_.
bool grk::SOTMarker::write_psot | ( | BufferedStream * | stream, |
uint32_t | tileLength ) |
|
private |
Referenced by write(), and write_psot().