Tier-2 coding.
More...
#include <T2Compress.h>
|
| | T2Compress (TileProcessor *tileProc) |
| bool | compressPackets (uint16_t tileno, uint16_t maxlayers, BufferedStream *stream, uint32_t *p_data_written, bool first_poc_tile_part, uint32_t tppos, uint32_t pino) |
| bool | compressPacketsSimulate (uint16_t tileno, uint16_t maxlayers, uint32_t *p_data_written, uint32_t max_len, uint32_t tppos, PLMarkerMgr *markers, bool isFinal, bool debug) |
| | Simulate compressing packets of a tile to a destination buffer.
|
|
| bool | compressPacket (TileCodingParams *tcp, PacketIter *pi, BufferedStream *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, PLMarkerMgr *markers, bool debug) |
| | Encode a packet of a tile to a destination buffer.
|
| bool | compressHeader (BitIO *bio, Resolution *res, uint16_t layno, uint64_t precinctIndex) |
◆ T2Compress()
◆ compressHeader()
| bool grk::T2Compress::compressHeader |
( |
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::TileCodingParams::csty, grk::PacketIter::getCompno(), grk::PacketIter::getLayno(), grk::PacketIter::getPrecinctIndex(), grk::PacketIter::getResno(), grk::grklog, J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, grk::J2K_EPH, grk::J2K_SOP, grk::BufferedStream::tell(), tileProcessor, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeBytes().
Referenced by compressPackets().
◆ compressPackets()
| bool grk::T2Compress::compressPackets |
( |
uint16_t | tileno, |
|
|
uint16_t | maxlayers, |
|
|
BufferedStream * | stream, |
|
|
uint32_t * | p_data_written, |
|
|
bool | first_poc_tile_part, |
|
|
uint32_t | tppos, |
|
|
uint32_t | pino ) |
◆ 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 |
- Returns
References compressHeader(), grk::TileCodingParams::csty, grk::PacketIter::getCompno(), grk::PacketIter::getLayno(), grk::PacketIter::getPrecinctIndex(), grk::PacketIter::getResno(), grk::grklog, J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, grk::PLMarkerMgr::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, |
|
|
uint32_t | tppos, |
|
|
PLMarkerMgr * | markers, |
|
|
bool | isFinal, |
|
|
bool | debug ) |
◆ tileProcessor
The documentation for this struct was generated from the following files: