openjpeg/doxygen/imgreg__manager_8h.html

378 lines
20 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: imgreg_manager.h 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_54d80c9412497e935deb5677b5fae801.html">openjpip</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">imgreg_manager.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a href="imgreg__manager_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structimgreg__param.html">imgreg_param</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">image region parameters <a href="structimgreg__param.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:af7475ef529dff8b1a2703dd22c5a29f4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structimgreg__param.html">imgreg_param</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a></td></tr>
<tr class="memdesc:af7475ef529dff8b1a2703dd22c5a29f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">image region parameters <a href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">More...</a><br /></td></tr>
<tr class="separator:af7475ef529dff8b1a2703dd22c5a29f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac83fd8389ce9eca05c6d3fb5c4fa7eb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgreg__manager_8h.html#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">map_viewin2imgreg</a> (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)</td></tr>
<tr class="memdesc:ac83fd8389ce9eca05c6d3fb5c4fa7eb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">map view-window requests to codestream image resolutions and regions <a href="imgreg__manager_8h.html#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">More...</a><br /></td></tr>
<tr class="separator:ac83fd8389ce9eca05c6d3fb5c4fa7eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45b2a9e891d8b82cdab95b513ba7af3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgreg__manager_8h.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level</a> (int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, int *xmax, int *ymax)</td></tr>
<tr class="memdesc:a45b2a9e891d8b82cdab95b513ba7af3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">find deconposition level and its resolution size C.4.1 Mapping view-window requests to codestream image resolution and regions Note: only round-down implemented <a href="imgreg__manager_8h.html#a45b2a9e891d8b82cdab95b513ba7af3c">More...</a><br /></td></tr>
<tr class="separator:a45b2a9e891d8b82cdab95b513ba7af3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9ee71088d3e692543a29baa73d5d00b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgreg__manager_8h.html#ab9ee71088d3e692543a29baa73d5d00b">comp_decomplev</a> (int fw, int fh, int Xsiz, int Ysiz)</td></tr>
<tr class="memdesc:ab9ee71088d3e692543a29baa73d5d00b"><td class="mdescLeft">&#160;</td><td class="mdescRight">compute decomposition level (only to get the level use find_level for all parameters <a href="imgreg__manager_8h.html#ab9ee71088d3e692543a29baa73d5d00b">More...</a><br /></td></tr>
<tr class="separator:ab9ee71088d3e692543a29baa73d5d00b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8e1929b71a5fd24be686173988b4b39"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgreg__manager_8h.html#aa8e1929b71a5fd24be686173988b4b39">print_imgreg</a> (<a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a> imgreg)</td></tr>
<tr class="memdesc:aa8e1929b71a5fd24be686173988b4b39"><td class="mdescLeft">&#160;</td><td class="mdescRight">print image region parameters <a href="imgreg__manager_8h.html#aa8e1929b71a5fd24be686173988b4b39">More...</a><br /></td></tr>
<tr class="separator:aa8e1929b71a5fd24be686173988b4b39"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="af7475ef529dff8b1a2703dd22c5a29f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7475ef529dff8b1a2703dd22c5a29f4">&#9670;&nbsp;</a></span>imgreg_param_t</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structimgreg__param.html">imgreg_param</a> <a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>image region parameters </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ab9ee71088d3e692543a29baa73d5d00b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9ee71088d3e692543a29baa73d5d00b">&#9670;&nbsp;</a></span>comp_decomplev()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int comp_decomplev </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fh</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>Xsiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>Ysiz</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>compute decomposition level (only to get the level use find_level for all parameters </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fw</td><td>horizontal frame size </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">fh</td><td>vertical frame size </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">Xsiz</td><td>image width </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">Ysiz</td><td>image height </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>decomposition level </dd></dl>
<p class="reference">References <a class="el" href="imgreg__manager_8c.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level()</a>.</p>
<p class="reference">Referenced by <a class="el" href="jp2k__encoder_8c.html#a5aafbf746124f238d36a0eeeb442ac7a">recons_codestream_from_JPPstream()</a>, and <a class="el" href="jp2k__encoder_8c.html#a722b5ca0c9026f39cd6523ee19c34b91">recons_codestream_from_JPTstream()</a>.</p>
</div>
</div>
<a id="a45b2a9e891d8b82cdab95b513ba7af3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45b2a9e891d8b82cdab95b513ba7af3c">&#9670;&nbsp;</a></span>find_level()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void find_level </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>maxlev</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>lev</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>fx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>fy</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>xmin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>ymin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>xmax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int *&#160;</td>
<td class="paramname"><em>ymax</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>find deconposition level and its resolution size C.4.1 Mapping view-window requests to codestream image resolution and regions Note: only round-down implemented </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">maxlev</td><td>maximum decomposition level </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">lev</td><td>decomposition level pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">fx</td><td>horizontal frame size pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">fy</td><td>vertical frame size pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">xmin</td><td>horizontal image offset pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">ymin</td><td>vertical image offset pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">xmax</td><td>horizontal image size pointer </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">ymax</td><td>vertical image size pointer </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="imgreg__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="imgreg__manager_8c.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level()</a>.</p>
<p class="reference">Referenced by <a class="el" href="imgreg__manager_8h.html#ab9ee71088d3e692543a29baa73d5d00b">comp_decomplev()</a>, <a class="el" href="imgreg__manager_8h.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level()</a>, and <a class="el" href="imgreg__manager_8h.html#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">map_viewin2imgreg()</a>.</p>
</div>
</div>
<a id="ac83fd8389ce9eca05c6d3fb5c4fa7eb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac83fd8389ce9eca05c6d3fb5c4fa7eb9">&#9670;&nbsp;</a></span>map_viewin2imgreg()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a> map_viewin2imgreg </td>
<td>(</td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>fx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>fy</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>rx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>ry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>rw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>rh</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>XOsiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>YOsiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>Xsiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>Ysiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>numOfreslev</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>map view-window requests to codestream image resolutions and regions </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fx,fy</td><td>frame size </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">rx,ry</td><td>offset of region </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">rw,rh</td><td>size of region </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">XOsiz,YOsiz</td><td>offset from the origin of the reference grid to the left side of the image area </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">Xsiz,Ysiz</td><td>size of the reference grid </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">numOfreslev</td><td>number of resolution levels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>structure of image region parameters </dd></dl>
<p class="reference">References <a class="el" href="imgreg__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>, <a class="el" href="imgreg__manager_8c.html#a45b2a9e891d8b82cdab95b513ba7af3c">find_level()</a>, <a class="el" href="structimgreg__param.html#a20d458cf8ecf496ad31b54f5591ebd97">imgreg_param::fx</a>, <a class="el" href="structimgreg__param.html#a563ef991e9c0984076aad5d0ecd7fa54">imgreg_param::fy</a>, <a class="el" href="structimgreg__param.html#a3c1a5b9f9b6e7507617039c5c5b5b791">imgreg_param::level</a>, <a class="el" href="structimgreg__param.html#a4d0e590eb543c65f9cbc539741b225ae">imgreg_param::ox</a>, <a class="el" href="structimgreg__param.html#a46a345d7aee5c0fbd24f2d057e7be8cf">imgreg_param::oy</a>, <a class="el" href="structimgreg__param.html#a213f176b8935a6e655131308525ccbb2">imgreg_param::sx</a>, <a class="el" href="structimgreg__param.html#a24e11f9dfd64c2a4aa0ac5aaaf67a897">imgreg_param::sy</a>, <a class="el" href="structimgreg__param.html#a0aafdd976f2e50a12b30910cf7ac32c8">imgreg_param::xosiz</a>, and <a class="el" href="structimgreg__param.html#a8b5eb61d99e89e70d71e184b3653fc01">imgreg_param::yosiz</a>.</p>
<p class="reference">Referenced by <a class="el" href="jpip__parser_8c.html#a72490e3e8ccd2d8d102a15affea987ec">enqueue_imagedata()</a>.</p>
</div>
</div>
<a id="aa8e1929b71a5fd24be686173988b4b39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8e1929b71a5fd24be686173988b4b39">&#9670;&nbsp;</a></span>print_imgreg()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void print_imgreg </td>
<td>(</td>
<td class="paramtype"><a class="el" href="imgreg__manager_8h.html#af7475ef529dff8b1a2703dd22c5a29f4">imgreg_param_t</a>&#160;</td>
<td class="paramname"><em>imgreg</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>print image region parameters </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">imgreg</td><td>image region structure of parameters </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structimgreg__param.html#a20d458cf8ecf496ad31b54f5591ebd97">imgreg_param::fx</a>, <a class="el" href="structimgreg__param.html#a563ef991e9c0984076aad5d0ecd7fa54">imgreg_param::fy</a>, <a class="el" href="structimgreg__param.html#a3c1a5b9f9b6e7507617039c5c5b5b791">imgreg_param::level</a>, <a class="el" href="imgreg__manager_8c.html#a31c99676da88bb0bcdb350710f00fa96">logstream</a>, <a class="el" href="structimgreg__param.html#a4d0e590eb543c65f9cbc539741b225ae">imgreg_param::ox</a>, <a class="el" href="structimgreg__param.html#a46a345d7aee5c0fbd24f2d057e7be8cf">imgreg_param::oy</a>, <a class="el" href="structimgreg__param.html#a213f176b8935a6e655131308525ccbb2">imgreg_param::sx</a>, and <a class="el" href="structimgreg__param.html#a24e11f9dfd64c2a4aa0ac5aaaf67a897">imgreg_param::sy</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>