|
Grok 20.3.2
|
Stores a tile component resolution's dimensions, sub bands and other information. More...
#include <Resolution.h>
Public Member Functions | |
| Resolution (void)=default | |
| Constructs a new Resolution object. | |
| virtual | ~Resolution (void) |
| Destroys the Resolution object. | |
| virtual void | print () const override |
| bool | init (grk_plugin_tile *currentPluginTile, bool isCompressor, uint16_t numLayers, ITileProcessor *tileProcessor, TileComponentCodingParams *tccp, uint8_t resno) |
| Initializes a Resolution. | |
| Public Member Functions inherited from grk::Rect< uint32_t > | |
| Rect (uint32_t origin_x0, uint32_t origin_y0, uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) | |
| Rect (uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) | |
| Rect (const Rect &rhs) | |
| Rect (const Rect *rhs) | |
| Rect (void) | |
| virtual | ~Rect ()=default |
| Rect< uint32_t > & | setOrigin (uint32_t origx, uint32_t origy, bool absolute) |
| Rect< uint32_t > & | setOrigin (const Rect< uint32_t > &rhs, bool absolute) |
| Rect< uint32_t > & | setOrigin (const Rect< uint32_t > *rhs, bool absolute) |
| Rect< uint32_t > & | toRelative (void) |
| Rect< uint32_t > & | toAbsolute (void) |
| bool | valid (void) const |
| bool | empty (void) const |
| bool | contains (Point< uint32_t > pt) |
| bool | contains (uint32_t x, uint32_t y) |
| Rect< uint32_t > & | operator= (const Rect &rhs) |
| Rect< uint32_t > & | operator= (const Rect *rhs) |
| bool | operator!= (const Rect &other) const |
| bool | operator== (const Rect &rhs) const |
| void | setRect (const Rect *rhs) |
| void | setRect (const Rect &rhs) |
| Rect< uint32_t > | scaleDownCeil (uint32_t den) const |
| Rect< uint32_t > | scale (uint32_t scalex, uint32_t scaley) const |
| Rect< uint32_t > | scaleDown (uint64_t denx, uint64_t deny) const |
| Rect< uint32_t > | scaleDownPow2 (uint8_t powx, uint8_t powy) const |
| Rect< uint32_t > | scaleDownPow2 (Point8 pow) const |
| Rect< uint32_t > | scaleDownCeil (uint64_t denx, uint64_t deny) const |
| Rect< uint32_t > | scaleDownCeilPow2 (uint8_t power) const |
| Rect< uint32_t > | scaleDownCeilPow2 (uint8_t powx, uint8_t powy) const |
| Rect< uint32_t > | intersection (const Rect< uint32_t > &rhs) const |
| Rect< uint32_t > | clip (const Rect *rhs) const |
| Rect< uint32_t > | clip (const Rect32_16 &rhs) const |
| Rect< uint32_t > | clip (const Rect32_16 *rhs) const |
| Rect< uint32_t > | clip (const Rect &rhs) const |
| Rect< uint32_t > & | clip_IN_PLACE (const Rect &rhs) |
| Rect< uint32_t > | intersection (const Rect *rhs) const |
| bool | nonEmptyIntersection (const Rect *rhs) const |
| bool | nonEmptyIntersection (const Rect32_16 *rhs) const |
| Rect< uint32_t > | rectUnion (const Rect *rhs) const |
| Rect< uint32_t > | rectUnion (const Rect &rhs) const |
| uint64_t | area (void) const |
| uint32_t | width () const |
| uint32_t | height () const |
| Line< uint32_t > | dimX () const |
| Line< uint32_t > | dimY () const |
| Rect< uint32_t > | pan (int64_t x, int64_t y) const |
| Rect< uint32_t > & | pan_IN_PLACE (int64_t x, int64_t y) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundary) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundaryx, uint32_t boundaryy) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundary, uint32_t maxX, uint32_t maxY) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundaryx, uint32_t boundaryy, uint32_t maxX, uint32_t maxY) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundary, const Rect< uint32_t > &bounds) |
| Rect< uint32_t > & | grow_IN_PLACE (uint32_t boundaryx, uint32_t boundaryy, Rect bounds) |
Static Public Member Functions | |
| static Rect32 | genPrecinctPartition (const Rect32 &window, uint8_t precWidthExp, uint8_t precHeightExp) |
Public Attributes | |
| bool | initialized_ = false |
| true when Resolution is initialized | |
| Subband | band [t1::BAND_NUM_INDICES] |
| unreduced bands (canvas coordinates) | |
| uint8_t | numBands_ = 0 |
| Rect32 | precinctPartition_ |
| Rect32 | precinctGrid_ |
| Rect32 | bandPrecinctPartition_ |
| Point8 | bandPrecinctExpn_ |
| Point8 | cblkExpn_ |
| grk_plugin_tile * | current_plugin_tile_ = nullptr |
| ResolutionPacketParser * | packetParser_ = nullptr |
| Public Attributes inherited from grk::Rect< uint32_t > | |
| bool | absoluteCoordinates |
| uint32_t | origin_x0 |
| uint32_t | origin_y0 |
| uint32_t | x0 |
| uint32_t | y0 |
| uint32_t | x1 |
| uint32_t | y1 |
Stores a tile component resolution's dimensions, sub bands and other information.
|
default |
Constructs a new Resolution object.
|
virtual |
Destroys the Resolution object.
References packetParser_.
|
static |
References grk::ceildivpow2(), grk::floordivpow2(), grk::grklog, grk::Rect< T >::x0, grk::Rect< T >::x1, grk::Rect< T >::y0, and grk::Rect< T >::y1.
Referenced by grk::TileProcessor::init().
| bool grk::Resolution::init | ( | grk_plugin_tile * | currentPluginTile, |
| bool | isCompressor, | ||
| uint16_t | numLayers, | ||
| ITileProcessor * | tileProcessor, | ||
| TileComponentCodingParams * | tccp, | ||
| uint8_t | resno ) |
Initializes a Resolution.
| tileProcessor | ITileProcessor |
| tccp | TileComponentCodingParams |
| resno | resolution number (0 is lowest resolution) |
References band, bandPrecinctExpn_, bandPrecinctPartition_, cblkExpn_, grk::TileComponentCodingParams::cblkh_expn_, grk::TileComponentCodingParams::cblkw_expn_, current_plugin_tile_, initialized_, numBands_, packetParser_, grk::TileComponentCodingParams::precHeightExp_, precinctGrid_, precinctPartition_, and grk::TileComponentCodingParams::precWidthExp_.
Referenced by grk::TileProcessor::init().
|
overridevirtual |
Reimplemented from grk::Rect< uint32_t >.
References band, numBands_, and grk::Rect< uint32_t >::print().
| Subband grk::Resolution::band[t1::BAND_NUM_INDICES] |
unreduced bands (canvas coordinates)
Referenced by grk::PartialBandInfo< FILTER_WIDTH >::alloc(), grk::T2Compress::compressHeader(), init(), and print().
| grk_plugin_tile* grk::Resolution::current_plugin_tile_ = nullptr |
Referenced by init().
| bool grk::Resolution::initialized_ = false |
true when Resolution is initialized
Referenced by init().
| uint8_t grk::Resolution::numBands_ = 0 |
Referenced by grk::T2Compress::compressHeader(), init(), and print().
| ResolutionPacketParser* grk::Resolution::packetParser_ = nullptr |
Referenced by init(), grk::T2Decompress::parsePacketData(), and ~Resolution().