OLD | NEW |
1 /* | 1 /* |
2 * The copyright in this software is being made available under the 2-clauses | 2 * The copyright in this software is being made available under the 2-clauses |
3 * BSD License, included below. This software may be subject to other third | 3 * BSD License, included below. This software may be subject to other third |
4 * party and contributor rights, including patent rights, and no such rights | 4 * party and contributor rights, including patent rights, and no such rights |
5 * are granted under this license. | 5 * are granted under this license. |
6 * | 6 * |
7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium | 7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium |
8 * Copyright (c) 2002-2014, Professor Benoit Macq | 8 * Copyright (c) 2002-2014, Professor Benoit Macq |
9 * Copyright (c) 2001-2003, David Janssens | 9 * Copyright (c) 2001-2003, David Janssens |
10 * Copyright (c) 2002-2003, Yannick Verschueren | 10 * Copyright (c) 2002-2003, Yannick Verschueren |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 /** @name Exported functions */ | 77 /** @name Exported functions */ |
78 /*@{*/ | 78 /*@{*/ |
79 /* ----------------------------------------------------------------------- */ | 79 /* ----------------------------------------------------------------------- */ |
80 /** | 80 /** |
81 Create a tag-tree | 81 Create a tag-tree |
82 @param numleafsh Width of the array of leafs of the tree | 82 @param numleafsh Width of the array of leafs of the tree |
83 @param numleafsv Height of the array of leafs of the tree | 83 @param numleafsv Height of the array of leafs of the tree |
84 @return Returns a new tag-tree if successful, returns NULL otherwise | 84 @return Returns a new tag-tree if successful, returns NULL otherwise |
85 */ | 85 */ |
86 opj_tgt_tree_t *opj_tgt_create(OPJ_UINT32 numleafsh, OPJ_UINT32 numleafsv); | 86 opj_tgt_tree_t *opj_tgt_create(OPJ_UINT32 numleafsh, OPJ_UINT32 numleafsv, opj_e
vent_mgr_t *manager); |
87 | 87 |
88 /** | 88 /** |
89 * Reinitialises a tag-tree from an exixting one. | 89 * Reinitialises a tag-tree from an exixting one. |
90 * | 90 * |
91 * @param p_tree the tree to reinitialize. | 91 * @param p_tree the tree to reinitialize. |
92 * @param p_num_leafs_h the width of the array of leafs of the t
ree | 92 * @param p_num_leafs_h the width of the array of leafs of the t
ree |
93 * @param p_num_leafs_v the height of the array of leafs of the
tree | 93 * @param p_num_leafs_v the height of the array of leafs of the
tree |
| 94 * @param p_manager the event manager |
94 * @return a new tag-tree if successful, NULL otherwise | 95 * @return a new tag-tree if successful, NULL otherwise |
95 */ | 96 */ |
96 opj_tgt_tree_t *opj_tgt_init(opj_tgt_tree_t * p_tree, | 97 opj_tgt_tree_t *opj_tgt_init(opj_tgt_tree_t * p_tree, |
97 OPJ_UINT32 p_num_leafs_h, | 98 OPJ_UINT32 p_num_leafs_h, |
98 OPJ_UINT32 p_num_leafs_v); | 99 OPJ_UINT32 p_num_leafs_v, opj_event_mgr_t *p_manag
er); |
99 /** | 100 /** |
100 Destroy a tag-tree, liberating memory | 101 Destroy a tag-tree, liberating memory |
101 @param tree Tag-tree to destroy | 102 @param tree Tag-tree to destroy |
102 */ | 103 */ |
103 void opj_tgt_destroy(opj_tgt_tree_t *tree); | 104 void opj_tgt_destroy(opj_tgt_tree_t *tree); |
104 /** | 105 /** |
105 Reset a tag-tree (set all leaves to 0) | 106 Reset a tag-tree (set all leaves to 0) |
106 @param tree Tag-tree to reset | 107 @param tree Tag-tree to reset |
107 */ | 108 */ |
108 void opj_tgt_reset(opj_tgt_tree_t *tree); | 109 void opj_tgt_reset(opj_tgt_tree_t *tree); |
(...skipping 28 matching lines...) Expand all Loading... |
137 OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio, | 138 OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio, |
138 opj_tgt_tree_t *tree, | 139 opj_tgt_tree_t *tree, |
139 OPJ_UINT32 leafno, | 140 OPJ_UINT32 leafno, |
140 OPJ_INT32 threshold); | 141 OPJ_INT32 threshold); |
141 /* ----------------------------------------------------------------------- */ | 142 /* ----------------------------------------------------------------------- */ |
142 /*@}*/ | 143 /*@}*/ |
143 | 144 |
144 /*@}*/ | 145 /*@}*/ |
145 | 146 |
146 #endif /* __TGT_H */ | 147 #endif /* __TGT_H */ |
OLD | NEW |