OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold)
Decode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:307
Message handler object used for.
Definition: event.h:50
Tag node.
Definition: tgt.h:57
void opj_tgt_reset(opj_tgt_tree_t *tree)
Reset a tag-tree (set all leaves to 0)
Definition: tgt.c:236
void opj_tgt_destroy(opj_tgt_tree_t *tree)
Destroy a tag-tree, liberating memory.
Definition: tgt.c:223
int32_t OPJ_INT32
Definition: openjpeg.h:125
OPJ_INT32 low
Definition: tgt.h:60
struct opj_tgt_node opj_tgt_node_t
Tag node.
struct opj_tgt_tree opj_tgt_tree_t
Tag tree.
OPJ_UINT32 known
Definition: tgt.h:61
Individual bit input-output stream (BIO)
Definition: bio.h:56
opj_tgt_node_t * nodes
Definition: tgt.h:71
OPJ_UINT32 numleafsh
Definition: tgt.h:68
struct opj_tgt_node * parent
Definition: tgt.h:58
OPJ_UINT32 numleafsv
Definition: tgt.h:69
OPJ_UINT32 nodes_size
Definition: tgt.h:72
OPJ_INT32 value
Definition: tgt.h:59
void opj_tgt_setvalue(opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 value)
Set the value of a leaf of a tag-tree.
Definition: tgt.c:254
opj_tgt_tree_t * opj_tgt_init(opj_tgt_tree_t *p_tree, OPJ_UINT32 p_num_leafs_h, OPJ_UINT32 p_num_leafs_v, opj_event_mgr_t *p_manager)
Reinitialises a tag-tree from an exixting one.
Definition: tgt.c:136
OPJ_UINT32 numnodes
Definition: tgt.h:70
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
opj_tgt_tree_t * opj_tgt_create(OPJ_UINT32 numleafsh, OPJ_UINT32 numleafsv, opj_event_mgr_t *p_manager)
Create a tag-tree.
Definition: tgt.c:48
void opj_tgt_encode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold)
Encode the value of a leaf of the tag-tree up to a given threshold.
Definition: tgt.c:264
Tag tree.
Definition: tgt.h:67