Grok 10.0.5
|
#include <TileCache.h>
Public Attributes | |
bool | first_poc_tile_part_ |
Compression Only true for first POC tile part, otherwise false. | |
uint8_t | tilePartCounter_ |
Compressing Only index of tile part being currently coding. | |
uint32_t | pino |
Compression Only Current packet iterator number. | |
GrkImage * | headerImage |
grk_plugin_tile * | current_plugin_tile |
CodingParams * | cp_ |
PLCache | packetLengthCache |
Private Member Functions | |
bool | isWholeTileDecompress (uint16_t compno) |
Returns whether a tile component should be fully decompressed, taking into account win_* members. | |
bool | needsMctDecompress (uint16_t compno) |
bool | needsMctDecompress (void) |
bool | mctDecompress (FlowComponent *flow) |
bool | dcLevelShiftCompress () |
bool | mct_encode () |
bool | dwt_encode () |
void | t1_encode () |
bool | encodeT2 (uint32_t *packet_bytes_written) |
bool | rateAllocate (uint32_t *allPacketBytes) |
bool | layerNeedsRateControl (uint32_t layno) |
bool | makeSingleLosslessLayer () |
void | makeLayerFinal (uint32_t layno) |
bool | pcrdBisectSimple (uint32_t *p_data_written) |
void | makeLayerSimple (uint32_t layno, double thresh, bool finalAttempt) |
bool | pcrdBisectFeasible (uint32_t *p_data_written) |
void | makeLayerFeasible (uint32_t layno, uint16_t thresh, bool finalAttempt) |
bool | isWholeTileDecompress (uint16_t compno) |
bool | needsMctDecompress (uint16_t compno) |
bool | needsMctDecompress (void) |
bool | mctDecompress (FlowComponent *flow) |
bool | dcLevelShiftCompress () |
bool | mct_encode () |
bool | dwt_encode () |
void | t1_encode () |
bool | encodeT2 (uint32_t *packet_bytes_written) |
bool | rateAllocate (uint32_t *allPacketBytes) |
bool | layerNeedsRateControl (uint32_t layno) |
bool | makeSingleLosslessLayer () |
void | makeLayerFinal (uint32_t layno) |
bool | pcrdBisectSimple (uint32_t *p_data_written) |
void | makeLayerSimple (uint32_t layno, double thresh, bool finalAttempt) |
bool | pcrdBisectFeasible (uint32_t *p_data_written) |
void | makeLayerFeasible (uint32_t layno, uint16_t thresh, bool finalAttempt) |
Private Attributes | |
Tile * | tile |
Scheduler * | scheduler_ |
uint64_t | numProcessedPackets |
std::atomic< uint64_t > | numDecompressedPackets |
uint64_t | tilePartDataLength |
uint16_t | tileIndex_ |
index of tile being currently compressed/decompressed | |
PacketTracker | packetTracker_ |
BufferedStream * | stream_ |
bool | corrupt_packet_ |
uint32_t | newTilePartProgressionPosition |
position of the tile part flag in progression order | |
TileCodingParams * | tcp_ |
bool | truncated |
GrkImage * | image_ |
bool | isCompressor_ |
grk_rect32 | unreducedImageWindow |
uint32_t | preCalculatedTileLen |
mct * | mct_ |
|
explicit |
grk::TileProcessor::~TileProcessor | ( | ) |
References grk::GRK_TILE_CACHE_NONE, mct_, and scheduler_.
|
explicit |
grk::grk::TileProcessor::~TileProcessor | ( | ) |
bool grk::TileProcessor::cacheTilePartPackets | ( | CodeStreamDecompress * | codeStream | ) |
References grk::TileLengthMarkers::addTileMarkerInfo(), codeStream, codeStreamInfo, grk::grk::TileInfo::currentTilePart, grk::DECOMPRESS_STATE_NO_EOC, grk::DECOMPRESS_STATE_TPH_SOT, grk::CodeStreamInfo::getTileInfo(), grk::GRK_ERROR(), grk::GRK_WARN(), grk::J2K_MS_SOD, len, grk::MARKER_BYTES, stream_, tileIndex_, tilePartDataLength, and truncated.
bool grk::grk::TileProcessor::cacheTilePartPackets | ( | CodeStreamDecompress * | codeStream | ) |
bool grk::TileProcessor::canPreCalculateTileLen | ( | void | ) |
References cp_, and tileIndex_.
bool grk::grk::TileProcessor::canPreCalculateTileLen | ( | void | ) |
bool grk::TileProcessor::canWritePocMarker | ( | void | ) |
References cp_, GRK_IS_CINEMA, tileIndex_, and tilePartCounter_.
bool grk::grk::TileProcessor::canWritePocMarker | ( | void | ) |
bool grk::TileProcessor::createWindowBuffers | ( | const GrkImage * | outputImage | ) |
bool grk::grk::TileProcessor::createWindowBuffers | ( | const GrkImage * | outputImage | ) |
|
private |
References compno, headerImage, tcp_, and tile.
|
private |
void grk::grk::TileProcessor::deallocBuffers | ( | ) |
bool grk::TileProcessor::decompressT2T1 | ( | GrkImage * | outputImage | ) |
References compno, cp_, current_plugin_tile, grk::_grk_plugin_tile::decompress_flags, grk::ExecSingleton::get(), GRK_DECODE_POST_T1, GRK_DECODE_T1, GRK_DECODE_T2, grk::GRK_ERROR(), grk::GRK_WARN(), grk::_grk_image::hasMultipleTiles, headerImage, mct_, resno, scheduler_, tcp_, tile, tilec, tileIndex_, grk::grk::GrkImage::transferDataFrom(), and truncated.
bool grk::grk::TileProcessor::decompressT2T1 | ( | GrkImage * | outputImage | ) |
bool grk::TileProcessor::doCompress | ( | void | ) |
References cp_, grk::PLCache::createMarkers(), current_plugin_tile, grk::PLCache::deleteMarkers(), grk::PLCache::getMarkers(), grk::grk::PLMarkerMgr::getTotalBytesWritten(), grk::grk_plugin_get_debug_state(), GRK_PLUGIN_STATE_DEBUG, GRK_PLUGIN_STATE_MCT_ONLY, packetLengthCache, packetTracker_, preCalculatedTileLen, grk::set_context_stream(), grk::sot_marker_segment_len_minus_tile_data_len, stream_, tcp_, tile, and tileIndex_.
bool grk::grk::TileProcessor::doCompress | ( | void | ) |
|
private |
|
private |
References bandIndex, cblk, cblkno, compno, first_poc_tile_part_, newTilePartProgressionPosition, pino, precinctIndex, resno, stream_, tcp_, tileBand, tilec, and tileIndex_.
|
private |
References grk::grk::GrkImage::duplicate(), grk::grk_object_unref(), and image_.
GrkImage * grk::TileProcessor::getImage | ( | void | ) |
References image_.
Referenced by grk::grk::CodeStreamDecompress::getImage().
GrkImage * grk::grk::TileProcessor::getImage | ( | void | ) |
uint16_t grk::TileProcessor::getIndex | ( | void | ) | const |
References tileIndex_.
Referenced by grk::grk::CodeStreamDecompress::findNextSOT(), and grk::grk::SOTMarker::write().
uint16_t grk::grk::TileProcessor::getIndex | ( | void | ) | const |
uint8_t grk::TileProcessor::getMaxNumDecompressResolutions | ( | void | ) |
References compno, cp_, numresolutions, tile, and tileIndex_.
Referenced by grk::grk::PacketIter::init().
uint8_t grk::grk::TileProcessor::getMaxNumDecompressResolutions | ( | void | ) |
uint64_t grk::TileProcessor::getNumDecompressedPackets | ( | void | ) |
References numDecompressedPackets.
uint64_t grk::grk::TileProcessor::getNumDecompressedPackets | ( | void | ) |
uint64_t grk::TileProcessor::getNumProcessedPackets | ( | void | ) |
References numProcessedPackets.
uint64_t grk::grk::TileProcessor::getNumProcessedPackets | ( | void | ) |
PacketTracker * grk::TileProcessor::getPacketTracker | ( | void | ) |
References packetTracker_.
PacketTracker * grk::grk::TileProcessor::getPacketTracker | ( | void | ) |
uint32_t grk::TileProcessor::getPreCalculatedTileLen | ( | void | ) |
References preCalculatedTileLen.
uint32_t grk::grk::TileProcessor::getPreCalculatedTileLen | ( | void | ) |
Scheduler * grk::TileProcessor::getScheduler | ( | void | ) |
References scheduler_.
Scheduler * grk::grk::TileProcessor::getScheduler | ( | void | ) |
BufferedStream * grk::TileProcessor::getStream | ( | void | ) |
References stream_.
Referenced by grk::grk::SOTMarker::write().
BufferedStream * grk::grk::TileProcessor::getStream | ( | void | ) |
Tile * grk::grk::TileProcessor::getTile | ( | void | ) |
TileCodingParams * grk::TileProcessor::getTileCodingParams | ( | void | ) |
References cp_, and tileIndex_.
TileCodingParams * grk::grk::TileProcessor::getTileCodingParams | ( | void | ) |
uint64_t grk::TileProcessor::getTilePartDataLength | ( | void | ) |
References tilePartDataLength.
uint64_t grk::grk::TileProcessor::getTilePartDataLength | ( | void | ) |
grk_rect32 grk::TileProcessor::getUnreducedTileWindow | ( | void | ) |
References grk::grk::grk_rect< T >::clip(), tile, and unreducedImageWindow.
grk_rect32 grk::grk::TileProcessor::getUnreducedTileWindow | ( | void | ) |
void grk::TileProcessor::incNumDecompressedPackets | ( | void | ) |
References numDecompressedPackets.
void grk::grk::TileProcessor::incNumDecompressedPackets | ( | void | ) |
void grk::TileProcessor::incNumProcessedPackets | ( | uint64_t | numPackets | ) |
References numProcessedPackets.
void grk::grk::TileProcessor::incNumProcessedPackets | ( | uint64_t | numPackets | ) |
void grk::TileProcessor::incNumProcessedPackets | ( | void | ) |
References numProcessedPackets.
void grk::grk::TileProcessor::incNumProcessedPackets | ( | void | ) |
void grk::TileProcessor::incrementIndex | ( | void | ) |
References tileIndex_.
void grk::grk::TileProcessor::incrementIndex | ( | void | ) |
void grk::TileProcessor::ingestImage | ( | ) |
References grk::ceildiv(), headerImage, tile, and tilec.
void grk::grk::TileProcessor::ingestImage | ( | ) |
bool grk::TileProcessor::ingestUncompressedData | ( | uint8_t * | p_src, |
uint64_t | src_length ) |
References grk::grk_copy_strided(), h, headerImage, tile, tilec, and w.
bool grk::grk::TileProcessor::ingestUncompressedData | ( | uint8_t * | p_src, |
uint64_t | src_length ) |
bool grk::TileProcessor::init | ( | void | ) |
bool grk::grk::TileProcessor::init | ( | void | ) |
bool grk::TileProcessor::isCompressor | ( | void | ) |
References isCompressor_.
bool grk::grk::TileProcessor::isCompressor | ( | void | ) |
|
private |
Returns whether a tile component should be fully decompressed, taking into account win_* members.
compno | Component number |
References compno, grk::shift, tile, and tilec.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
References bandIndex, cblk, cblkno, compno, grk::grk::CodePass::distortiondec, layno, numPassesTotal, grk::prepareBlockForFirstLayer(), grk::grk::CodePass::rate, resno, slope, tile, and tilec.
|
private |
|
private |
References tcp_.
|
private |
|
private |
References data, headerImage, mct_, tcp_, and tile.
|
private |
|
private |
References data, headerImage, mct_, tcp_, and tile.
|
private |
|
private |
References compno.
|
private |
|
private |
References grk::GRK_WARN(), headerImage, tcp_, and tile.
|
private |
bool grk::TileProcessor::needsRateControl | ( | ) |
References tcp_.
bool grk::grk::TileProcessor::needsRateControl | ( | ) |
|
private |
References bandIndex, cblk, cblkno, compno, grk::compress_synch_with_plugin(), cp_, grk::PLCache::getMarkers(), grk::grk::RateInfo::getMinimumThresh(), grk::grk_plugin_get_debug_state(), GRK_PLUGIN_STATE_PRE_TR1, headerImage, layno, grk::maxCompressLayersGRK, newTilePartProgressionPosition, packetLengthCache, resno, grk::grk::RateInfo::synch(), tcp_, tile, tilec, and tileIndex_.
|
private |
|
private |
References bandIndex, cblk, cblkno, compno, grk::compress_synch_with_plugin(), cp_, grk::PLCache::getMarkers(), grk::grk_plugin_get_debug_state(), GRK_PLUGIN_STATE_PRE_TR1, headerImage, layno, grk::maxCompressLayersGRK, newTilePartProgressionPosition, packetLengthCache, resno, tcp_, tile, tilec, and tileIndex_.
|
private |
bool grk::TileProcessor::preCompressTile | ( | void | ) |
References cp_, first_poc_tile_part_, grk::GRK_ERROR(), headerImage, tile, tilec, and tilePartCounter_.
bool grk::grk::TileProcessor::preCompressTile | ( | void | ) |
|
private |
References cp_.
|
private |
void grk::TileProcessor::release | ( | GRK_TILE_CACHE_STRATEGY | strategy | ) |
References grk::grk_object_unref(), grk::GRK_TILE_CACHE_NONE, image_, and tile.
void grk::grk::TileProcessor::release | ( | GRK_TILE_CACHE_STRATEGY | strategy | ) |
void grk::TileProcessor::setCorruptPacket | ( | void | ) |
void grk::grk::TileProcessor::setCorruptPacket | ( | void | ) |
bool grk::TileProcessor::setTilePartDataLength | ( | uint16_t | tilePart, |
uint32_t | tilePartLength, | ||
bool | lastTilePartInCodeStream ) |
bool grk::grk::TileProcessor::setTilePartDataLength | ( | uint16_t | tilePart, |
uint32_t | tilePartLength, | ||
bool | lastTilePartInCodeStream ) |
bool grk::TileProcessor::subtractMarkerSegmentLength | ( | uint16_t | markerLen | ) |
References grk::GRK_ERROR(), grk::MARKER_LENGTH_BYTES, and tilePartDataLength.
bool grk::grk::TileProcessor::subtractMarkerSegmentLength | ( | uint16_t | markerLen | ) |
|
private |
References headerImage, mct_norms, mct_numcomps, needsRateControl, scheduler_, tcp_, and tile.
|
private |
bool grk::TileProcessor::writeTilePartT2 | ( | uint32_t * | tileBytesWritten | ) |
bool grk::grk::TileProcessor::writeTilePartT2 | ( | uint32_t * | tileBytesWritten | ) |
|
private |
CodingParams * grk::grk::TileProcessor::cp_ |
Referenced by grk::grk::SOTMarker::write().
grk_plugin_tile * grk::grk::TileProcessor::current_plugin_tile |
bool grk::grk::TileProcessor::first_poc_tile_part_ |
Compression Only true for first POC tile part, otherwise false.
GrkImage * grk::grk::TileProcessor::headerImage |
|
private |
|
private |
|
private |
|
private |
position of the tile part flag in progression order
|
private |
|
private |
PLCache grk::grk::TileProcessor::packetLengthCache |
|
private |
uint32_t grk::grk::TileProcessor::pino |
Compression Only Current packet iterator number.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
index of tile being currently compressed/decompressed
uint8_t grk::grk::TileProcessor::tilePartCounter_ |
Compressing Only index of tile part being currently coding.
tilePartCounter_ holds the total number of tile parts encoded thus far while the compressor is compressing the current tile part.
Referenced by grk::grk::SOTMarker::write().
|
private |
|
private |
|
private |