|
Grok 20.3.2
|
Stores tag trees and code blocks belonging to a Precinct A reference to the Precinct is also stored. More...
#include <PrecinctImpl.h>
Public Member Functions | |
| PrecinctImpl (Precinct *prec) | |
| Constructs a new PrecinctImpl. | |
| virtual | ~PrecinctImpl (void) |
| Destroys the PrecinctImpl. | |
| PrecinctImpl (const PrecinctImpl &)=delete | |
| PrecinctImpl & | operator= (const PrecinctImpl &)=delete |
| Rect32_16 | getCodeBlockBounds (uint32_t cblkno) |
| Gets non-nominal bounds for a code block. | |
| template<typename T> | |
| void | initCodeBlock (T *block, uint32_t cblkno) |
| Initializes code block. | |
| void | deleteTagTrees () |
| Deletes tag trees. | |
| TagTreeU16 * | getIncludeTagTree (void) |
| Gets include tag tree. | |
| TagTreeU8 * | getIMsbTagTree (void) |
| Gets MSB tag tree. | |
Public Attributes | |
| BlockCache< t1::CodeblockCompress, PrecinctImpl > * | enc_ |
| Cache of CodeblockCompress. | |
| BlockCache< t1::CodeblockDecompress, PrecinctImpl > * | dec_ |
| Cache of CodeblockDecompress. | |
| Rect32_16 | cblk_grid_ |
| code block grid | |
| Precinct * | prec_ |
| associated precinct | |
Protected Member Functions | |
| bool | genCodeBlockGrid (void) |
Private Member Functions | |
| bool | hasCodeBlocks (void) |
Private Attributes | |
| TagTreeU16 * | incltree_ |
| TagTreeU8 * | imsbtree_ |
Stores tag trees and code blocks belonging to a Precinct A reference to the Precinct is also stored.
|
explicit |
Constructs a new PrecinctImpl.
| prec | Precinct |
References dec_, enc_, genCodeBlockGrid(), imsbtree_, incltree_, and prec_.
Referenced by operator=(), PrecinctImpl(), grk::PrecinctImplCompress::PrecinctImplCompress(), and grk::PrecinctImplDecompress::PrecinctImplDecompress().
|
virtual |
Destroys the PrecinctImpl.
References dec_, deleteTagTrees(), and enc_.
|
delete |
References PrecinctImpl().
| void grk::PrecinctImpl::deleteTagTrees | ( | ) |
|
protected |
References cblk_grid_, grk::ceildivpow2(), grk::floordivpow2(), and prec_.
Referenced by PrecinctImpl().
| Rect32_16 grk::PrecinctImpl::getCodeBlockBounds | ( | uint32_t | cblkno | ) |
Gets non-nominal bounds for a code block.
| cblkno | code block index |
References cblk_grid_, and prec_.
Referenced by grk::Precinct::getCodeBlockBounds(), and initCodeBlock().
| TagTreeU8 * grk::PrecinctImpl::getIMsbTagTree | ( | void | ) |
Gets MSB tag tree.
References cblk_grid_, grk::grklog, hasCodeBlocks(), and imsbtree_.
Referenced by grk::Precinct::getImsbTree().
| TagTreeU16 * grk::PrecinctImpl::getIncludeTagTree | ( | void | ) |
Gets include tag tree.
References cblk_grid_, grk::grklog, hasCodeBlocks(), and incltree_.
Referenced by grk::Precinct::getInclTree().
|
private |
References cblk_grid_.
Referenced by getIMsbTagTree(), and getIncludeTagTree().
| void grk::PrecinctImpl::initCodeBlock | ( | T * | block, |
| uint32_t | cblkno ) |
Initializes code block.
| T | CodeBlock type |
| block | code block |
| cblkno | index of code block in precinct |
References getCodeBlockBounds().
|
delete |
References PrecinctImpl().
| Rect32_16 grk::PrecinctImpl::cblk_grid_ |
| BlockCache<t1::CodeblockDecompress, PrecinctImpl>* grk::PrecinctImpl::dec_ |
Cache of CodeblockDecompress.
Referenced by grk::Precinct::getDecompressBlock(), PrecinctImpl(), grk::PrecinctImplDecompress::PrecinctImplDecompress(), grk::Precinct::tryGetDecompressBlock(), and ~PrecinctImpl().
| BlockCache<t1::CodeblockCompress, PrecinctImpl>* grk::PrecinctImpl::enc_ |
Cache of CodeblockCompress.
Referenced by grk::Precinct::getCompressBlock(), PrecinctImpl(), grk::PrecinctImplCompress::PrecinctImplCompress(), and ~PrecinctImpl().
|
private |
Referenced by deleteTagTrees(), getIMsbTagTree(), and PrecinctImpl().
|
private |
Referenced by deleteTagTrees(), getIncludeTagTree(), and PrecinctImpl().
| Precinct* grk::PrecinctImpl::prec_ |
associated precinct
Referenced by genCodeBlockGrid(), getCodeBlockBounds(), and PrecinctImpl().