|
Grok
9.7.5
|
#include <TileComponent.h>
Public Member Functions | |
| TileComponent () | |
| ~TileComponent () | |
| bool | allocSparseCanvas (uint32_t numres, bool truncatedTile) |
| bool | allocWindowBuffer (grk_rect32 unreducedTileCompOrImageCompWindow) |
| void | deallocBuffers (void) |
| bool | init (bool isCompressor, bool whole_tile, grk_rect32 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 grk_rect32 *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) |
Public Member Functions inherited from grk::grk_rect< uint32_t > | |
| grk_rect (uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) | |
| grk_rect (const grk_rect &rhs) | |
| grk_rect (const grk_rect *rhs) | |
| grk_rect (void) | |
| virtual | ~grk_rect ()=default |
| virtual void | print (void) const |
| std::string | boundsString () const |
| bool | valid (void) const |
| bool | empty (void) const |
| bool | contains (grk_pt< uint32_t > pt) |
| grk_rect< uint32_t > & | operator= (const grk_rect< uint32_t > &rhs) |
| grk_rect< uint32_t > & | operator= (const grk_rect< uint32_t > *rhs) |
| bool | operator== (const grk_rect< uint32_t > &rhs) const |
| void | set (grk_rect< uint32_t > *rhs) |
| void | set (grk_rect< uint32_t > rhs) |
| grk_rect< uint32_t > | scaleDownCeil (uint32_t den) const |
| grk_rect< uint32_t > | scaleDownCeil (uint64_t denx, uint64_t deny) const |
| grk_rect< uint32_t > | scale (uint32_t scalex, uint32_t scaley) const |
| grk_rect< uint32_t > | scaleDown (uint64_t denx, uint64_t deny) const |
| grk_rect< uint32_t > | scaleDownPow2 (uint32_t powx, uint32_t powy) const |
| grk_rect< uint32_t > | scaleDownPow2 (grk_pt< uint32_t > pow) const |
| grk_rect< uint32_t > | scaleDownCeilPow2 (uint32_t power) const |
| grk_rect< uint32_t > | scaleDownCeilPow2 (uint32_t powx, uint32_t powy) const |
| grk_rect< uint32_t > | intersection (const grk_rect< uint32_t > rhs) const |
| grk_rect< uint32_t > | intersection (const grk_rect< uint32_t > *rhs) const |
| bool | isContainedIn (const grk_rect< uint32_t > rhs) const |
| grk_rect< uint32_t > | clip (const grk_rect< uint32_t > *rhs) const |
| grk_rect< uint32_t > | clip (const grk_rect< uint32_t > &rhs) const |
| void | clipIPL (const grk_rect< uint32_t > *rhs) |
| bool | nonEmptyIntersection (const grk_rect< uint32_t > *rhs) const |
| grk_rect< uint32_t > | rectUnion (const grk_rect< uint32_t > *rhs) const |
| grk_rect< uint32_t > | rectUnion (const grk_rect< uint32_t > &rhs) const |
| uint64_t | area (void) const |
| uint32_t | width () const |
| uint32_t | height () const |
| grk_line< uint32_t > | dimX () const |
| grk_line< uint32_t > | dimY () const |
| grk_rect< uint32_t > | pan (int64_t x, int64_t y) const |
| grk_rect< uint32_t > & | growIPL (uint32_t boundary) |
| grk_rect< uint32_t > & | growIPL (uint32_t boundaryx, uint32_t boundaryy) |
| grk_rect< uint32_t > & | growIPL (uint32_t boundary, uint32_t maxX, uint32_t maxY) |
| grk_rect< uint32_t > & | growIPL (uint32_t boundaryx, uint32_t boundaryy, uint32_t maxX, uint32_t maxY) |
| grk_rect< uint32_t > & | growIPL (uint32_t boundary, grk_rect< uint32_t > bounds) |
| grk_rect< uint32_t > & | growIPL (uint32_t boundaryx, uint32_t boundaryy, grk_rect< uint32_t > bounds) |
| uint32_t | parityX (void) const |
| uint32_t | parityY (void) const |
Public Attributes | |
| Resolution * | tileCompResolution |
| uint8_t | numresolutions |
| uint8_t | numResolutionsToDecompress |
| uint8_t | highestResolutionDecompressed |
Public Attributes inherited from grk::grk_rect< uint32_t > | |
| 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 * | sa_ |
| bool | wholeTileDecompress |
| bool | isCompressor_ |
| TileComponentWindowBuffer< int32_t > * | buf |
| TileComponentCodingParams * | 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::grk_rect< T >::clip(), grk::TileComponentWindowBuffer< T >::getBandWindowPadded(), grk::grk_rect< T >::growIPL(), grk::grk_rect< T >::height(), grk::grk_rect< T >::rectUnion(), sa_, grk::grk_rect< T >::scaleDownPow2(), grk::Resolution::tileBand, tileCompResolution, and grk::grk_rect< T >::width().
Referenced by grk::TileProcessor::decompressT2T1().
| bool grk::TileComponent::allocWindowBuffer | ( | grk_rect32 | unreducedTileCompOrImageCompWindow | ) |
| void grk::TileComponent::deallocBuffers | ( | void | ) |
Referenced by allocWindowBuffer(), grk::TileProcessor::deallocBuffers(), and ~TileComponent().
| TileComponentWindowBuffer< int32_t > * grk::TileComponent::getBuffer | ( | void | ) | const |
| ISparseCanvas * grk::TileComponent::getSparseCanvas | ( | ) |
References sa_.
| bool grk::TileComponent::init | ( | bool | isCompressor, |
| bool | whole_tile, | ||
| grk_rect32 | 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, grk::CodingParams::coding_params_, DEBUG_TILE_COMPONENT, grk::CodingParams::dec_, grk::floordivpow2(), grk::GRK_ERROR(), grk::grk_rect< T >::height(), isCompressor_, grk::TileComponentCodingParams::numgbits, grk::TileComponentCodingParams::numresolutions, numresolutions, numResolutionsToDecompress, grk::TileComponentCodingParams::precHeightExp, grk::TileComponentCodingParams::precWidthExp, grk::TileComponentCodingParams::qmfbid, grk::DecodingParams::reduce_, grk::TileComponentCodingParams::roishift, grk::grk_rect< T >::set(), grk::grk_rect< uint32_t >::set(), grk::TileComponentCodingParams::stepsizes, tccp_, grk::Resolution::tileBand, tileCompResolution, wholeTileDecompress, grk::grk_rect< T >::width(), grk::grk_rect< T >::x0, grk::grk_rect< T >::x1, grk::grk_rect< T >::y0, and grk::grk_rect< T >::y1.
| bool grk::TileComponent::isWholeTileDecoding | ( | ) |
References wholeTileDecompress.
Referenced by grk::DecompressScheduler::scheduleBlocks().
|
private |
References grk::BAND_ORIENT_LL, grk::BlockExec::bandOrientation, buf, grk::DecompressBlockExec::cblk, grk::grk_buf2d< T, A >::copy(), grk::TileComponentWindowBuffer< T >::getCodeBlockDestWindowREL(), grk::DecompressBlockExec::resno, sa_, grk::grk_rect< T >::set(), grk::TileComponentWindowBuffer< T >::toRelativeCoordinates(), grk::grk_rect< 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::grk_rect< 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 grk_rect32 * | aoi | ||
| ) | const |
|
private |
Referenced by allocSparseCanvas(), allocWindowBuffer(), deallocBuffers(), getBuffer(), postDecompressImpl(), and subbandIntersectsAOI().
| uint8_t grk::TileComponent::highestResolutionDecompressed |
Referenced by grk::DecompressScheduler::scheduleWavelet().
|
private |
Referenced by allocWindowBuffer(), and init().
| uint8_t grk::TileComponent::numresolutions |
| uint8_t grk::TileComponent::numResolutionsToDecompress |
Referenced by allocWindowBuffer(), and init().
|
private |
Referenced by allocSparseCanvas(), deallocBuffers(), getSparseCanvas(), and postDecompressImpl().
|
private |
Referenced by allocWindowBuffer(), and init().
| 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::TileProcessor::makeLayerFeasible(), grk::TileProcessor::makeLayerFinal(), grk::TileProcessor::makeLayerSimple(), grk::TileProcessor::pcrdBisectFeasible(), grk::TileProcessor::pcrdBisectSimple(), grk::T2Decompress::readPacketHeader(), grk::set_context_stream(), and ~TileComponent().
|
private |
Referenced by allocWindowBuffer(), init(), and isWholeTileDecoding().