openjpeg/doxygen/tgt_8c.html

412 lines
26 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenJPEG: tgt.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.5.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="dir_cb9b2b419d92b64f7cee83d8faf7a4ab.html">even</a></li><li class="navelem"><a class="el" href="dir_f75d9a0165d6564a1e04793ef847d41d.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_5f588d7ea139c1aae751d03c13a16064.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_378f732e812ef6cbaaae22e96a4fa79f.html">src</a></li><li class="navelem"><a class="el" href="dir_19dcb5713315405a27e1bde75a489a4c.html">lib</a></li><li class="navelem"><a class="el" href="dir_54e5bc4f0640fea590afaf04f4d9c88d.html">openjp2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">tgt.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="opj__includes_8h_source.html">opj_includes.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aaf27107458b5242fe7d848480b4a4690"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#aaf27107458b5242fe7d848480b4a4690">opj_tgt_create</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> numleafsh, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> numleafsv, <a class="el" href="event_8h.html#a9015b7726990d51ca282c8134b8eccdd">opj_event_mgr_t</a> *p_manager)</td></tr>
<tr class="memdesc:aaf27107458b5242fe7d848480b4a4690"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a tag-tree. <a href="tgt_8c.html#aaf27107458b5242fe7d848480b4a4690">More...</a><br /></td></tr>
<tr class="separator:aaf27107458b5242fe7d848480b4a4690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa34fdf087e24d66a2a661c31ba194c3f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#aa34fdf087e24d66a2a661c31ba194c3f">opj_tgt_init</a> (<a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *p_tree, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> p_num_leafs_h, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> p_num_leafs_v, <a class="el" href="event_8h.html#a9015b7726990d51ca282c8134b8eccdd">opj_event_mgr_t</a> *p_manager)</td></tr>
<tr class="memdesc:aa34fdf087e24d66a2a661c31ba194c3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reinitialises a tag-tree from an existing one. <a href="tgt_8c.html#aa34fdf087e24d66a2a661c31ba194c3f">More...</a><br /></td></tr>
<tr class="separator:aa34fdf087e24d66a2a661c31ba194c3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab899e82ce998eace0c7b2c047004fae7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#ab899e82ce998eace0c7b2c047004fae7">opj_tgt_destroy</a> (<a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *p_tree)</td></tr>
<tr class="memdesc:ab899e82ce998eace0c7b2c047004fae7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a tag-tree, liberating memory. <a href="tgt_8c.html#ab899e82ce998eace0c7b2c047004fae7">More...</a><br /></td></tr>
<tr class="separator:ab899e82ce998eace0c7b2c047004fae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5b8ff007944f30c854d4ede64bb16a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#ae5b8ff007944f30c854d4ede64bb16a2">opj_tgt_reset</a> (<a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *p_tree)</td></tr>
<tr class="memdesc:ae5b8ff007944f30c854d4ede64bb16a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset a tag-tree (set all leaves to 0) <a href="tgt_8c.html#ae5b8ff007944f30c854d4ede64bb16a2">More...</a><br /></td></tr>
<tr class="separator:ae5b8ff007944f30c854d4ede64bb16a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0844dbb6cdf88a7bb4036d718774f69"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#ab0844dbb6cdf88a7bb4036d718774f69">opj_tgt_setvalue</a> (<a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *tree, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> leafno, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> value)</td></tr>
<tr class="memdesc:ab0844dbb6cdf88a7bb4036d718774f69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of a leaf of a tag-tree. <a href="tgt_8c.html#ab0844dbb6cdf88a7bb4036d718774f69">More...</a><br /></td></tr>
<tr class="separator:ab0844dbb6cdf88a7bb4036d718774f69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe36abfc042710c566552ed3adfcb2a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#afe36abfc042710c566552ed3adfcb2a9">opj_tgt_encode</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *tree, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> leafno, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> threshold)</td></tr>
<tr class="memdesc:afe36abfc042710c566552ed3adfcb2a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encode the value of a leaf of the tag-tree up to a given threshold. <a href="tgt_8c.html#afe36abfc042710c566552ed3adfcb2a9">More...</a><br /></td></tr>
<tr class="separator:afe36abfc042710c566552ed3adfcb2a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b970bfd9b761cdf2ff36001821b06aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tgt_8c.html#a5b970bfd9b761cdf2ff36001821b06aa">opj_tgt_decode</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *tree, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> leafno, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> threshold)</td></tr>
<tr class="memdesc:a5b970bfd9b761cdf2ff36001821b06aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode the value of a leaf of the tag-tree up to a given threshold. <a href="tgt_8c.html#a5b970bfd9b761cdf2ff36001821b06aa">More...</a><br /></td></tr>
<tr class="separator:a5b970bfd9b761cdf2ff36001821b06aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="aaf27107458b5242fe7d848480b4a4690"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf27107458b5242fe7d848480b4a4690">&#9670;&nbsp;</a></span>opj_tgt_create()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a>* opj_tgt_create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>numleafsh</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>numleafsv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="event_8h.html#a9015b7726990d51ca282c8134b8eccdd">opj_event_mgr_t</a> *&#160;</td>
<td class="paramname"><em>p_manager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a tag-tree. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">numleafsh</td><td>Width of the array of leafs of the tree </td></tr>
<tr><td class="paramname">numleafsv</td><td>Height of the array of leafs of the tree </td></tr>
<tr><td class="paramname">p_manager</td><td>the event manager </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a new tag-tree if successful, returns NULL otherwise </dd></dl>
<p class="reference">References <a class="el" href="event_8h.html#a7323671f4df0a721ae02d610b1269ab9">EVT_ERROR</a>, <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="structopj__tgt__tree.html#a62bc3ad727b80f26d7b3b10712c5bb9c">opj_tgt_tree::nodes_size</a>, <a class="el" href="structopj__tgt__tree.html#a8bac70f6df83269400a846be083116bd">opj_tgt_tree::numleafsh</a>, <a class="el" href="structopj__tgt__tree.html#acfc60d10adf720f98b4947931ce1bf13">opj_tgt_tree::numleafsv</a>, <a class="el" href="structopj__tgt__tree.html#a6ca2c6a3ee1611cd897197fb504b3d59">opj_tgt_tree::numnodes</a>, <a class="el" href="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc()</a>, <a class="el" href="event_8c.html#a80a24e8c6d24861cd2403e48a7c2591e">opj_event_msg()</a>, <a class="el" href="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free()</a>, <a class="el" href="tgt_8c.html#ae5b8ff007944f30c854d4ede64bb16a2">opj_tgt_reset()</a>, and <a class="el" href="structopj__tgt__node.html#ae5a6382a3b692bf7f05c074cd1b025ba">opj_tgt_node::parent</a>.</p>
<p class="reference">Referenced by <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="a5b970bfd9b761cdf2ff36001821b06aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b970bfd9b761cdf2ff36001821b06aa">&#9670;&nbsp;</a></span>opj_tgt_decode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_tgt_decode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>tree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>leafno</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>threshold</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Decode the value of a leaf of the tag-tree up to a given threshold. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>Pointer to a BIO handle </td></tr>
<tr><td class="paramname">tree</td><td>Tag-tree to decode </td></tr>
<tr><td class="paramname">leafno</td><td>Number that identifies the leaf to decode </td></tr>
<tr><td class="paramname">threshold</td><td>Threshold to use when decoding value of the leaf </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 1 if the node's value &lt; threshold, returns 0 otherwise </dd></dl>
<p class="reference">References <a class="el" href="structopj__tgt__node.html#a78b571d4eadfae7d38ac7cf561354d77">opj_tgt_node::low</a>, <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="bio_8c.html#aea3bf04128de5bc78da6d06354eae62c">opj_bio_read()</a>, <a class="el" href="structopj__tgt__node.html#ae5a6382a3b692bf7f05c074cd1b025ba">opj_tgt_node::parent</a>, and <a class="el" href="structopj__tgt__node.html#a71926a9d9563ff7e5f137a8e189e1635">opj_tgt_node::value</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="ab899e82ce998eace0c7b2c047004fae7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab899e82ce998eace0c7b2c047004fae7">&#9670;&nbsp;</a></span>opj_tgt_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_tgt_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>tree</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a tag-tree, liberating memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tree</td><td>Tag-tree to destroy </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, and <a class="el" href="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free()</a>.</p>
<p class="reference">Referenced by <a class="el" href="tcd_8c.html#a0df6e3c59cbb93696bab54a688e2ead8">opj_tcd_free_tile()</a>, and <a class="el" href="tgt_8h.html#aa34fdf087e24d66a2a661c31ba194c3f">opj_tgt_init()</a>.</p>
</div>
</div>
<a id="afe36abfc042710c566552ed3adfcb2a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe36abfc042710c566552ed3adfcb2a9">&#9670;&nbsp;</a></span>opj_tgt_encode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_tgt_encode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>tree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>leafno</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>threshold</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Encode the value of a leaf of the tag-tree up to a given threshold. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>Pointer to a BIO handle </td></tr>
<tr><td class="paramname">tree</td><td>Tag-tree to modify </td></tr>
<tr><td class="paramname">leafno</td><td>Number that identifies the leaf to encode </td></tr>
<tr><td class="paramname">threshold</td><td>Threshold to use when encoding value of the leaf </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__tgt__node.html#a23ce722a1f74e4eaffb63216b2439baa">opj_tgt_node::known</a>, <a class="el" href="structopj__tgt__node.html#a78b571d4eadfae7d38ac7cf561354d77">opj_tgt_node::low</a>, <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="bio_8c.html#a602b9d9f911b41d41d1d4cab1dc3ec97">opj_bio_write()</a>, <a class="el" href="structopj__tgt__node.html#ae5a6382a3b692bf7f05c074cd1b025ba">opj_tgt_node::parent</a>, and <a class="el" href="structopj__tgt__node.html#a71926a9d9563ff7e5f137a8e189e1635">opj_tgt_node::value</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>.</p>
</div>
</div>
<a id="aa34fdf087e24d66a2a661c31ba194c3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa34fdf087e24d66a2a661c31ba194c3f">&#9670;&nbsp;</a></span>opj_tgt_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a>* opj_tgt_init </td>
<td>(</td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>p_tree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>p_num_leafs_h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>p_num_leafs_v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="event_8h.html#a9015b7726990d51ca282c8134b8eccdd">opj_event_mgr_t</a> *&#160;</td>
<td class="paramname"><em>p_manager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reinitialises a tag-tree from an existing one. </p>
<p>Reinitialises a tag-tree from an exixting one.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p_tree</td><td>the tree to reinitialize. </td></tr>
<tr><td class="paramname">p_num_leafs_h</td><td>the width of the array of leafs of the tree </td></tr>
<tr><td class="paramname">p_num_leafs_v</td><td>the height of the array of leafs of the tree </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a new tag-tree if successful, NULL otherwise </dd></dl>
<p class="reference">References <a class="el" href="event_8h.html#a7323671f4df0a721ae02d610b1269ab9">EVT_ERROR</a>, <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="structopj__tgt__tree.html#a62bc3ad727b80f26d7b3b10712c5bb9c">opj_tgt_tree::nodes_size</a>, <a class="el" href="structopj__tgt__tree.html#a8bac70f6df83269400a846be083116bd">opj_tgt_tree::numleafsh</a>, <a class="el" href="structopj__tgt__tree.html#acfc60d10adf720f98b4947931ce1bf13">opj_tgt_tree::numleafsv</a>, <a class="el" href="structopj__tgt__tree.html#a6ca2c6a3ee1611cd897197fb504b3d59">opj_tgt_tree::numnodes</a>, <a class="el" href="event_8c.html#a80a24e8c6d24861cd2403e48a7c2591e">opj_event_msg()</a>, <a class="el" href="opj__malloc_8c.html#aa39cad09aebcf1b795fe829359115812">opj_realloc()</a>, <a class="el" href="tgt_8c.html#ab899e82ce998eace0c7b2c047004fae7">opj_tgt_destroy()</a>, <a class="el" href="tgt_8c.html#ae5b8ff007944f30c854d4ede64bb16a2">opj_tgt_reset()</a>, and <a class="el" href="structopj__tgt__node.html#ae5a6382a3b692bf7f05c074cd1b025ba">opj_tgt_node::parent</a>.</p>
<p class="reference">Referenced by <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="ae5b8ff007944f30c854d4ede64bb16a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5b8ff007944f30c854d4ede64bb16a2">&#9670;&nbsp;</a></span>opj_tgt_reset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_tgt_reset </td>
<td>(</td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>tree</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset a tag-tree (set all leaves to 0) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tree</td><td>Tag-tree to reset </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__tgt__node.html#a23ce722a1f74e4eaffb63216b2439baa">opj_tgt_node::known</a>, <a class="el" href="structopj__tgt__node.html#a78b571d4eadfae7d38ac7cf561354d77">opj_tgt_node::low</a>, <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="structopj__tgt__tree.html#a6ca2c6a3ee1611cd897197fb504b3d59">opj_tgt_tree::numnodes</a>, and <a class="el" href="structopj__tgt__node.html#a71926a9d9563ff7e5f137a8e189e1635">opj_tgt_node::value</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>, <a class="el" href="tgt_8h.html#aaf27107458b5242fe7d848480b4a4690">opj_tgt_create()</a>, and <a class="el" href="tgt_8h.html#aa34fdf087e24d66a2a661c31ba194c3f">opj_tgt_init()</a>.</p>
</div>
</div>
<a id="ab0844dbb6cdf88a7bb4036d718774f69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0844dbb6cdf88a7bb4036d718774f69">&#9670;&nbsp;</a></span>opj_tgt_setvalue()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_tgt_setvalue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="tgt_8h.html#aee30e3cf175f4d69adf5a6eae38dddbe">opj_tgt_tree_t</a> *&#160;</td>
<td class="paramname"><em>tree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>leafno</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the value of a leaf of a tag-tree. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tree</td><td>Tag-tree to modify </td></tr>
<tr><td class="paramname">leafno</td><td>Number that identifies the leaf to modify </td></tr>
<tr><td class="paramname">value</td><td>New value of the leaf </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__tgt__tree.html#a0981f42ac4d605cddd9a63b2820d6c60">opj_tgt_tree::nodes</a>, <a class="el" href="structopj__tgt__node.html#ae5a6382a3b692bf7f05c074cd1b025ba">opj_tgt_node::parent</a>, and <a class="el" href="structopj__tgt__node.html#a71926a9d9563ff7e5f137a8e189e1635">opj_tgt_node::value</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>