Tag tree.
More...
#include <TagTree.h>
|
| | TagTree (uint64_t numleafsh, uint64_t numleafsv) |
| | Create a tag tree. More...
|
| |
| | ~TagTree () |
| |
| bool | init (uint64_t num_leafs_h, uint64_t num_leafs_v) |
| | Reinitialises a tag tree. More...
|
| |
| void | reset () |
| | Reset a tag tree (set all leaves to 0) More...
|
| |
| void | setvalue (uint64_t leafno, int64_t value) |
| | Set the value of a leaf of a tag tree. More...
|
| |
| bool | compress (BitIO *bio, uint64_t leafno, int64_t threshold) |
| | Encode the value of a leaf of the tag tree up to a given threshold. More...
|
| |
| void | decompress (BitIO *bio, uint64_t leafno, int64_t threshold, uint8_t *decoded) |
| | Decode the value of a leaf of the tag tree up to a given threshold. More...
|
| |
| void | decodeValue (BitIO *bio, uint64_t leafno, int64_t threshold, uint64_t *value) |
| | Decode the value of a leaf of the tag tree up to a given threshold. More...
|
| |
◆ TagTree()
| grk::TagTree::TagTree |
( |
uint64_t |
numleafsh, |
|
|
uint64_t |
numleafsv |
|
) |
| |
Create a tag tree.
- Parameters
-
| numleafsh | Width of the array of leafs of the tree |
| numleafsv | Height of the array of leafs of the tree |
- Returns
- a new tag tree if successful, returns nullptr otherwise
◆ ~TagTree()
| grk::TagTree::~TagTree |
( |
| ) |
|
◆ compress()
| bool grk::TagTree::compress |
( |
BitIO * |
bio, |
|
|
uint64_t |
leafno, |
|
|
int64_t |
threshold |
|
) |
| |
Encode the value of a leaf of the tag tree up to a given threshold.
- Parameters
-
| bio | Pointer to a BIO handle |
| leafno | Number that identifies the leaf to compress |
| threshold | Threshold to use when encoding value of the leaf |
- Returns
- true if successful, otherwise false
◆ decodeValue()
| void grk::TagTree::decodeValue |
( |
BitIO * |
bio, |
|
|
uint64_t |
leafno, |
|
|
int64_t |
threshold, |
|
|
uint64_t * |
value |
|
) |
| |
Decode the value of a leaf of the tag tree up to a given threshold.
- Parameters
-
| bio | Pointer to a BIO handle |
| leafno | Number that identifies the leaf to decompress |
| threshold | Threshold to use when decoding value of the leaf |
| value | the node's value |
◆ decompress()
| void grk::TagTree::decompress |
( |
BitIO * |
bio, |
|
|
uint64_t |
leafno, |
|
|
int64_t |
threshold, |
|
|
uint8_t * |
decoded |
|
) |
| |
Decode the value of a leaf of the tag tree up to a given threshold.
- Parameters
-
| bio | Pointer to a BIO handle |
| leafno | Number that identifies the leaf to decompress |
| threshold | Threshold to use when decoding value of the leaf |
| decoded | 1 if the node's value < threshold, 0 otherwise |
◆ init()
| bool grk::TagTree::init |
( |
uint64_t |
num_leafs_h, |
|
|
uint64_t |
num_leafs_v |
|
) |
| |
Reinitialises a tag tree.
- Parameters
-
| num_leafs_h | the width of the array of leafs of the tree |
| num_leafs_v | the height of the array of leafs of the tree |
- Returns
- true if successful, false otherwise
◆ reset()
| void grk::TagTree::reset |
( |
| ) |
|
Reset a tag tree (set all leaves to 0)
◆ setvalue()
| void grk::TagTree::setvalue |
( |
uint64_t |
leafno, |
|
|
int64_t |
value |
|
) |
| |
Set the value of a leaf of a tag tree.
- Parameters
-
| leafno | Number that identifies the leaf to modify |
| value | New value of the leaf |
◆ nodes
◆ nodes_size
| uint64_t grk::TagTree::nodes_size |
|
private |
◆ numleafsh
| uint64_t grk::TagTree::numleafsh |
|
private |
◆ numleafsv
| uint64_t grk::TagTree::numleafsv |
|
private |
◆ numnodes
| uint64_t grk::TagTree::numnodes |
|
private |
The documentation for this class was generated from the following file: