<ahref="target__manager_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="atarget__manager_8c_html_ad3a4f792dd27c81fb2c355708ac4b62a"><divclass="ttname"><ahref="target__manager_8c.html#ad3a4f792dd27c81fb2c355708ac4b62a">search_target</a></div><divclass="ttdeci">target_param_t * search_target(const char targetname[], targetlist_param_t *targetlist)</div><divclass="ttdoc">search a target by target name</div><divclass="ttdef"><b>Definition:</b> target_manager.c:224</div></div>
<divclass="ttc"id="astructtarget__param_html_aac158d4d55987cda9053b81a17786c12"><divclass="ttname"><ahref="structtarget__param.html#aac158d4d55987cda9053b81a17786c12">target_param::codeidx</a></div><divclass="ttdeci">index_param_t * codeidx</div><divclass="ttdoc">index information of codestream</div><divclass="ttdef"><b>Definition:</b> target_manager.h:49</div></div>
<divclass="ttc"id="atarget__manager_8c_html_a388cd6fd34254f96a49a4697b2c75051"><divclass="ttname"><ahref="target__manager_8c.html#a388cd6fd34254f96a49a4697b2c75051">gene_targetlist</a></div><divclass="ttdeci">targetlist_param_t * gene_targetlist(void)</div><divclass="ttdoc">generate a target list</div><divclass="ttdef"><b>Definition:</b> target_manager.c:57</div></div>
<divclass="ttc"id="astructtarget__param_html_acc3f7e29483871762e9be2765d7017a4"><divclass="ttname"><ahref="structtarget__param.html#acc3f7e29483871762e9be2765d7017a4">target_param::jppstream</a></div><divclass="ttdeci">OPJ_BOOL jppstream</div><divclass="ttdoc">if this target can return JPP-stream</div><divclass="ttdef"><b>Definition:</b> target_manager.h:51</div></div>
<divclass="ttc"id="atarget__manager_8c_html_a92923f09314b612eff829c5ff5cd6a33"><divclass="ttname"><ahref="target__manager_8c.html#a92923f09314b612eff829c5ff5cd6a33">delete_target_in_list</a></div><divclass="ttdeci">void delete_target_in_list(target_param_t **target, targetlist_param_t *targetlist)</div><divclass="ttdoc">delete a target in list</div><divclass="ttdef"><b>Definition:</b> target_manager.c:170</div></div>
<divclass="ttc"id="astructtarget__param_html_a77e272b6376a33c60b6be8d2922634e8"><divclass="ttname"><ahref="structtarget__param.html#a77e272b6376a33c60b6be8d2922634e8">target_param::next</a></div><divclass="ttdeci">struct target_param * next</div><divclass="ttdoc">pointer to the next target</div><divclass="ttdef"><b>Definition:</b> target_manager.h:53</div></div>
<divclass="ttc"id="atarget__manager_8h_html_a7b08bd1ea87c9daba4d249892c39aba1"><divclass="ttname"><ahref="target__manager_8h.html#a7b08bd1ea87c9daba4d249892c39aba1">refer_target</a></div><divclass="ttdeci">void refer_target(target_param_t *reftarget, target_param_t **ptr)</div><divclass="ttdoc">refer a target, used to make a new cache model</div><divclass="ttdef"><b>Definition:</b> target_manager.c:135</div></div>
<divclass="ttc"id="atarget__manager_8h_html_aa1c4bfdf38055d80194d6cae816467c4"><divclass="ttname"><ahref="target__manager_8h.html#aa1c4bfdf38055d80194d6cae816467c4">MAX_LENOFTID</a></div><divclass="ttdeci">#define MAX_LENOFTID</div><divclass="ttdoc">maximum length of target identifier</div><divclass="ttdef"><b>Definition:</b> target_manager.h:37</div></div>
<divclass="ttc"id="astructtargetlist__param_html_ae2a0fc4684970c19f3a2b8d8901f90f2"><divclass="ttname"><ahref="structtargetlist__param.html#ae2a0fc4684970c19f3a2b8d8901f90f2">targetlist_param::last</a></div><divclass="ttdeci">target_param_t * last</div><divclass="ttdoc">last target pointer of the list</div><divclass="ttdef"><b>Definition:</b> target_manager.h:61</div></div>
<divclass="ttc"id="atarget__manager_8c_html_a7b08bd1ea87c9daba4d249892c39aba1"><divclass="ttname"><ahref="target__manager_8c.html#a7b08bd1ea87c9daba4d249892c39aba1">refer_target</a></div><divclass="ttdeci">void refer_target(target_param_t *reftarget, target_param_t **ptr)</div><divclass="ttdoc">refer a target, used to make a new cache model</div><divclass="ttdef"><b>Definition:</b> target_manager.c:135</div></div>
<divclass="ttc"id="astructtarget__param_html_a40a29d6013b5b62fd489c41cbc2a93a8"><divclass="ttname"><ahref="structtarget__param.html#a40a29d6013b5b62fd489c41cbc2a93a8">target_param::jptstream</a></div><divclass="ttdeci">OPJ_BOOL jptstream</div><divclass="ttdoc">if this target can return JPP-stream</div><divclass="ttdef"><b>Definition:</b> target_manager.h:52</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a49c70931cbed786f6eef5f095bcb2917"><divclass="ttname"><ahref="opj__malloc_8c.html#a49c70931cbed786f6eef5f095bcb2917">opj_malloc</a></div><divclass="ttdeci">void * opj_malloc(size_t size)</div><divclass="ttdoc">Allocate an uninitialized memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:191</div></div>
<divclass="ttc"id="atarget__manager_8c_html_a22963b6f86858c316cb3ef865deef531"><divclass="ttname"><ahref="target__manager_8c.html#a22963b6f86858c316cb3ef865deef531">unrefer_target</a></div><divclass="ttdeci">void unrefer_target(target_param_t *target)</div><divclass="ttdoc">refer a target, used to make a new cache model</div><divclass="ttdef"><b>Definition:</b> target_manager.c:141</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a9d7d909f8dc1a2c23313c48645341e81"><divclass="ttname"><ahref="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free</a></div><divclass="ttdeci">void opj_free(void *ptr)</div><divclass="ttdoc">Deallocates or frees a memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:246</div></div>
<divclass="ttc"id="atarget__manager_8h_html_ab1b6dde48f43ef27ae5c48582412d5e9"><divclass="ttname"><ahref="target__manager_8h.html#ab1b6dde48f43ef27ae5c48582412d5e9">delete_target</a></div><divclass="ttdeci">void delete_target(target_param_t **target)</div><divclass="ttdoc">delete a target</div><divclass="ttdef"><b>Definition:</b> target_manager.c:146</div></div>
<divclass="ttc"id="astructtarget__param_html_a057f7a3cd287995cf3f4ec847f11b960"><divclass="ttname"><ahref="structtarget__param.html#a057f7a3cd287995cf3f4ec847f11b960">target_param::num_of_use</a></div><divclass="ttdeci">int num_of_use</div><divclass="ttdoc">numbers of sessions referring to this target</div><divclass="ttdef"><b>Definition:</b> target_manager.h:50</div></div>
<divclass="ttc"id="atarget__manager_8c_html_ab1b6dde48f43ef27ae5c48582412d5e9"><divclass="ttname"><ahref="target__manager_8c.html#ab1b6dde48f43ef27ae5c48582412d5e9">delete_target</a></div><divclass="ttdeci">void delete_target(target_param_t **target)</div><divclass="ttdoc">delete a target</div><divclass="ttdef"><b>Definition:</b> target_manager.c:146</div></div>
<divclass="ttc"id="astructtarget__param_html_a9b60d04127436a18e722d871e7c0044f"><divclass="ttname"><ahref="structtarget__param.html#a9b60d04127436a18e722d871e7c0044f">target_param::targetname</a></div><divclass="ttdeci">char * targetname</div><divclass="ttdoc">local file path or URL ( URL is supported only with SERVER mode)</div><divclass="ttdef"><b>Definition:</b> target_manager.h:42</div></div>
<divclass="ttc"id="atarget__manager_8h_html_a22963b6f86858c316cb3ef865deef531"><divclass="ttname"><ahref="target__manager_8h.html#a22963b6f86858c316cb3ef865deef531">unrefer_target</a></div><divclass="ttdeci">void unrefer_target(target_param_t *target)</div><divclass="ttdoc">refer a target, used to make a new cache model</div><divclass="ttdef"><b>Definition:</b> target_manager.c:141</div></div>
<divclass="ttc"id="atarget__manager_8h_html_a92923f09314b612eff829c5ff5cd6a33"><divclass="ttname"><ahref="target__manager_8h.html#a92923f09314b612eff829c5ff5cd6a33">delete_target_in_list</a></div><divclass="ttdeci">void delete_target_in_list(target_param_t **target, targetlist_param_t *targetlist)</div><divclass="ttdoc">delete a target in list</div><divclass="ttdef"><b>Definition:</b> target_manager.c:170</div></div>
<divclass="ttc"id="astructtargetlist__param_html"><divclass="ttname"><ahref="structtargetlist__param.html">targetlist_param</a></div><divclass="ttdoc">Target list parameters.</div><divclass="ttdef"><b>Definition:</b> target_manager.h:59</div></div>
<divclass="ttc"id="aindex__manager_8c_html_ae9e9b509e0078e503da1c0564644a193"><divclass="ttname"><ahref="index__manager_8c.html#ae9e9b509e0078e503da1c0564644a193">isJPTfeasible</a></div><divclass="ttdeci">OPJ_BOOL isJPTfeasible(index_param_t index)</div><divclass="ttdoc">answers if the target is feasible to JPT-stream</div><divclass="ttdef"><b>Definition:</b> index_manager.c:792</div></div>
<divclass="ttc"id="atarget__manager_8h_html_ad3a4f792dd27c81fb2c355708ac4b62a"><divclass="ttname"><ahref="target__manager_8h.html#ad3a4f792dd27c81fb2c355708ac4b62a">search_target</a></div><divclass="ttdeci">target_param_t * search_target(const char targetname[], targetlist_param_t *targetlist)</div><divclass="ttdoc">search a target by target name</div><divclass="ttdef"><b>Definition:</b> target_manager.c:224</div></div>
<divclass="ttc"id="atarget__manager_8h_html_ada4a46123e4fd43bcfeae69eda0051e5"><divclass="ttname"><ahref="target__manager_8h.html#ada4a46123e4fd43bcfeae69eda0051e5">search_targetBytid</a></div><divclass="ttdeci">target_param_t * search_targetBytid(const char tid[], targetlist_param_t *targetlist)</div><divclass="ttdoc">search a target by tid</div><divclass="ttdef"><b>Definition:</b> target_manager.c:242</div></div>
<divclass="ttc"id="atarget__manager_8h_html_abe48fd7b8d8f521d4d73569b8bb0a3c2"><divclass="ttname"><ahref="target__manager_8h.html#abe48fd7b8d8f521d4d73569b8bb0a3c2">print_alltarget</a></div><divclass="ttdeci">void print_alltarget(targetlist_param_t *targetlist)</div><divclass="ttdoc">print all target parameters</div><divclass="ttdef"><b>Definition:</b> target_manager.c:213</div></div>
<divclass="ttc"id="atarget__manager_8h_html_a03de06e5f893f1803222c79dbf6a8ac3"><divclass="ttname"><ahref="target__manager_8h.html#a03de06e5f893f1803222c79dbf6a8ac3">targetlist_param_t</a></div><divclass="ttdeci">struct targetlist_param targetlist_param_t</div><divclass="ttdoc">Target list parameters.</div></div>
<divclass="ttc"id="astructtargetlist__param_html_abc0c23a5de0a1f39ef2e02aad80196cb"><divclass="ttname"><ahref="structtargetlist__param.html#abc0c23a5de0a1f39ef2e02aad80196cb">targetlist_param::first</a></div><divclass="ttdeci">target_param_t * first</div><divclass="ttdoc">first target pointer of the list</div><divclass="ttdef"><b>Definition:</b> target_manager.h:60</div></div>