<ahref="cachemodel__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="astructcachemodel__param_html"><divclass="ttname"><ahref="structcachemodel__param.html">cachemodel_param</a></div><divclass="ttdoc">Cache model parameters.</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:37</div></div>
<divclass="ttc"id="astructcachemodel__param_html_a0466bae42d0c58d160eba44a877e5761"><divclass="ttname"><ahref="structcachemodel__param.html#a0466bae42d0c58d160eba44a877e5761">cachemodel_param::pp_model</a></div><divclass="ttdeci">OPJ_BOOL ** pp_model</div><divclass="ttdoc">dynamic array pointer of precint packet model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:43</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a3fe08bb7876e393dd04332d049a4d53e"><divclass="ttname"><ahref="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc</a></div><divclass="ttdeci">void * opj_calloc(size_t num, size_t size)</div><divclass="ttdoc">Allocate a memory block with elements initialized to 0.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:198</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="acachemodel__manager_8c_html_a4beb279f2f89ebfea569a93368ddcffa"><divclass="ttname"><ahref="cachemodel__manager_8c.html#a4beb279f2f89ebfea569a93368ddcffa">delete_cachemodel</a></div><divclass="ttdeci">void delete_cachemodel(cachemodel_param_t **cachemodel)</div><divclass="ttdoc">delete a cache model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:191</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a79168a3b2807f62ba9efd85676e4ca7c"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a79168a3b2807f62ba9efd85676e4ca7c">SIZmarker_param::XTnum</a></div><divclass="ttdeci">Byte4_t XTnum</div><divclass="ttdoc">number of tiles in horizontal direction</div><divclass="ttdef"><b>Definition:</b> index_manager.h:66</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_a100d5835680e609531af22213616ce97"><divclass="ttname"><ahref="cachemodel__manager_8h.html#a100d5835680e609531af22213616ce97">is_allsent</a></div><divclass="ttdeci">OPJ_BOOL is_allsent(cachemodel_param_t cachemodel)</div><divclass="ttdoc">check if all data has been sent</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:211</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_aa9ed9725968b7cad5746bf371185ddf6"><divclass="ttname"><ahref="cachemodel__manager_8h.html#aa9ed9725968b7cad5746bf371185ddf6">gene_cachemodellist</a></div><divclass="ttdeci">cachemodellist_param_t * gene_cachemodellist(void)</div><divclass="ttdoc">generate a cache model list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:47</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="astructfaixbox__param_html"><divclass="ttname"><ahref="structfaixbox__param.html">faixbox_param</a></div><divclass="ttdoc">fragment array index box parameters</div><divclass="ttdef"><b>Definition:</b> faixbox_manager.h:77</div></div>
<divclass="ttc"id="afaixbox__manager_8c_html_a9dc6a52e3b73d819c3cca6ee29c1485d"><divclass="ttname"><ahref="faixbox__manager_8c.html#a9dc6a52e3b73d819c3cca6ee29c1485d">get_nmax</a></div><divclass="ttdeci">Byte8_t get_nmax(faixbox_param_t *faix)</div><divclass="ttdoc">get nmax parameter value from faix box</div><divclass="ttdef"><b>Definition:</b> faixbox_manager.c:163</div></div>
<divclass="ttc"id="astructindex__param_html_abbf2b7d27ed7e860fd67ba9a58af1514"><divclass="ttname"><ahref="structindex__param.html#abbf2b7d27ed7e860fd67ba9a58af1514">index_param::tilepart</a></div><divclass="ttdeci">faixbox_param_t * tilepart</div><divclass="ttdoc">tile part information from tpix box</div><divclass="ttdef"><b>Definition:</b> index_manager.h:93</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a5a9e6d3f2d4918549184415e4b19eea0"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a5a9e6d3f2d4918549184415e4b19eea0">SIZmarker_param::YTnum</a></div><divclass="ttdeci">Byte4_t YTnum</div><divclass="ttdoc">number of tiles in vertical direction</div><divclass="ttdef"><b>Definition:</b> index_manager.h:67</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="acachemodel__manager_8h_html_a8536ce465d342e4cd99e618c4c20e6d7"><divclass="ttname"><ahref="cachemodel__manager_8h.html#a8536ce465d342e4cd99e618c4c20e6d7">gene_cachemodel</a></div><divclass="ttdeci">cachemodel_param_t * gene_cachemodel(cachemodellist_param_t *cachemodellist, target_param_t *target, OPJ_BOOL reqJPP)</div><divclass="ttdoc">generate a cache model under a list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:60</div></div>
<divclass="ttc"id="acachemodel__manager_8c_html_a100d5835680e609531af22213616ce97"><divclass="ttname"><ahref="cachemodel__manager_8c.html#a100d5835680e609531af22213616ce97">is_allsent</a></div><divclass="ttdeci">OPJ_BOOL is_allsent(cachemodel_param_t cachemodel)</div><divclass="ttdoc">check if all data has been sent</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:211</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="astructcachemodel__param_html_aaad2900a86415256baf4b5a9bf87494a"><divclass="ttname"><ahref="structcachemodel__param.html#aaad2900a86415256baf4b5a9bf87494a">cachemodel_param::target</a></div><divclass="ttdeci">target_param_t * target</div><divclass="ttdoc">reference pointer to the target</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:38</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_afc947ec11dce7bd97428642c4a2bebbd"><divclass="ttname"><ahref="cachemodel__manager_8h.html#afc947ec11dce7bd97428642c4a2bebbd">cachemodel_param_t</a></div><divclass="ttdeci">struct cachemodel_param cachemodel_param_t</div><divclass="ttdoc">Cache model parameters.</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="afaixbox__manager_8c_html_a342c04b082e9806b27b56ae99e504389"><divclass="ttname"><ahref="faixbox__manager_8c.html#a342c04b082e9806b27b56ae99e504389">get_m</a></div><divclass="ttdeci">Byte8_t get_m(faixbox_param_t *faix)</div><divclass="ttdoc">get m parameter value from faix box</div><divclass="ttdef"><b>Definition:</b> faixbox_manager.c:172</div></div>
<divclass="ttc"id="astructcachemodel__param_html_a5862422cdc2fff031cce285337a734fd"><divclass="ttname"><ahref="structcachemodel__param.html#a5862422cdc2fff031cce285337a734fd">cachemodel_param::tp_model</a></div><divclass="ttdeci">OPJ_BOOL * tp_model</div><divclass="ttdoc">dynamic array pointer of tile part model, if sent, 1, else 0</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:41</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_a3a82ae2092fee5a1f9edf2b6151de4ae"><divclass="ttname"><ahref="cachemodel__manager_8h.html#a3a82ae2092fee5a1f9edf2b6151de4ae">search_cachemodel</a></div><divclass="ttdeci">cachemodel_param_t * search_cachemodel(target_param_t *target, cachemodellist_param_t *cachemodellist)</div><divclass="ttdoc">search a cache model of a target</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:160</div></div>
<divclass="ttc"id="astructcachemodel__param_html_a312855041868dadb7818b652c02e5711"><divclass="ttname"><ahref="structcachemodel__param.html#a312855041868dadb7818b652c02e5711">cachemodel_param::th_model</a></div><divclass="ttdeci">OPJ_BOOL * th_model</div><divclass="ttdoc">dynamic array pointer of tile header model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:42</div></div>
<divclass="ttc"id="astructcachemodellist__param_html"><divclass="ttname"><ahref="structcachemodellist__param.html">cachemodellist_param</a></div><divclass="ttdoc">Cache model list parameters.</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:48</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_a1cd73642db77e17fc35a8ff6e7ffa3eb"><divclass="ttname"><ahref="cachemodel__manager_8h.html#a1cd73642db77e17fc35a8ff6e7ffa3eb">cachemodellist_param_t</a></div><divclass="ttdeci">struct cachemodellist_param cachemodellist_param_t</div><divclass="ttdoc">Cache model list parameters.</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="astructcachemodel__param_html_a6bfd52e715d76d87c19a8bbee8e84fee"><divclass="ttname"><ahref="structcachemodel__param.html#a6bfd52e715d76d87c19a8bbee8e84fee">cachemodel_param::next</a></div><divclass="ttdeci">struct cachemodel_param * next</div><divclass="ttdoc">pointer to the next cache model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:44</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a8de864778880574d3b7c27dd13462a85"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a8de864778880574d3b7c27dd13462a85">SIZmarker_param::Csiz</a></div><divclass="ttdeci">Byte2_t Csiz</div><divclass="ttdoc">number of the components in the image</div><divclass="ttdef"><b>Definition:</b> index_manager.h:68</div></div>
<divclass="ttc"id="acachemodel__manager_8c_html_a8536ce465d342e4cd99e618c4c20e6d7"><divclass="ttname"><ahref="cachemodel__manager_8c.html#a8536ce465d342e4cd99e618c4c20e6d7">gene_cachemodel</a></div><divclass="ttdeci">cachemodel_param_t * gene_cachemodel(cachemodellist_param_t *cachemodellist, target_param_t *target, OPJ_BOOL reqJPP)</div><divclass="ttdoc">generate a cache model under a list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:60</div></div>
<divclass="ttc"id="acachemodel__manager_8h_html_a4beb279f2f89ebfea569a93368ddcffa"><divclass="ttname"><ahref="cachemodel__manager_8h.html#a4beb279f2f89ebfea569a93368ddcffa">delete_cachemodel</a></div><divclass="ttdeci">void delete_cachemodel(cachemodel_param_t **cachemodel)</div><divclass="ttdoc">delete a cache model</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:191</div></div>
<divclass="ttc"id="acachemodel__manager_8c_html_aa9ed9725968b7cad5746bf371185ddf6"><divclass="ttname"><ahref="cachemodel__manager_8c.html#aa9ed9725968b7cad5746bf371185ddf6">gene_cachemodellist</a></div><divclass="ttdeci">cachemodellist_param_t * gene_cachemodellist(void)</div><divclass="ttdoc">generate a cache model list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:47</div></div>
<divclass="ttc"id="astructindex__param_html_a7400fd13418cd272c8049388721688aa"><divclass="ttname"><ahref="structindex__param.html#a7400fd13418cd272c8049388721688aa">index_param::precpacket</a></div><divclass="ttdeci">faixbox_param_t ** precpacket</div><divclass="ttdoc">dynamic array of precint packet information from ppix box</div><divclass="ttdef"><b>Definition:</b> index_manager.h:97</div></div>
<divclass="ttc"id="astructcachemodellist__param_html_ab6ea5db7ee4bc86522cb07f9f29f243c"><divclass="ttname"><ahref="structcachemodellist__param.html#ab6ea5db7ee4bc86522cb07f9f29f243c">cachemodellist_param::first</a></div><divclass="ttdeci">cachemodel_param_t * first</div><divclass="ttdoc">first cache model pointer of the list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:49</div></div>
<divclass="ttc"id="astructcachemodellist__param_html_a230686ed9a04c0d53828b7450b779ea2"><divclass="ttname"><ahref="structcachemodellist__param.html#a230686ed9a04c0d53828b7450b779ea2">cachemodellist_param::last</a></div><divclass="ttdeci">cachemodel_param_t * last</div><divclass="ttdoc">last cache model pointer of the list</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.h:50</div></div>
<divclass="ttc"id="acachemodel__manager_8c_html_a3a82ae2092fee5a1f9edf2b6151de4ae"><divclass="ttname"><ahref="cachemodel__manager_8c.html#a3a82ae2092fee5a1f9edf2b6151de4ae">search_cachemodel</a></div><divclass="ttdeci">cachemodel_param_t * search_cachemodel(target_param_t *target, cachemodellist_param_t *cachemodellist)</div><divclass="ttdoc">search a cache model of a target</div><divclass="ttdef"><b>Definition:</b> cachemodel_manager.c:160</div></div>