Tier-2 coding.
More...
#include <TileCache.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) |
| 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) |
| 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 |
References bandIndex, cblk, cblkno, grk::floorlog2(), grk::grk::BitIO::flush(), grk::GRK_ERROR(), grk::GRK_WARN(), layno, len, grk::grk::Resolution::numTileBandWindows, precinctIndex, grk::grk::Subband::precincts, grk::grk::BitIO::putcommacode(), grk::grk::BitIO::putnumpasses(), grk::grk::Resolution::tileBand, and grk::grk::BitIO::write().
◆ 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 bandIndex, cblk, cblkno, compno, grk::grk::TileCodingParams::csty, grk::grk::PacketIter::getCompno(), grk::grk::PacketIter::getLayno(), grk::grk::PacketIter::getPrecinctIndex(), grk::grk::PacketIter::getResno(), grk::GRK_ERROR(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, grk::J2K_MS_EPH, grk::J2K_MS_SOP, layno, numProcessedPackets, precinctIndex, resno, stream, tile, tilec, and tileProcessor.
◆ 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 bandIndex, cblk, cblkno, compno, grk::grk::TileCodingParams::csty, grk::grk::PacketIter::getCompno(), grk::grk::PacketIter::getLayno(), grk::grk::PacketIter::getPrecinctIndex(), grk::grk::PacketIter::getResno(), grk::GRK_ERROR(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, layno, markers, precinctIndex, resno, tile, tilec, and tileProcessor.
◆ 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 ) |
Simulate compressing packets of a tile to a destination buffer.
- Parameters
-
tileno | number of the tile encoded |
maxlayers | maximum number of layers |
p_data_written | amount of data written |
max_len | the max length of the destination buffer |
tppos | position of the tile part flag in the progression order |
markers | markers |
References compno, cp, grk::GRK_ERROR(), GRK_PROFILE_CINEMA_4K, grk::GRK_PROG_UNKNOWN, image, markers, newTilePartProgressionPosition, grk::_grk_image::numcomps, packetManager, grk::THRESH_CALC, and tileProcessor.
◆ tileProcessor
The documentation for this struct was generated from the following files: