652 lines
37 KiB
HTML
652 lines
37 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/>
|
|
<title>OpenJPEG: cache_manager.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
|
|
 <span id="projectnumber">2.4.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</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_54d80c9412497e935deb5677b5fae801.html">openjpip</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">cache_manager.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include <stdio.h></code><br />
|
|
<code>#include <stdlib.h></code><br />
|
|
<code>#include <string.h></code><br />
|
|
<code>#include "<a class="el" href="cache__manager_8h_source.html">cache_manager.h</a>"</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:a0de1bb714bff02327255920dfc5bd838"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a0de1bb714bff02327255920dfc5bd838">gene_cachelist</a> (void)</td></tr>
|
|
<tr class="memdesc:a0de1bb714bff02327255920dfc5bd838"><td class="mdescLeft"> </td><td class="mdescRight">generate a cache list <a href="#a0de1bb714bff02327255920dfc5bd838">More...</a><br /></td></tr>
|
|
<tr class="separator:a0de1bb714bff02327255920dfc5bd838"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a60b3dc9f408f026931faa4589d1e4c1b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a60b3dc9f408f026931faa4589d1e4c1b">delete_cachelist</a> (<a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> **cachelist)</td></tr>
|
|
<tr class="memdesc:a60b3dc9f408f026931faa4589d1e4c1b"><td class="mdescLeft"> </td><td class="mdescRight">delete cache list <a href="#a60b3dc9f408f026931faa4589d1e4c1b">More...</a><br /></td></tr>
|
|
<tr class="separator:a60b3dc9f408f026931faa4589d1e4c1b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae673ba42122433300afa3581ed4eb5af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#ae673ba42122433300afa3581ed4eb5af">gene_cache</a> (const char *targetname, int csn, char *tid, char *cid)</td></tr>
|
|
<tr class="memdesc:ae673ba42122433300afa3581ed4eb5af"><td class="mdescLeft"> </td><td class="mdescRight">generate a cache <a href="#ae673ba42122433300afa3581ed4eb5af">More...</a><br /></td></tr>
|
|
<tr class="separator:ae673ba42122433300afa3581ed4eb5af"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa552e4ceb9be91d6b502419e406907fd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#aa552e4ceb9be91d6b502419e406907fd">delete_cache</a> (<a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> **cache)</td></tr>
|
|
<tr class="memdesc:aa552e4ceb9be91d6b502419e406907fd"><td class="mdescLeft"> </td><td class="mdescRight">delete a cache <a href="#aa552e4ceb9be91d6b502419e406907fd">More...</a><br /></td></tr>
|
|
<tr class="separator:aa552e4ceb9be91d6b502419e406907fd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a602fae2adbfa511bccf6f2fad3fe7891"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a602fae2adbfa511bccf6f2fad3fe7891">insert_cache_into_list</a> (<a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> *cache, <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a602fae2adbfa511bccf6f2fad3fe7891"><td class="mdescLeft"> </td><td class="mdescRight">insert a cache into list <a href="#a602fae2adbfa511bccf6f2fad3fe7891">More...</a><br /></td></tr>
|
|
<tr class="separator:a602fae2adbfa511bccf6f2fad3fe7891"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a373dac3fd74b9947e59a095048b18a0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a373dac3fd74b9947e59a095048b18a0a">search_cache</a> (const char targetname[], <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a373dac3fd74b9947e59a095048b18a0a"><td class="mdescLeft"> </td><td class="mdescRight">search a cache by target name <a href="#a373dac3fd74b9947e59a095048b18a0a">More...</a><br /></td></tr>
|
|
<tr class="separator:a373dac3fd74b9947e59a095048b18a0a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3971cee032d83329cb3f23a66f0f9dd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a3971cee032d83329cb3f23a66f0f9dd9">search_cacheBycsn</a> (int csn, <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a3971cee032d83329cb3f23a66f0f9dd9"><td class="mdescLeft"> </td><td class="mdescRight">search a cache by csn <a href="#a3971cee032d83329cb3f23a66f0f9dd9">More...</a><br /></td></tr>
|
|
<tr class="separator:a3971cee032d83329cb3f23a66f0f9dd9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac538e4f629668779ce42d178389c5b7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#ac538e4f629668779ce42d178389c5b7a">search_cacheBycid</a> (const char cid[], <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:ac538e4f629668779ce42d178389c5b7a"><td class="mdescLeft"> </td><td class="mdescRight">search a cache by cid <a href="#ac538e4f629668779ce42d178389c5b7a">More...</a><br /></td></tr>
|
|
<tr class="separator:ac538e4f629668779ce42d178389c5b7a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3bd60aac832b765c765eb71211af2e05"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a3bd60aac832b765c765eb71211af2e05">search_cacheBytid</a> (const char tid[], <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a3bd60aac832b765c765eb71211af2e05"><td class="mdescLeft"> </td><td class="mdescRight">search a cache by tid <a href="#a3bd60aac832b765c765eb71211af2e05">More...</a><br /></td></tr>
|
|
<tr class="separator:a3bd60aac832b765c765eb71211af2e05"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a87a27aa289a528077e7d77c5c89db5bf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a87a27aa289a528077e7d77c5c89db5bf">add_cachecid</a> (const char *cid, <a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> *cache)</td></tr>
|
|
<tr class="memdesc:a87a27aa289a528077e7d77c5c89db5bf"><td class="mdescLeft"> </td><td class="mdescRight">add cid into a cache <a href="#a87a27aa289a528077e7d77c5c89db5bf">More...</a><br /></td></tr>
|
|
<tr class="separator:a87a27aa289a528077e7d77c5c89db5bf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aeb3f8c42f00448cd7b3907d8bd516dd8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#aeb3f8c42f00448cd7b3907d8bd516dd8">update_cachetid</a> (const char *tid, <a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> *cache)</td></tr>
|
|
<tr class="memdesc:aeb3f8c42f00448cd7b3907d8bd516dd8"><td class="mdescLeft"> </td><td class="mdescRight">update tid of a cache <a href="#aeb3f8c42f00448cd7b3907d8bd516dd8">More...</a><br /></td></tr>
|
|
<tr class="separator:aeb3f8c42f00448cd7b3907d8bd516dd8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9acafab6ba8be44d424c238272480aad"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a9acafab6ba8be44d424c238272480aad">remove_cidInCache</a> (const char *cid, <a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> *cache)</td></tr>
|
|
<tr class="separator:a9acafab6ba8be44d424c238272480aad"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4091726e2df2dac42292353947a4ea07"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a4091726e2df2dac42292353947a4ea07">remove_cachecid</a> (const char *cid, <a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a4091726e2df2dac42292353947a4ea07"><td class="mdescLeft"> </td><td class="mdescRight">remove cid in cache <a href="#a4091726e2df2dac42292353947a4ea07">More...</a><br /></td></tr>
|
|
<tr class="separator:a4091726e2df2dac42292353947a4ea07"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aaf3ec7928cfc0cfa3888db892d50c20c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#aaf3ec7928cfc0cfa3888db892d50c20c">print_cache</a> (<a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> *cache)</td></tr>
|
|
<tr class="memdesc:aaf3ec7928cfc0cfa3888db892d50c20c"><td class="mdescLeft"> </td><td class="mdescRight">print cache parameters <a href="#aaf3ec7928cfc0cfa3888db892d50c20c">More...</a><br /></td></tr>
|
|
<tr class="separator:aaf3ec7928cfc0cfa3888db892d50c20c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a86ab032b568db30c8763213f221cc760"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cache__manager_8c.html#a86ab032b568db30c8763213f221cc760">print_allcache</a> (<a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> *cachelist)</td></tr>
|
|
<tr class="memdesc:a86ab032b568db30c8763213f221cc760"><td class="mdescLeft"> </td><td class="mdescRight">print all cache parameters <a href="#a86ab032b568db30c8763213f221cc760">More...</a><br /></td></tr>
|
|
<tr class="separator:a86ab032b568db30c8763213f221cc760"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="a87a27aa289a528077e7d77c5c89db5bf"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void add_cachecid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>cid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td>
|
|
<td class="paramname"><em>cache</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>add cid into a cache </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cid</td><td>channel identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cache</td><td>cache pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a>, and <a class="el" href="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa552e4ceb9be91d6b502419e406907fd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void delete_cache </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> ** </td>
|
|
<td class="paramname"><em>cache</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>delete a cache </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cache</td><td>address of the cache pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="metadata__manager_8c.html#aaf53c8e8dc223c54970487cafe2ba7eb">delete_metadatalist()</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="cache__manager_8h.html#a60b3dc9f408f026931faa4589d1e4c1b">delete_cachelist()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a60b3dc9f408f026931faa4589d1e4c1b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void delete_cachelist </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> ** </td>
|
|
<td class="paramname"><em>cachelist</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>delete cache list </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in,out]</td><td class="paramname">cachelist</td><td>address of the cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="cache__manager_8c.html#aa552e4ceb9be91d6b502419e406907fd">delete_cache()</a>, and <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="openjpip_8h.html#a05f5e9a3abc177c5a18e0a97c77cc2e0">terminate_dec_server()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae673ba42122433300afa3581ed4eb5af"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a>* gene_cache </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>targetname</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>csn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"><em>tid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"><em>cid</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>generate a cache </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">targetname</td><td>target file name </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">csn</td><td>codestream number </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">tid</td><td>target identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cid</td><td>channel identifier </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>pointer to the generated cache </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a>, <a class="el" href="structcache__param.html#a8f5a0232ef788420480274e68932a8d3">cache_param::csn</a>, <a class="el" href="structcache__param.html#a4b1e92d200b2d6f991acfb031024181e">cache_param::filename</a>, <a class="el" href="metadata__manager_8c.html#a109c77c889ca43e454720f61692bd960">gene_metadatalist()</a>, <a class="el" href="structcache__param.html#a89b857a7eea2ef020774bba91421b47f">cache_param::ihdrbox</a>, <a class="el" href="structcache__param.html#a001b90163246b1af6f7b4e37e9ae53c2">cache_param::metadatalist</a>, <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>, <a class="el" href="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a>, and <a class="el" href="structcache__param.html#ab49c86ae00ed1c75ec917bec95377aeb">cache_param::tid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0de1bb714bff02327255920dfc5bd838"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a>* gene_cachelist </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>generate a cache list </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>pointer to the generated cache list </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, and <a class="el" href="structcachelist__param.html#aa67288298eb248dfe68696202b79f009">cachelist_param::last</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="openjpip_8h.html#ae5c902178b9b0aa3b752de016a1074d7">init_dec_server()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a602fae2adbfa511bccf6f2fad3fe7891"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void insert_cache_into_list </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td>
|
|
<td class="paramname"><em>cache</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>insert a cache into list </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cache</td><td>cache pointer </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, <a class="el" href="structcachelist__param.html#aa67288298eb248dfe68696202b79f009">cachelist_param::last</a>, and <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a86ab032b568db30c8763213f221cc760"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void print_allcache </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>print all cache parameters </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>, and <a class="el" href="cache__manager_8c.html#aaf3ec7928cfc0cfa3888db892d50c20c">print_cache()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aaf3ec7928cfc0cfa3888db892d50c20c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void print_cache </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td>
|
|
<td class="paramname"><em>cache</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>print cache parameters </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cache</td><td>cache pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a>, <a class="el" href="structcache__param.html#a8f5a0232ef788420480274e68932a8d3">cache_param::csn</a>, <a class="el" href="structcache__param.html#a4b1e92d200b2d6f991acfb031024181e">cache_param::filename</a>, <a class="el" href="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a>, and <a class="el" href="structcache__param.html#ab49c86ae00ed1c75ec917bec95377aeb">cache_param::tid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="cache__manager_8h.html#a86ab032b568db30c8763213f221cc760">print_allcache()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4091726e2df2dac42292353947a4ea07"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void remove_cachecid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>cid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>remove cid in cache </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cid</td><td>channel identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cachelist pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="cache__manager_8c.html#a9acafab6ba8be44d424c238272480aad">remove_cidInCache()</a>, and <a class="el" href="cache__manager_8c.html#ac538e4f629668779ce42d178389c5b7a">search_cacheBycid()</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a1b541c52a440a95733cd0f961189ad5a">handle_dstCIDreqMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9acafab6ba8be44d424c238272480aad"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void remove_cidInCache </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>cid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td>
|
|
<td class="paramname"><em>cache</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a>, and <a class="el" href="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="cache__manager_8h.html#a4091726e2df2dac42292353947a4ea07">remove_cachecid()</a>, and <a class="el" href="cache__manager_8h.html#aeb3f8c42f00448cd7b3907d8bd516dd8">update_cachetid()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a373dac3fd74b9947e59a095048b18a0a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a>* search_cache </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char </td>
|
|
<td class="paramname"><em>targetname</em>[], </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>search a cache by target name </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">targetname</td><td>target filename </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>found cache pointer </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a4b1e92d200b2d6f991acfb031024181e">cache_param::filename</a>, <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, and <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#aa47b5aa4364e9df31b03eca619009445">handle_CIDreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>, and <a class="el" href="dec__clientmsg__handler_8h.html#a86f804d83268e44baef977b7b54cbbcc">handle_TIDreqMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac538e4f629668779ce42d178389c5b7a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a>* search_cacheBycid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char </td>
|
|
<td class="paramname"><em>cid</em>[], </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>search a cache by cid </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cid</td><td>channel identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>found cache pointer </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a15739295a73f8bca1a53b4c11f3a855a">cache_param::cid</a>, <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>, and <a class="el" href="structcache__param.html#acc75fa242d285962ff9451c0b875c18c">cache_param::numOfcid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a163197f925cd8d6f60da5b6151e01c3b">handle_JP2saveMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#ac1721ebe188622dcbd80540e1bc4a237">handle_PNMreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a98cac1bbde27cbbd1d4292985b3f5b49">handle_SIZreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a22becf5f598618de947805f858b1a617">handle_XMLreqMSG()</a>, and <a class="el" href="cache__manager_8h.html#a4091726e2df2dac42292353947a4ea07">remove_cachecid()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3971cee032d83329cb3f23a66f0f9dd9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a>* search_cacheBycsn </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>csn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>search a cache by csn </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">csn</td><td>codestream number </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>found cache pointer </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a8f5a0232ef788420480274e68932a8d3">cache_param::csn</a>, <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, and <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3bd60aac832b765c765eb71211af2e05"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a>* search_cacheBytid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char </td>
|
|
<td class="paramname"><em>tid</em>[], </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#a7e12967917ae0307a4437f57b08eeaa3">cachelist_param_t</a> * </td>
|
|
<td class="paramname"><em>cachelist</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>search a cache by tid </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">tid</td><td>target identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cachelist</td><td>cache list pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>found cache pointer </dd></dl>
|
|
|
|
<p>References <a class="el" href="structcachelist__param.html#a1555171ee1d36bc00c82246c1ea411dd">cachelist_param::first</a>, <a class="el" href="structcache__param.html#aea41f0c4553d98f30fbd299e78a637e8">cache_param::next</a>, and <a class="el" href="structcache__param.html#ab49c86ae00ed1c75ec917bec95377aeb">cache_param::tid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ac1721ebe188622dcbd80540e1bc4a237">handle_PNMreqMSG()</a>, and <a class="el" href="dec__clientmsg__handler_8h.html#a98cac1bbde27cbbd1d4292985b3f5b49">handle_SIZreqMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aeb3f8c42f00448cd7b3907d8bd516dd8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void update_cachetid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>tid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="cache__manager_8h.html#ad353c885e94af199b74fb9b97d51bbec">cache_param_t</a> * </td>
|
|
<td class="paramname"><em>cache</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>update tid of a cache </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">tid</td><td>target identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cache</td><td>cache pointer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>References <a class="el" href="structcache__param.html#a4b1e92d200b2d6f991acfb031024181e">cache_param::filename</a>, <a class="el" href="cache__manager_8c.html#a9acafab6ba8be44d424c238272480aad">remove_cidInCache()</a>, and <a class="el" href="structcache__param.html#ab49c86ae00ed1c75ec917bec95377aeb">cache_param::tid</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.11
|
|
</small></address>
|
|
</body>
|
|
</html>
|