Grok
9.5.0
|
#include <TileComponent.h>
Public Member Functions | |
TileComponent () | |
~TileComponent () | |
bool | allocSparseCanvas (uint32_t numres, bool truncatedTile) |
bool | allocWindowBuffer (grkRectU32 unreducedTileCompOrImageCompWindow) |
void | deallocBuffers (void) |
bool | init (bool isCompressor, bool whole_tile, grkRectU32 unreducedTileComp, uint8_t prec, CodingParams *cp, TileComponentCodingParams *tccp, grk_plugin_tile *current_plugin_tile) |
Initialize tile component in unreduced tile component coordinates (tile component coordinates take sub-sampling into account). More... | |
bool | subbandIntersectsAOI (uint8_t resno, eBandOrientation orient, const grkRectU32 *aoi) const |
TileComponentWindowBuffer< int32_t > * | getBuffer () const |
bool | isWholeTileDecoding () |
ISparseCanvas * | getSparseCanvas () |
bool | postProcess (int32_t *srcData, DecompressBlockExec *block) |
bool | postProcessHT (int32_t *srcData, DecompressBlockExec *block, uint16_t stride) |
![]() | |
grkRect (uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) | |
grkRect (const grkRect &rhs) | |
grkRect (void) | |
void | print (void) const |
std::string | boundsString () |
bool | is_valid (void) const |
bool | non_empty (void) const |
bool | contains (grkPoint< uint32_t > pt) |
grkRect< uint32_t > & | operator= (const grkRect< uint32_t > &rhs) |
grkRect< uint32_t > & | operator= (const grkRect< uint32_t > *rhs) |
bool | operator== (const grkRect< uint32_t > &rhs) const |
void | set (grkRect< uint32_t > *rhs) |
void | set (grkRect< uint32_t > rhs) |
grkRect< uint32_t > | rectceildivpow2 (uint32_t power) const |
grkRect< uint32_t > | rectceildiv (uint32_t den) const |
grkRect< uint32_t > | rectceildiv (uint32_t denx, uint32_t deny) const |
grkRect< uint32_t > | intersection (const grkRect< uint32_t > rhs) const |
grkRect< uint32_t > | intersection (const grkRect< uint32_t > *rhs) const |
bool | isContainedIn (const grkRect< uint32_t > rhs) const |
void | clip (const grkRect< uint32_t > *rhs) |
bool | non_empty_intersection (const grkRect< uint32_t > *rhs) const |
grkRect< uint32_t > | rectUnion (const grkRect< uint32_t > *rhs) const |
grkRect< uint32_t > | rectUnion (const grkRect< uint32_t > &rhs) const |
uint64_t | area (void) const |
uint32_t | width () const |
uint32_t | height () const |
grkLine< uint32_t > | dimX () |
grkLine< uint32_t > | dimY () |
grkRect< uint32_t > | pan (int64_t x, int64_t y) const |
void | panInplace (int64_t x, int64_t y) |
grkRect< uint32_t > & | grow (uint32_t boundary) |
grkRect< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy) |
grkRect< uint32_t > & | grow (uint32_t boundary, uint32_t maxX, uint32_t maxY) |
grkRect< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy, uint32_t maxX, uint32_t maxY) |
grkRect< uint32_t > & | grow (uint32_t boundary, grkRect< uint32_t > bounds) |
grkRect< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy, grkRect< uint32_t > bounds) |
uint32_t | parityX (void) |
uint32_t | parityY (void) |
Public Attributes | |
Resolution * | tileCompResolution |
uint8_t | numresolutions |
uint8_t | resolutions_to_decompress |
uint8_t | resolutions_decompressed |
![]() | |
uint32_t | x0 |
uint32_t | y0 |
uint32_t | x1 |
uint32_t | y1 |
Private Member Functions | |
template<typename F > | |
bool | postDecompressImpl (int32_t *srcData, DecompressBlockExec *block, uint16_t stride) |
Private Attributes | |
ISparseCanvas * | m_sa |
bool | wholeTileDecompress |
bool | m_is_encoder |
TileComponentWindowBuffer< int32_t > * | buf |
TileComponentCodingParams * | m_tccp |
grk::TileComponent::TileComponent | ( | ) |
grk::TileComponent::~TileComponent | ( | ) |
References deallocBuffers(), numresolutions, grk::Subband::precincts, grk::Resolution::tileBand, and tileCompResolution.
bool grk::TileComponent::allocSparseCanvas | ( | uint32_t | numres, |
bool | truncatedTile | ||
) |
References buf, grk::ceildivpow2(), grk::grkRect< T >::clip(), grk::floordivpow2(), grk::TileComponentWindowBuffer< T >::getBandWindowPadded(), grk::grkRect< T >::grow(), grk::grkRect< T >::height(), m_sa, grk::grkRect< T >::rectUnion(), grk::Resolution::tileBand, tileCompResolution, grk::grkRect< T >::width(), grk::grkRect< T >::x0, grk::grkRect< T >::x1, grk::grkRect< T >::y0, and grk::grkRect< T >::y1.
bool grk::TileComponent::allocWindowBuffer | ( | grkRectU32 | unreducedTileCompOrImageCompWindow | ) |
References buf, deallocBuffers(), grk::GRK_ERROR(), m_is_encoder, m_tccp, numresolutions, grk::TileComponentCodingParams::qmfbid, resolutions_to_decompress, tileCompResolution, wholeTileDecompress, grk::grkRect< T >::x0, grk::grkRect< T >::x1, grk::grkRect< T >::y0, and grk::grkRect< T >::y1.
Referenced by grk::init_tilec().
void grk::TileComponent::deallocBuffers | ( | void | ) |
Referenced by allocWindowBuffer(), grk::TileProcessor::deallocBuffers(), and ~TileComponent().
TileComponentWindowBuffer< int32_t > * grk::TileComponent::getBuffer | ( | void | ) | const |
References buf.
Referenced by grk::GrkImage::duplicate(), grk::WaveletFwdImpl::encode_procedure(), grk::GrkImage::generateCompositeBounds(), grk::init_tilec(), grk::TileProcessor::isWholeTileDecompress(), main(), grk::TileProcessor::mct_encode(), grk::TileProcessor::mctDecompress(), grk::TileProcessor::needsMctDecompress(), and grk::T1DecompressScheduler::prepareScheduleDecompress().
ISparseCanvas * grk::TileComponent::getSparseCanvas | ( | ) |
References m_sa.
bool grk::TileComponent::init | ( | bool | isCompressor, |
bool | whole_tile, | ||
grkRectU32 | unreducedTileComp, | ||
uint8_t | prec, | ||
CodingParams * | cp, | ||
TileComponentCodingParams * | tccp, | ||
grk_plugin_tile * | current_plugin_tile | ||
) |
Initialize tile component in unreduced tile component coordinates (tile component coordinates take sub-sampling into account).
References grk::BAND_ORIENT_LL, DEBUG_TILE_COMPONENT, grk::floordivpow2(), grk::GRK_ERROR(), grk::grkRect< T >::height(), grk::CodingParams::m_coding_params, grk::CodingParams::m_dec, m_is_encoder, grk::DecodingParams::m_reduce, m_tccp, grk::TileComponentCodingParams::numgbits, grk::TileComponentCodingParams::numresolutions, numresolutions, grk::TileComponentCodingParams::precinctHeightExp, grk::TileComponentCodingParams::precinctWidthExp, grk::TileComponentCodingParams::qmfbid, resolutions_to_decompress, grk::TileComponentCodingParams::roishift, grk::grkRect< T >::set(), grk::grkRect< uint32_t >::set(), grk::TileComponentCodingParams::stepsizes, grk::Resolution::tileBand, tileCompResolution, wholeTileDecompress, grk::grkRect< T >::width(), grk::grkRect< T >::x0, grk::grkRect< T >::x1, grk::grkRect< T >::y0, and grk::grkRect< T >::y1.
bool grk::TileComponent::isWholeTileDecoding | ( | ) |
References wholeTileDecompress.
Referenced by grk::T1DecompressScheduler::prepareScheduleDecompress().
|
private |
References grk::BAND_ORIENT_LL, grk::BlockExec::bandOrientation, buf, grk::DecompressBlockExec::cblk, grk::grkBuffer2d< T, A >::copy(), grk::TileComponentWindowBuffer< T >::getCodeBlockDestWindowREL(), m_sa, grk::DecompressBlockExec::resno, grk::grkRect< T >::set(), grk::TileComponentWindowBuffer< T >::toRelativeCoordinates(), grk::grkRect< T >::width(), grk::ISparseCanvas::write(), grk::BlockExec::x, and grk::BlockExec::y.
bool grk::TileComponent::postProcess | ( | int32_t * | srcData, |
DecompressBlockExec * | block | ||
) |
References grk::DecompressBlockExec::cblk, grk::BlockExec::qmfbid, grk::DecompressBlockExec::roishift, and grk::grkRect< T >::width().
Referenced by grk::t1_part1::T1Part1::decompress().
bool grk::TileComponent::postProcessHT | ( | int32_t * | srcData, |
DecompressBlockExec * | block, | ||
uint16_t | stride | ||
) |
References grk::BlockExec::qmfbid, and grk::DecompressBlockExec::roishift.
Referenced by ojph::T1OJPH::decompress(), and openhtj2k::T1OpenHTJ2K::decompress().
bool grk::TileComponent::subbandIntersectsAOI | ( | uint8_t | resno, |
eBandOrientation | orient, | ||
const grkRectU32 * | aoi | ||
) | const |
|
private |
Referenced by allocSparseCanvas(), allocWindowBuffer(), deallocBuffers(), getBuffer(), postDecompressImpl(), and subbandIntersectsAOI().
|
private |
Referenced by allocWindowBuffer(), and init().
|
private |
Referenced by allocSparseCanvas(), deallocBuffers(), getSparseCanvas(), and postDecompressImpl().
|
private |
Referenced by allocWindowBuffer(), and init().
uint8_t grk::TileComponent::numresolutions |
uint8_t grk::TileComponent::resolutions_decompressed |
uint8_t grk::TileComponent::resolutions_to_decompress |
Referenced by allocWindowBuffer(), init(), grk::init_tilec(), and grk::T1DecompressScheduler::prepareScheduleDecompress().
Resolution* grk::TileComponent::tileCompResolution |
Referenced by allocSparseCanvas(), allocWindowBuffer(), grk::T2Compress::compressPacketSimulate(), grk::T2Decompress::decompressPacket(), grk::WaveletFwdImpl::encode_procedure(), grk::TileProcessor::encodeT2(), init(), grk::TileProcessor::init(), grk::init_tilec(), grk::TileProcessor::makeLayerFeasible(), grk::TileProcessor::makeLayerFinal(), grk::TileProcessor::makeLayerSimple(), grk::TileProcessor::pcrdBisectFeasible(), grk::TileProcessor::pcrdBisectSimple(), grk::T1DecompressScheduler::prepareScheduleDecompress(), grk::T2Decompress::readPacketHeader(), grk::set_context_stream(), and ~TileComponent().
|
private |
Referenced by allocWindowBuffer(), init(), and isWholeTileDecoding().