|
Grok 15.1.0
|
#include <TileComponentWindow.h>
Public Types | |
| typedef grk_buf2d< T, AllocatorAligned > | Buf2dAligned |
Public Member Functions | |
| TileComponentWindow (bool isCompressor, bool lossless, bool wholeTileDecompress, grk_rect32 unreducedTileComp, grk_rect32 reducedTileComp, grk_rect32 unreducedImageCompWindow, uint8_t numresolutions, uint8_t reducedNumResolutions) | |
| ~TileComponentWindow ()=default | |
| void | toRelativeCoordinates (uint8_t resno, eBandOrientation orientation, uint32_t &offsetx, uint32_t &offsety) const |
| Transform code block offsets from canvas coordinates to either band coordinates (relative to sub band origin), in the case of whole tile decompression,. | |
| template<typename F> | |
| void | postProcess (Buf2dAligned &src, uint8_t resno, eBandOrientation bandOrientation, DecompressBlockExec *block) |
| const Buf2dAligned * | getBandWindowBufferPaddedREL (uint8_t resno, eBandOrientation orientation) const |
| Get padded band window buffer. | |
| const grk_buf2d_simple< int32_t > | getBandWindowBufferPaddedSimple (uint8_t resno, eBandOrientation orientation) const |
| Get padded band window buffer. | |
| const grk_buf2d_simple< float > | getBandWindowBufferPaddedSimpleF (uint8_t resno, eBandOrientation orientation) const |
| Get padded band window buffer. | |
| const grk_rect32 * | getBandWindowPadded (uint8_t resno, eBandOrientation orientation) const |
| Get padded band window. | |
| const Buf2dAligned * | getResWindowBufferSplitREL (uint8_t resno, eSplitOrientation orientation) const |
| const grk_buf2d_simple< int32_t > | getResWindowBufferSplitSimple (uint8_t resno, eSplitOrientation orientation) const |
| const grk_buf2d_simple< float > | getResWindowBufferSplitSimpleF (uint8_t resno, eSplitOrientation orientation) const |
| const Buf2dAligned * | getResWindowBufferREL (uint32_t resno) const |
| Get resolution window. | |
| const grk_buf2d_simple< int32_t > | getResWindowBufferSimple (uint32_t resno) const |
| Get resolution window. | |
| const grk_buf2d_simple< float > | getResWindowBufferSimpleF (uint32_t resno) const |
| Get resolution window. | |
| uint32_t | getResWindowBufferHighestStride (void) const |
| Get highest resolution window. | |
| grk_buf2d_simple< int32_t > | getResWindowBufferHighestSimple (void) const |
| Get highest resolution window. | |
| grk_buf2d_simple< float > | getResWindowBufferHighestSimpleF (void) const |
| Get highest resolution window. | |
| uint64_t | stridedArea (void) const |
| void | attach (T *buffer, uint32_t stride) |
| void | transfer (T **buffer, uint32_t *stride) |
| Public Member Functions inherited from grk::TileComponentWindowBase< T > | |
| TileComponentWindowBase (bool isCompressor, bool lossless, bool wholeTileDecompress, grk_rect32 unreducedTileComp, grk_rect32 reducedTileComp, grk_rect32 unreducedImageCompWindow, uint8_t numresolutions, uint8_t reducedNumResolutions) | |
| virtual | ~TileComponentWindowBase () |
| grk_rect32 | bounds () const |
| Get bounds of tile component (canvas coordinates) decompress: reduced canvas coordinates of window compress: unreduced canvas coordinates of entire tile. | |
| grk_rect32 | unreducedBounds () const |
| bool | alloc () |
Private Member Functions | |
| const Buf2dAligned * | getCodeBlockDestWindowREL (uint8_t resno, eBandOrientation orientation) const |
| Get code block destination window. | |
| Buf2dAligned * | getResWindowBufferHighestREL (void) const |
| Get highest resolution window. | |
| bool | useBufferCoordinatesForCodeblock () const |
| uint8_t | getBandIndex (uint8_t resno, eBandOrientation orientation) const |
Additional Inherited Members | |
| Protected Member Functions inherited from grk::TileComponentWindowBase< T > | |
| bool | useBandWindows () const |
| Protected Attributes inherited from grk::TileComponentWindowBase< T > | |
| std::vector< ResWindow< T > * > | resWindows |
| grk_rect32 | unreducedBounds_ |
| grk_rect32 | bounds_ |
| std::vector< ResSimple > | resolution_ |
| bool | compress_ |
| bool | wholeTileDecompress_ |
| typedef grk_buf2d<T, AllocatorAligned> grk::TileComponentWindow< T >::Buf2dAligned |
|
inline |
|
default |
|
inline |
References grk::grk_buf2d< T, A >::attach(), and getResWindowBufferHighestREL().
|
inlineprivate |
Referenced by toRelativeCoordinates().
|
inline |
Get padded band window buffer.
| resno | resolution number |
| orientation | band orientation {0,1,2,3} for {LL,HL,LH,HH} band windows |
If resno is > 0, return LL,HL,LH or HH band window, otherwise return LL resolution window
References grk::BAND_ORIENT_LL, grk::TileComponentWindowBase< T >::compress_, grk::TileComponentWindowBase< T >::resolution_, grk::TileComponentWindowBase< T >::resWindows, and grk::TileComponentWindowBase< T >::wholeTileDecompress_.
Referenced by getCodeBlockDestWindowREL().
|
inline |
Get padded band window buffer.
| resno | resolution number |
| orientation | band orientation {0,1,2,3} for {LL,HL,LH,HH} band windows |
If resno is > 0, return LL,HL,LH or HH band window, otherwise return LL resolution window
References grk::BAND_ORIENT_LL, grk::TileComponentWindowBase< T >::compress_, grk::TileComponentWindowBase< T >::resolution_, grk::TileComponentWindowBase< T >::resWindows, and grk::TileComponentWindowBase< T >::wholeTileDecompress_.
|
inline |
Get padded band window buffer.
| resno | resolution number |
| orientation | band orientation {0,1,2,3} for {LL,HL,LH,HH} band windows |
If resno is > 0, return LL,HL,LH or HH band window, otherwise return LL resolution window
References grk::BAND_ORIENT_LL, grk::TileComponentWindowBase< T >::compress_, grk::TileComponentWindowBase< T >::resolution_, grk::TileComponentWindowBase< T >::resWindows, and grk::TileComponentWindowBase< T >::wholeTileDecompress_.
|
inline |
Get padded band window.
| resno | resolution number |
| orientation | band orientation {0,1,2,3} for {LL,HL,LH,HH} band windows |
References grk::TileComponentWindowBase< T >::resWindows.
|
inlineprivate |
Get code block destination window.
| resno | resolution number |
| orientation | band orientation {LL,HL,LH,HH} |
References getBandWindowBufferPaddedREL(), getResWindowBufferHighestREL(), and useBufferCoordinatesForCodeblock().
Referenced by postProcess().
|
inlineprivate |
Get highest resolution window.
References grk::TileComponentWindowBase< T >::resWindows.
Referenced by attach(), getCodeBlockDestWindowREL(), getResWindowBufferHighestSimple(), getResWindowBufferHighestSimpleF(), getResWindowBufferHighestStride(), stridedArea(), and transfer().
|
inline |
Get highest resolution window.
References getResWindowBufferHighestREL(), and grk::grk_buf2d< T, A >::simple().
Referenced by grk::WaveletFwdImpl::encode_procedure(), grk::HWY_NAMESPACE::CompressIrrev::transform(), grk::HWY_NAMESPACE::CompressRev::transform(), grk::HWY_NAMESPACE::DecompressDcShiftRev::transform(), grk::HWY_NAMESPACE::DecompressRev::transform(), and grk::HWY_NAMESPACE::vscheduler().
|
inline |
Get highest resolution window.
References getResWindowBufferHighestREL(), and grk::grk_buf2d< T, A >::simpleF().
Referenced by grk::HWY_NAMESPACE::DecompressDcShiftIrrev::transform(), and grk::HWY_NAMESPACE::DecompressIrrev::transform().
|
inline |
Get highest resolution window.
References getResWindowBufferHighestREL(), and grk::grk_buf2d< T, A >::stride.
Referenced by grk::HWY_NAMESPACE::CompressIrrev::transform(), grk::HWY_NAMESPACE::CompressRev::transform(), grk::HWY_NAMESPACE::DecompressDcShiftRev::transform(), grk::HWY_NAMESPACE::DecompressIrrev::transform(), and grk::HWY_NAMESPACE::DecompressRev::transform().
|
inline |
Get resolution window.
| resno | resolution number |
References grk::TileComponentWindowBase< T >::resWindows.
Referenced by getResWindowBufferSimple(), and getResWindowBufferSimpleF().
|
inline |
Get resolution window.
| resno | resolution number |
References getResWindowBufferREL(), and grk::grk_buf2d< T, A >::simple().
|
inline |
Get resolution window.
| resno | resolution number |
References getResWindowBufferREL(), and grk::grk_buf2d< T, A >::simpleF().
|
inline |
References grk::TileComponentWindowBase< T >::resolution_, and grk::TileComponentWindowBase< T >::resWindows.
Referenced by getResWindowBufferSplitSimple(), and getResWindowBufferSplitSimpleF().
|
inline |
References getResWindowBufferSplitREL(), and grk::grk_buf2d< T, A >::simple().
|
inline |
References getResWindowBufferSplitREL(), and grk::grk_buf2d< T, A >::simpleF().
|
inline |
References grk::grk_buf2d< T, A >::copyFrom(), and getCodeBlockDestWindowREL().
|
inline |
References getResWindowBufferHighestREL().
|
inline |
Transform code block offsets from canvas coordinates to either band coordinates (relative to sub band origin), in the case of whole tile decompression,.
or buffer coordinates (relative to associated resolution origin), in the case of compression or region decompression
| resno | resolution number |
| orientation | band orientation {LL,HL,LH,HH} |
| offsetx | x offset of code block in canvas coordinates |
| offsety | y offset of code block in canvas coordinates |
References getBandIndex(), grk::TileComponentWindowBase< T >::resolution_, and useBufferCoordinatesForCodeblock().
|
inline |
References getResWindowBufferHighestREL(), and grk::grk_buf2d< T, A >::transfer().
|
inlineprivate |
References grk::TileComponentWindowBase< T >::compress_, and grk::TileComponentWindowBase< T >::wholeTileDecompress_.
Referenced by getCodeBlockDestWindowREL(), and toRelativeCoordinates().