Tier-2 coding.
More...
#include <T2Compress.h>
|
| T2Compress (TileProcessor *tileProc) |
|
bool | compressPackets (uint16_t tileno, uint16_t maxlayers, IBufferedStream *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, PacketLengthMarkers *markers, bool finalSimulation) |
| Simulate compressing packets of a tile to a destination buffer. More...
|
|
|
bool | compressPacket (TileCodingParams *tcp, PacketIter *pi, IBufferedStream *stream, uint32_t *p_data_written) |
| Encode a packet of a tile to a destination buffer. More...
|
|
bool | compressPacketSimulate (TileCodingParams *tcp, PacketIter *pi, uint32_t *p_data_written, uint32_t len, PacketLengthMarkers *markers, bool finalSimulation) |
| Encode a packet of a tile to a destination buffer. More...
|
|
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 grk::floorlog2(), grk::BitIO::flush(), grk::GRK_ERROR(), grk::GRK_WARN(), grk::Resolution::numTileBandWindows, grk::Subband::precincts, grk::BitIO::putcommacode(), grk::BitIO::putnumpasses(), grk::Resolution::tileBand, and grk::BitIO::write().
Referenced by compressPacket(), and compressPacketSimulate().
◆ 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 grk::PacketIter::compno, compressHeader(), grk::Tile::comps, grk::TileCodingParams::csty, grk::TileProcessor::getPacketTracker(), grk::GRK_ERROR(), grk::GRK_INFO(), grk::PacketTracker::is_packet_encoded(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, J2K_MS_EPH, J2K_MS_SOP, grk::PacketIter::layno, grk::PacketTracker::packet_encoded(), grk::PacketIter::precinctIndex, grk::PacketIter::resno, grk::IBufferedStream::tell(), grk::TileProcessor::tile, tileProcessor, grk::IBufferedStream::writeByte(), and grk::IBufferedStream::writeBytes().
Referenced by compressPackets().
◆ compressPackets()
bool grk::T2Compress::compressPackets |
( |
uint16_t |
tileno, |
|
|
uint16_t |
maxlayers, |
|
|
IBufferedStream * |
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 |
finalSimluation | final simulation |
- Returns
References grk::PacketIter::compno, compressHeader(), grk::Tile::comps, grk::TileCodingParams::csty, grk::TileProcessor::getPacketTracker(), grk::GRK_ERROR(), grk::GRK_INFO(), GRK_UNUSED, grk::PacketTracker::is_packet_encoded(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, grk::PacketIter::layno, grk::PacketTracker::packet_encoded(), grk::PacketIter::precinctIndex, grk::PacketLengthMarkers::pushNextPacketLength(), grk::PacketIter::resno, grk::TileProcessor::tile, grk::TileComponent::tileCompResolution, 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, |
|
|
PacketLengthMarkers * |
markers, |
|
|
bool |
finalSimulation |
|
) |
| |
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 |
finalSimluation | final simluation |
References grk::PacketTracker::clear(), compressPacketSimulate(), grk::PacketManager::enableTilePartGeneration(), grk::PacketManager::getPacketIter(), grk::TileProcessor::getPacketTracker(), grk::GRK_ERROR(), GRK_PROFILE_CINEMA_4K, GRK_PROG_UNKNOWN, grk::TileProcessor::headerImage, grk::TileProcessor::m_cp, _grk_image::numcomps, grk::THRESH_CALC, and tileProcessor.
◆ tileProcessor
The documentation for this struct was generated from the following files: