<ahref="imgreg__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="aimgreg__manager_8c_html_aa8e1929b71a5fd24be686173988b4b39"><divclass="ttname"><ahref="imgreg__manager_8c.html#aa8e1929b71a5fd24be686173988b4b39">print_imgreg</a></div><divclass="ttdeci">void print_imgreg(imgreg_param_t imgreg)</div><divclass="ttdoc">print image region parameters</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:150</div></div>
<divclass="ttc"id="aimgreg__manager_8h_html_af7475ef529dff8b1a2703dd22c5a29f4"><divclass="ttname"><ahref="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a></div><divclass="ttdeci">struct imgreg_param imgreg_param_t</div><divclass="ttdoc">image region parameters</div></div>
<divclass="ttc"id="astructimgreg__param_html"><divclass="ttname"><ahref="structimgreg__param.html">imgreg_param</a></div><divclass="ttdoc">image region parameters</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.h:35</div></div>
<divclass="ttc"id="aimgreg__manager_8c_html_a45b2a9e891d8b82cdab95b513ba7af3c"><divclass="ttname"><ahref="imgreg__manager_8c.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level</a></div><divclass="ttdeci">void find_level(int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, int *xmax, int *ymax)</div><divclass="ttdoc">find deconposition level and its resolution size C.4.1 Mapping view-window requests to codestream ima...</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:109</div></div>
<divclass="ttc"id="aimgreg__manager_8c_html_ab9ee71088d3e692543a29baa73d5d00b"><divclass="ttname"><ahref="imgreg__manager_8c.html#ab9ee71088d3e692543a29baa73d5d00b">comp_decomplev</a></div><divclass="ttdeci">int comp_decomplev(int fw, int fh, int Xsiz, int Ysiz)</div><divclass="ttdoc">compute decomposition level (only to get the level use find_level for all parameters</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:134</div></div>
<divclass="ttc"id="astructimgreg__param_html_a20d458cf8ecf496ad31b54f5591ebd97"><divclass="ttname"><ahref="structimgreg__param.html#a20d458cf8ecf496ad31b54f5591ebd97">imgreg_param::fx</a></div><divclass="ttdeci">int fx</div><divclass="ttdoc">offset from the origin of the reference grid at the decomposition level</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.h:38</div></div>
<divclass="ttc"id="aimgreg__manager_8h_html_a45b2a9e891d8b82cdab95b513ba7af3c"><divclass="ttname"><ahref="imgreg__manager_8h.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level</a></div><divclass="ttdeci">void find_level(int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, int *xmax, int *ymax)</div><divclass="ttdoc">find deconposition level and its resolution size C.4.1 Mapping view-window requests to codestream ima...</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:109</div></div>
<divclass="ttc"id="aimgreg__manager_8c_html_ac83fd8389ce9eca05c6d3fb5c4fa7eb9"><divclass="ttname"><ahref="imgreg__manager_8c.html#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">map_viewin2imgreg</a></div><divclass="ttdeci">imgreg_param_t map_viewin2imgreg(const int fx, const int fy, const int rx, const int ry, const int rw, const int rh, const int XOsiz, const int YOsiz, const int Xsiz, const int Ysiz, const int numOfreslev)</div><divclass="ttdoc">map view-window requests to codestream image resolutions and regions</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:46</div></div>
<divclass="ttc"id="aimgreg__manager_8h_html_ac83fd8389ce9eca05c6d3fb5c4fa7eb9"><divclass="ttname"><ahref="imgreg__manager_8h.html#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">map_viewin2imgreg</a></div><divclass="ttdeci">imgreg_param_t map_viewin2imgreg(const int fx, const int fy, const int rx, const int ry, const int rw, const int rh, const int XOsiz, const int YOsiz, const int Xsiz, const int Ysiz, const int numOfreslev)</div><divclass="ttdoc">map view-window requests to codestream image resolutions and regions</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:46</div></div>
<divclass="ttc"id="aimgreg__manager_8h_html_ab9ee71088d3e692543a29baa73d5d00b"><divclass="ttname"><ahref="imgreg__manager_8h.html#ab9ee71088d3e692543a29baa73d5d00b">comp_decomplev</a></div><divclass="ttdeci">int comp_decomplev(int fw, int fh, int Xsiz, int Ysiz)</div><divclass="ttdoc">compute decomposition level (only to get the level use find_level for all parameters</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:134</div></div>