|
Grok
7.6.6
|
#include <TileComponent.h>
Public Member Functions | |
| TileComponent () | |
| ~TileComponent () | |
| bool | create_buffer (grk_rect_u32 *unreducedTileComp, grk_rect_u32 unreducedTileOrImageCompWindow) |
| bool | init (bool isCompressor, bool whole_tile, grk_rect_u32 unreducedTileComp, grk_rect_u32 unreducedTileOrImageCompWindow, uint8_t prec, CodingParams *cp, TileCodingParams *tcp, 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... | |
| void | allocSparseBuffer (uint32_t numres) |
| void | release_mem (bool releaseBuffer) |
| bool | subbandIntersectsAOI (uint8_t resno, eBandOrientation orient, const grk_rect_u32 *aoi) const |
| TileComponentWindowBuffer< int32_t > * | getBuffer () const |
| bool | isWholeTileDecoding () |
| ISparseBuffer * | getSparseBuffer () |
| bool | postDecompress (int32_t *srcData, DecompressBlockExec *block, bool isHT) |
Public Member Functions inherited from grk::grk_rectangle< uint32_t > | |
| grk_rectangle (uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) | |
| grk_rectangle (const grk_rectangle &rhs) | |
| grk_rectangle (void) | |
| void | print (void) const |
| bool | is_valid (void) const |
| bool | non_empty (void) const |
| bool | contains (grk_point< uint32_t > pt) |
| grk_rectangle< uint32_t > & | operator= (const grk_rectangle< uint32_t > &rhs) |
| bool | operator== (const grk_rectangle< uint32_t > &rhs) const |
| void | set_rect (grk_rectangle< uint32_t > *rhs) |
| void | set_rect (grk_rectangle< uint32_t > rhs) |
| grk_rectangle< uint32_t > | rectceildivpow2 (uint32_t power) const |
| grk_rectangle< uint32_t > | rectceildiv (uint32_t den) const |
| grk_rectangle< uint32_t > | rectceildiv (uint32_t denx, uint32_t deny) const |
| grk_rectangle< uint32_t > | intersection (const grk_rectangle< uint32_t > rhs) const |
| grk_rectangle< uint32_t > | intersection (const grk_rectangle< uint32_t > *rhs) const |
| bool | isContainedIn (const grk_rectangle< uint32_t > rhs) const |
| void | clip (const grk_rectangle< uint32_t > *rhs) |
| grk_rectangle< uint32_t > | rect_union (const grk_rectangle< uint32_t > *rhs) const |
| grk_rectangle< uint32_t > | rect_union (const grk_rectangle< uint32_t > &rhs) const |
| uint64_t | area (void) const |
| uint32_t | width () const |
| uint32_t | height () const |
| grk_line< uint32_t > | dimX () |
| grk_line< uint32_t > | dimY () |
| grk_rectangle< uint32_t > | pan (int64_t x, int64_t y) const |
| void | pan_inplace (int64_t x, int64_t y) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundary) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundary, uint32_t maxX, uint32_t maxY) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy, uint32_t maxX, uint32_t maxY) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundary, grk_rectangle< uint32_t > bounds) |
| grk_rectangle< uint32_t > & | grow (uint32_t boundaryx, uint32_t boundaryy, grk_rectangle< uint32_t > bounds) |
Public Attributes | |
| Resolution * | resolutions |
| uint8_t | numresolutions |
| uint8_t | resolutions_to_decompress |
| uint8_t | resolutions_decompressed |
Public Attributes inherited from grk::grk_rectangle< 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) |
Private Attributes | |
| ISparseBuffer * | m_sa |
| bool | wholeTileDecompress |
| bool | m_is_encoder |
| TileComponentWindowBuffer< int32_t > * | buf |
| TileComponentCodingParams * | m_tccp |
| grk::TileComponent::TileComponent | ( | ) |
| grk::TileComponent::~TileComponent | ( | ) |
References release_mem().
| void grk::TileComponent::allocSparseBuffer | ( | uint32_t | numres | ) |
| bool grk::TileComponent::create_buffer | ( | grk_rect_u32 * | unreducedTileComp, |
| grk_rect_u32 | unreducedTileOrImageCompWindow | ||
| ) |
References grk::Resolution::band, buf, grk::getTileCompBandWindow(), grk::GRK_ERROR(), m_is_encoder, m_tccp, numresolutions, grk::TileComponentCodingParams::qmfbid, resolutions, resolutions_to_decompress, grk::grk_rectangle< T >::set_rect(), wholeTileDecompress, grk::grk_rectangle< T >::x0, grk::grk_rectangle< T >::x1, grk::grk_rectangle< T >::y0, and grk::grk_rectangle< T >::y1.
Referenced by init(), and grk::init_tilec().
| TileComponentWindowBuffer< int32_t > * grk::TileComponent::getBuffer | ( | ) | const |
References buf.
Referenced by grk::mct::decompress_dc_shift_irrev(), grk::mct::decompress_dc_shift_rev(), grk::mct::decompress_irrev(), grk::mct::decompress_rev(), grk::decompress_tile_53(), grk::GrkImage::duplicate(), grk::init_tilec(), grk::TileProcessor::is_whole_tilecomp_decoding(), main(), grk::TileProcessor::mct_decompress(), grk::TileProcessor::mct_encode(), grk::TileProcessor::need_mct_decompress(), grk::T1DecompressScheduler::prepareScheduleDecompress(), and grk::WaveletForward< DWT >::run().
| ISparseBuffer * grk::TileComponent::getSparseBuffer | ( | ) |
References m_sa.
| bool grk::TileComponent::init | ( | bool | isCompressor, |
| bool | whole_tile, | ||
| grk_rect_u32 | unreducedTileComp, | ||
| grk_rect_u32 | unreducedTileOrImageCompWindow, | ||
| uint8_t | prec, | ||
| CodingParams * | cp, | ||
| TileCodingParams * | tcp, | ||
| 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::Resolution::band, grk::BAND_ORIENT_LL, create_buffer(), DEBUG_TILE_COMPONENT, grk::getTileCompBandWindow(), grk::GRK_ERROR(), grk::grk_rectangle< T >::height(), grk::CodingParams::m_coding_params, grk::CodingParams::m_dec, m_is_encoder, grk::DecodingParams::m_reduce, m_tccp, grk::TileComponentCodingParams::numresolutions, numresolutions, grk::TileComponentCodingParams::prch_exp, grk::TileComponentCodingParams::prcw_exp, grk::TileComponentCodingParams::quant, resolutions, resolutions_to_decompress, grk::grk_rectangle< uint32_t >::set_rect(), grk::Quantizer::setBandStepSizeAndBps(), grk::uint_floordivpow2(), wholeTileDecompress, grk::grk_rectangle< T >::width(), grk::grk_rectangle< T >::x0, grk::grk_rectangle< T >::x1, grk::grk_rectangle< T >::y0, and grk::grk_rectangle< T >::y1.
| bool grk::TileComponent::isWholeTileDecoding | ( | ) |
References wholeTileDecompress.
| bool grk::TileComponent::postDecompress | ( | int32_t * | srcData, |
| DecompressBlockExec * | block, | ||
| bool | isHT | ||
| ) |
References grk::BlockExec::qmfbid, and grk::DecompressBlockExec::roishift.
Referenced by grk::t1_ht::T1HT::decompress(), and grk::t1_part1::T1Part1::decompress().
|
private |
References grk::BlockExec::band_orientation, buf, grk::DecompressBlockExec::cblk, grk::grk_buffer_2d< T >::copy(), grk::TileComponentWindowBuffer< T >::getCodeBlockDestWindow(), m_sa, grk::DecompressBlockExec::resno, grk::grk_rectangle< T >::set_rect(), grk::TileComponentWindowBuffer< T >::transform(), grk::ISparseBuffer::write(), grk::BlockExec::x, and grk::BlockExec::y.
| void grk::TileComponent::release_mem | ( | bool | releaseBuffer | ) |
References grk::Resolution::band, buf, m_sa, numresolutions, grk::Subband::precincts, and resolutions.
Referenced by ~TileComponent().
| bool grk::TileComponent::subbandIntersectsAOI | ( | uint8_t | resno, |
| eBandOrientation | orient, | ||
| const grk_rect_u32 * | aoi | ||
| ) | const |
|
private |
Referenced by create_buffer(), getBuffer(), postDecompressImpl(), release_mem(), and subbandIntersectsAOI().
|
private |
Referenced by create_buffer(), and init().
|
private |
Referenced by allocSparseBuffer(), getSparseBuffer(), postDecompressImpl(), and release_mem().
|
private |
Referenced by create_buffer(), and init().
| uint8_t grk::TileComponent::numresolutions |
| Resolution* grk::TileComponent::resolutions |
Referenced by allocSparseBuffer(), grk::T2Compress::compress_packet(), grk::T2Compress::compress_packet_simulate(), create_buffer(), grk::T2Decompress::decompress_packet(), grk::decompress_tile_53(), init(), grk::TileProcessor::init(), grk::init_tilec(), grk::TileProcessor::make_layer_simple(), grk::TileProcessor::makelayer_feasible(), grk::TileProcessor::makelayer_final(), grk::TileProcessor::pcrd_bisect_feasible(), grk::TileProcessor::pcrd_bisect_simple(), grk::T1DecompressScheduler::prepareScheduleDecompress(), grk::T2Decompress::read_packet_header(), release_mem(), grk::WaveletForward< DWT >::run(), grk::set_context_stream(), and grk::TileProcessor::t2_encode().
| uint8_t grk::TileComponent::resolutions_decompressed |
| uint8_t grk::TileComponent::resolutions_to_decompress |
Referenced by create_buffer(), init(), grk::init_tilec(), and grk::T1DecompressScheduler::prepareScheduleDecompress().
|
private |
Referenced by create_buffer(), init(), isWholeTileDecoding(), and subbandIntersectsAOI().