#define opj_free(m)
Deallocates or frees a memory block.
Definition: opj_malloc.h:152
void tgt_encode(opj_bio_t *bio, opj_tgt_tree_t *tree, int leafno, int threshold)
Encode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:138
struct opj_tgt_node opj_tgt_node_t
Tag node.
#define opj_malloc(size)
Allocate an uninitialized memory block.
Definition: opj_malloc.h:51
void tgt_destroy(opj_tgt_tree_t *tree)
Destroy a tag-tree, liberating memory.
Definition: tgt.c:111
void tgt_reset(opj_tgt_tree_t *tree)
Reset a tag-tree (set all leaves to 0)
Definition: tgt.c:116
Tag node.
Definition: tgt.h:48
void tgt_destroy(opj_tgt_tree_t *tree)
Destroy a tag-tree, liberating memory.
Definition: tgt.c:111
#define opj_calloc(num, size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.h:63
void tgt_reset(opj_tgt_tree_t *tree)
Reset a tag-tree (set all leaves to 0)
Definition: tgt.c:116
opj_tgt_tree_t * tgt_create(int numleafsh, int numleafsv)
Create a tag-tree.
Definition: tgt.c:40
Individual bit input-output stream (BIO)
Definition: bio.h:47
void bio_write(opj_bio_t *bio, int v, int n)
Write bits.
Definition: bio.c:148
opj_tgt_tree_t * tgt_create(int numleafsh, int numleafsv)
Create a tag-tree.
Definition: tgt.c:40
void tgt_setvalue(opj_tgt_tree_t *tree, int leafno, int value)
Set the value of a leaf of a tag-tree.
Definition: tgt.c:129
void tgt_setvalue(opj_tgt_tree_t *tree, int leafno, int value)
Set the value of a leaf of a tag-tree.
Definition: tgt.c:129
opj_tgt_node_t * nodes
Definition: tgt.h:62
int known
Definition: tgt.h:52
int low
Definition: tgt.h:51
int numleafsv
Definition: tgt.h:60
int bio_read(opj_bio_t *bio, int n)
Read bits.
Definition: bio.c:155
struct opj_tgt_node * parent
Definition: tgt.h:49
int tgt_decode(opj_bio_t *bio, opj_tgt_tree_t *tree, int leafno, int threshold)
Decode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:178
Tag tree.
Definition: tgt.h:58
int tgt_decode(opj_bio_t *bio, opj_tgt_tree_t *tree, int leafno, int threshold)
Decode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:178
struct opj_tgt_tree opj_tgt_tree_t
Tag tree.
void tgt_encode(opj_bio_t *bio, opj_tgt_tree_t *tree, int leafno, int threshold)
Encode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:138
int numleafsh
Definition: tgt.h:59
int numnodes
Definition: tgt.h:61
int value
Definition: tgt.h:50