Tier-2 coding.
More...
#include <T2Compress.h>
|
| | T2Compress (ITileProcessorCompress *tileProc) |
| bool | compressPackets (uint16_t tileno, uint16_t maxlayers, IStream *stream, uint32_t *p_data_written, bool first_poc_tile_part, uint8_t newTilePartProgressionPosition, uint32_t prog_iter_num) |
| bool | compressPacketsSimulate (uint16_t tileno, uint16_t maxlayers, uint32_t *p_data_written, uint32_t max_len, uint8_t newTilePartProgressionPosition, PLMarker *markers, bool isFinal, bool debug) |
| | Simulate compressing packets of a tile to a destination buffer.
|
|
| bool | compressPacket (TileCodingParams *tcp, PacketIter *pi, IStream *stream, uint32_t *p_data_written) |
| | Encode a packet of a tile to a destination buffer.
|
| bool | compressPacketSimulate (TileCodingParams *tcp, PacketIter *pi, uint32_t *p_data_written, uint32_t len, PLMarker *markers, bool debug) |
| | Encode a packet of a tile to a destination buffer.
|
| bool | compressHeader (t1_t2::BitIO *bio, Resolution *res, uint16_t layno, uint64_t precinctIndex) |
◆ T2Compress()
◆ compressHeader()
| bool grk::T2Compress::compressHeader |
( |
t1_t2::BitIO * | bio, |
|
|
Resolution * | res, |
|
|
uint16_t | layno, |
|
|
uint64_t | precinctIndex ) |
|
private |
◆ compressPacket()
Encode a packet of a tile to a destination buffer.
- Parameters
-
| tcp | Tile coding parameters |
| pi | packet iterator |
| stream | stream |
| p_data_written | amount of data written |
- Returns
References compressHeader(), grk::CP_CSTY_EPH, grk::CP_CSTY_SOP, grk::TileCodingParams::csty_, grk::EPH, grk::PacketIter::getCompno(), grk::PacketIter::getLayno(), grk::PacketIter::getPrecinctIndex(), grk::PacketIter::getResno(), grk::grklog, grk::SOP, grk::IStream::tell(), tileProcessor, grk::t1_t2::IStreamWriter::write8u(), and grk::IStream::writeBytes().
Referenced by compressPackets().
◆ compressPackets()
| bool grk::T2Compress::compressPackets |
( |
uint16_t | tileno, |
|
|
uint16_t | maxlayers, |
|
|
IStream * | stream, |
|
|
uint32_t * | p_data_written, |
|
|
bool | first_poc_tile_part, |
|
|
uint8_t | newTilePartProgressionPosition, |
|
|
uint32_t | prog_iter_num ) |
◆ compressPacketSimulate()
Encode a packet of a tile to a destination buffer.
- Parameters
-
| tcp | Tile coding parameters |
| pi | packet iterator |
| p_data_written | amount of data written |
| len | length of the destination buffer |
| markers | packet length markers |
| debug | true if in debug mode |
- Returns
- true if successful
References compressHeader(), grk::CP_CSTY_EPH, grk::CP_CSTY_SOP, grk::TileCodingParams::csty_, grk::PacketIter::getCompno(), grk::PacketIter::getLayno(), grk::PacketIter::getPrecinctIndex(), grk::PacketIter::getResno(), grk::grklog, grk::t1_t2::BitIO::numBytes(), grk::PLMarker::pushPL(), and tileProcessor.
Referenced by compressPacketsSimulate().
◆ compressPacketsSimulate()
| bool grk::T2Compress::compressPacketsSimulate |
( |
uint16_t | tileno, |
|
|
uint16_t | maxlayers, |
|
|
uint32_t * | p_data_written, |
|
|
uint32_t | max_len, |
|
|
uint8_t | newTilePartProgressionPosition, |
|
|
PLMarker * | markers, |
|
|
bool | isFinal, |
|
|
bool | debug ) |
◆ tileProcessor
The documentation for this struct was generated from the following files: