|
Grok 20.3.2
|
Lightweight precinct struct storing only bounds, some book-keeping variables and a pointer to the PrecinctImpl. More...
#include <Precinct.h>
Public Member Functions | |
| Precinct (uint16_t numLayers, const Rect32_16 &bounds, Point8 cblk_expn) | |
| Constructs a new Precinct object. | |
| virtual | ~Precinct () |
| Destroys the Precinct object. | |
| void | deleteTagTrees () |
| Deletes tag trees. | |
| Rect32_16 | getCodeBlockBounds (uint32_t cblkno) |
| Gets code block bounds. | |
| TagTreeU16 * | getInclTree (void) |
| Gets inclusion TagTreeU16. | |
| TagTreeU8 * | getImsbTree (void) |
| Get msb TagTreeU8. | |
| uint16_t | getNominalBlockSize (void) |
| Gets nominal size (area) of code block. | |
| uint32_t | getNumCblks (void) |
| Gets the number of code blocks in the precinct. | |
| t1::CodeblockCompress * | getCompressBlock (uint32_t cblkno) |
| Gets CodeblockCompress for a code block A CodeblockCompress will be created if it hasn't already been created yet. | |
| t1::CodeblockDecompress * | getDecompressBlock (uint32_t cblkno) |
| Gets CodeblockDecompress for a code block A CodeBlockDecompress will be created if it hasn't been created yet. | |
| t1::CodeblockDecompress * | tryGetDecompressBlock (uint32_t cblkno) |
| Gets a CodeblockDecompress if it exists, otherwise returns nullptr. | |
| Point8 | getCblkExpn (void) |
| Gets log2 of nominal code block dimensions. | |
| Rect32_16 | getCblkGrid (void) |
| Gets the code block grid. | |
| Public Member Functions inherited from grk::Rect32_16 | |
| Rect32_16 (uint32_t x0, uint32_t y0, uint16_t w, uint16_t h) | |
| Rect32_16 (void) | |
| virtual | ~Rect32_16 ()=default |
| uint32_t | x0 (void) const |
| uint32_t | y0 (void) const |
| uint32_t | x1 (void) const |
| uint32_t | y1 (void) const |
| uint16_t | width () const |
| uint16_t | height () const |
| bool | valid () const |
| bool | empty (void) const |
| uint32_t | area (void) const |
| Rect32_16 | intersection (const Rect32_16 *rhs) const |
| void | setRect (const Rect32_16 *rhs) |
| void | setRect (const Rect32_16 rhs) |
| virtual void | print (void) const |
Protected Attributes | |
| uint16_t | numLayers_ |
Private Member Functions | |
| PrecinctImpl * | getImpl (void) |
| virtual PrecinctImpl * | makeImpl (void)=0 |
Private Attributes | |
| PrecinctImpl * | impl_ = nullptr |
| Point8 | cblk_expn_ |
Lightweight precinct struct storing only bounds, some book-keeping variables and a pointer to the PrecinctImpl.
Constructs a new Precinct object.
| numLayers | number of layers |
| bounds | precinct bounds |
| cblk_expn | log2 of nominal code block dimensions |
References cblk_expn_, numLayers_, and grk::Rect32_16::Rect32_16().
| void grk::Precinct::deleteTagTrees | ( | ) |
Deletes tag trees.
| Point8 grk::Precinct::getCblkExpn | ( | void | ) |
Gets log2 of nominal code block dimensions.
References cblk_expn_.
| Rect32_16 grk::Precinct::getCblkGrid | ( | void | ) |
Gets the code block grid.
References grk::PrecinctImpl::cblk_grid_, getImpl(), and grk::Rect32_16::Rect32_16().
| Rect32_16 grk::Precinct::getCodeBlockBounds | ( | uint32_t | cblkno | ) |
Gets code block bounds.
| cblkno | code block index in precinct |
References grk::PrecinctImpl::getCodeBlockBounds(), getImpl(), and grk::Rect32_16::Rect32_16().
| t1::CodeblockCompress * grk::Precinct::getCompressBlock | ( | uint32_t | cblkno | ) |
Gets CodeblockCompress for a code block A CodeblockCompress will be created if it hasn't already been created yet.
| cblkno | code block index |
References grk::PrecinctImpl::enc_, and getImpl().
| t1::CodeblockDecompress * grk::Precinct::getDecompressBlock | ( | uint32_t | cblkno | ) |
Gets CodeblockDecompress for a code block A CodeBlockDecompress will be created if it hasn't been created yet.
| cblkno | code block index |
References grk::PrecinctImpl::dec_, and getImpl().
|
private |
References impl_, and makeImpl().
Referenced by getCblkGrid(), getCodeBlockBounds(), getCompressBlock(), getDecompressBlock(), getImsbTree(), getInclTree(), getNumCblks(), and tryGetDecompressBlock().
| TagTreeU8 * grk::Precinct::getImsbTree | ( | void | ) |
Get msb TagTreeU8.
References getImpl(), and grk::PrecinctImpl::getIMsbTagTree().
| TagTreeU16 * grk::Precinct::getInclTree | ( | void | ) |
Gets inclusion TagTreeU16.
References getImpl(), and grk::PrecinctImpl::getIncludeTagTree().
| uint16_t grk::Precinct::getNominalBlockSize | ( | void | ) |
| uint32_t grk::Precinct::getNumCblks | ( | void | ) |
Gets the number of code blocks in the precinct.
References grk::Rect32_16::area(), grk::PrecinctImpl::cblk_grid_, and getImpl().
|
privatepure virtual |
Implemented in grk::PrecinctCompress, and grk::PrecinctDecompress.
Referenced by getImpl().
| t1::CodeblockDecompress * grk::Precinct::tryGetDecompressBlock | ( | uint32_t | cblkno | ) |
Gets a CodeblockDecompress if it exists, otherwise returns nullptr.
| cblkno | code block index |
References grk::PrecinctImpl::dec_, and getImpl().
|
private |
Referenced by getCblkExpn(), getNominalBlockSize(), and Precinct().
|
private |
Referenced by getImpl(), and ~Precinct().
|
protected |
Referenced by grk::PrecinctCompress::makeImpl(), grk::PrecinctDecompress::makeImpl(), and Precinct().