Grok
7.6.3
|
#include <TileComponentWindowBuffer.h>
Public Member Functions | |
TileComponentWindowBuffer (bool isCompressor, bool lossless, bool wholeTileDecompress, grk_rect_u32 unreducedTileCompDim, grk_rect_u32 reducedTileCompDim, grk_rect_u32 unreducedTileWindowDim, Resolution *tileCompResolutions, uint8_t numresolutions, uint8_t reducedNumResolutions) | |
~TileComponentWindowBuffer () | |
void | transform (uint8_t resno, eBandOrientation orientation, uint32_t &offsetx, uint32_t &offsety) const |
Tranform code block offsets to either band coordinates or resolution coordinates. More... | |
const grk_buffer_2d< T > * | getCodeBlockDestWindow (uint8_t resno, eBandOrientation orientation) const |
Get code block destination window. More... | |
const grk_buffer_2d< T > * | getWindow (uint8_t resno, eBandOrientation orientation) const |
Get non-LL band window. More... | |
const grk_rect_u32 | getPaddedTileBandWindow (uint8_t resno, eBandOrientation orientation) const |
const grk_buffer_2d< T > * | getSplitWindow (uint8_t resno, eSplitOrientation orientation) const |
const grk_buffer_2d< T > * | getWindow (uint32_t resno) const |
Get resolution window. More... | |
const grk_buffer_2d< T > * | getWindow (void) const |
Get tile window. More... | |
bool | alloc () |
grk_rect_u32 | bounds () const |
Get bounds of tile component decompress: reduced tile component coordinates of window compress: unreduced tile component coordinates of entire tile. More... | |
grk_rect_u32 | unreduced_bounds () const |
uint64_t | strided_area (void) const |
void | attach (T *buffer, uint32_t stride) |
void | transfer (T **buffer, bool *owns, uint32_t *stride) |
Private Member Functions | |
bool | useBandWindows () const |
bool | useResCoordsForCodeBlock () const |
uint8_t | getBandIndex (uint8_t resno, eBandOrientation orientation) const |
grk_buffer_2d< T > * | getBandWindow (uint8_t resno, eBandOrientation orientation) const |
If resno is > 0, return HL,LH or HH band window, otherwise return LL resolution window. More... | |
grk_buffer_2d< T > * | getTileBuf () const |
Private Attributes | |
grk_rect_u32 | m_unreducedBounds |
grk_rect_u32 | m_bounds |
std::vector< Resolution * > | m_tileCompResolutions |
std::vector< ResWindow< T > * > | m_resWindows |
uint8_t | m_numResolutions |
bool | m_compress |
bool | m_wholeTileDecompress |
|
inline |
|
inline |
|
inline |
Referenced by grk::init_tilec(), and grk::T1DecompressScheduler::prepareScheduleDecompress().
|
inline |
|
inline |
Get bounds of tile component decompress: reduced tile component coordinates of window compress: unreduced tile component coordinates of entire tile.
Referenced by grk::TileProcessor::is_whole_tilecomp_decoding().
|
inlineprivate |
Referenced by grk::TileComponentWindowBuffer< int32_t >::transform().
|
inlineprivate |
If resno is > 0, return HL,LH or HH band window, otherwise return LL resolution window.
Referenced by grk::TileComponentWindowBuffer< int32_t >::getCodeBlockDestWindow(), and grk::TileComponentWindowBuffer< int32_t >::getWindow().
|
inline |
Get code block destination window.
resno | resolution number |
orientation | band orientation {LL,HL,LH,HH} |
Referenced by grk::TileComponent::postDecompressImpl().
|
inline |
Referenced by grk::TileComponent::subbandIntersectsAOI().
|
inline |
Referenced by grk::decompress_tile_53().
|
inlineprivate |
Referenced by grk::TileComponentWindowBuffer< int32_t >::attach(), grk::TileComponentWindowBuffer< int32_t >::getCodeBlockDestWindow(), grk::TileComponentWindowBuffer< int32_t >::getWindow(), grk::TileComponentWindowBuffer< int32_t >::strided_area(), and grk::TileComponentWindowBuffer< int32_t >::transfer().
|
inline |
Get resolution window.
resno | resolution number |
|
inline |
Get non-LL band window.
resno | resolution number |
orientation | band orientation {0,1,2,3} for {LL,HL,LH,HH} band windows |
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::TileProcessor::mct_decompress(), grk::TileProcessor::mct_encode(), and grk::WaveletForward< DWT >::run().
|
inline |
Get tile window.
|
inline |
|
inline |
Referenced by grk::CodeStream::decompress_tile_t2t1().
|
inline |
Tranform code block offsets to either band coordinates or resolution coordinates.
resno | resolution number |
orientation | band orientation {LL,HL,LH,HH} |
offsetx | x offset of code block in tile component coordinates |
offsety | y offset of code block in tile component coordinates |
Referenced by grk::TileComponent::postDecompressImpl().
|
inline |
Referenced by main().
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
Referenced by grk::TileComponentWindowBuffer< int32_t >::alloc(), grk::TileComponentWindowBuffer< int32_t >::getBandWindow(), grk::TileComponentWindowBuffer< int32_t >::getPaddedTileBandWindow(), grk::TileComponentWindowBuffer< int32_t >::getSplitWindow(), grk::TileComponentWindowBuffer< int32_t >::getTileBuf(), grk::TileComponentWindowBuffer< int32_t >::getWindow(), grk::TileComponentWindowBuffer< int32_t >::TileComponentWindowBuffer(), and grk::TileComponentWindowBuffer< int32_t >::~TileComponentWindowBuffer().
|
private |
|
private |
|
private |