openjpeg/doxygen/j2kheader__manager_8h.html

253 lines
16 KiB
HTML
Raw Normal View History

2015-07-10 18:06:19 +02:00
<!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"/>
2020-12-28 22:12:25 +01:00
<meta name="generator" content="Doxygen 1.8.11"/>
2015-07-10 18:06:19 +02:00
<title>OpenJPEG: j2kheader_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;">
2016-09-29 22:38:29 +02:00
<td id="projectalign" style="padding-left: 0.5em;">
2015-07-10 18:06:19 +02:00
<div id="projectname">OpenJPEG
2020-12-28 22:12:25 +01:00
&#160;<span id="projectnumber">2.4.0</span>
2015-07-10 18:06:19 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2020-12-28 22:12:25 +01:00
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;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&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
2015-07-10 18:06:19 +02:00
<div id="nav-path" class="navpath">
<ul>
2020-12-28 22:12:25 +01:00
<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>
2015-07-10 18:06:19 +02:00
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">j2kheader_manager.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="byte__manager_8h_source.html">byte_manager.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="index__manager_8h_source.html">index_manager.h</a>&quot;</code><br />
</div>
<p><a href="j2kheader__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="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6e85dbe0255e26a6027b19afde275b60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="j2kheader__manager_8h.html#a6e85dbe0255e26a6027b19afde275b60">get_mainheader_from_j2kstream</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *j2kstream, <a class="el" href="index__manager_8h.html#aad063c864473ce7ae7a16d9955594f3a">SIZmarker_param_t</a> *SIZ, <a class="el" href="index__manager_8h.html#a4b304973391a206d69d52931370350c3">CODmarker_param_t</a> *COD)</td></tr>
<tr class="memdesc:a6e85dbe0255e26a6027b19afde275b60"><td class="mdescLeft">&#160;</td><td class="mdescRight">get main header information from j2k codestream <a href="#a6e85dbe0255e26a6027b19afde275b60">More...</a><br /></td></tr>
<tr class="separator:a6e85dbe0255e26a6027b19afde275b60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaadd27484f5ed74d421b53a8712ece9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="j2kheader__manager_8h.html#acaadd27484f5ed74d421b53a8712ece9">modify_mainheader</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *j2kstream, int numOfdecomp, <a class="el" href="index__manager_8h.html#aad063c864473ce7ae7a16d9955594f3a">SIZmarker_param_t</a> SIZ, <a class="el" href="index__manager_8h.html#a4b304973391a206d69d52931370350c3">CODmarker_param_t</a> COD, <a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> *j2klen)</td></tr>
<tr class="memdesc:acaadd27484f5ed74d421b53a8712ece9"><td class="mdescLeft">&#160;</td><td class="mdescRight">modify main header in j2k codestream to fit with the new number of decompositions <a href="#acaadd27484f5ed74d421b53a8712ece9">More...</a><br /></td></tr>
<tr class="separator:acaadd27484f5ed74d421b53a8712ece9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf155590fb82d18a01ddef20353cf076"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="j2kheader__manager_8h.html#aaf155590fb82d18a01ddef20353cf076">modify_tileheader</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *j2kstream, <a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> SOToffset, int numOfdecomp, <a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a> Csiz, <a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> *j2klen)</td></tr>
<tr class="memdesc:aaf155590fb82d18a01ddef20353cf076"><td class="mdescLeft">&#160;</td><td class="mdescRight">modify tile header in j2k codestream to fit with the tile part length, and new number of decompositions for multi-componet images <a href="#aaf155590fb82d18a01ddef20353cf076">More...</a><br /></td></tr>
<tr class="separator:aaf155590fb82d18a01ddef20353cf076"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
2020-12-28 22:12:25 +01:00
<a class="anchor" id="a6e85dbe0255e26a6027b19afde275b60"></a>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> get_mainheader_from_j2kstream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>j2kstream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="index__manager_8h.html#aad063c864473ce7ae7a16d9955594f3a">SIZmarker_param_t</a> *&#160;</td>
<td class="paramname"><em>SIZ</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="index__manager_8h.html#a4b304973391a206d69d52931370350c3">CODmarker_param_t</a> *&#160;</td>
<td class="paramname"><em>COD</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>get main header information from j2k codestream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">j2kstream</td><td>j2k codestream </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">SIZ</td><td>SIZ marker pointer </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">COD</td><td>COD marker pointer </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if succeeded (true) or failed (false) </dd></dl>
2020-12-28 22:12:25 +01:00
<p>References <a class="el" href="byte__manager_8c.html#a0c20ded21352121723f9df94c7568356">big2()</a>, <a class="el" href="j2kheader__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, <a class="el" href="j2kheader__manager_8c.html#ae1684855661e9a592d1071caab77ccd6">get_CODmkrdata_from_j2kstream()</a>, <a class="el" href="j2kheader__manager_8c.html#a5aea84c4ed6285aee37fa2357c13f995">get_SIZmkrdata_from_j2kstream()</a>, <a class="el" href="struct_c_o_dmarker__param.html#aaa174b456bfeb15a6bf45e0b775df2c7">CODmarker_param::Lcod</a>, <a class="el" href="struct_s_i_zmarker__param.html#a04d37f31c54e9ff34a328532e83ff059">SIZmarker_param::Lsiz</a>, <a class="el" href="openjpeg_8h.html#ac672bfd7db39c609e828acb07a321964">OPJ_FALSE</a>, and <a class="el" href="openjpeg_8h.html#a04830036d767cba56cbf5ae5bdc481d3">OPJ_TRUE</a>.</p>
2015-07-10 18:06:19 +02:00
2020-12-28 22:12:25 +01:00
<p>Referenced by <a class="el" href="jpipstream__manager_8h.html#a38dc84677da3c6c449d00254f62624e7">get_SIZ_from_jpipstream()</a>, <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>
2015-07-10 18:06:19 +02:00
</div>
</div>
2020-12-28 22:12:25 +01:00
<a class="anchor" id="acaadd27484f5ed74d421b53a8712ece9"></a>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> modify_mainheader </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>j2kstream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>numOfdecomp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="index__manager_8h.html#aad063c864473ce7ae7a16d9955594f3a">SIZmarker_param_t</a>&#160;</td>
<td class="paramname"><em>SIZ</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="index__manager_8h.html#a4b304973391a206d69d52931370350c3">CODmarker_param_t</a>&#160;</td>
<td class="paramname"><em>COD</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> *&#160;</td>
<td class="paramname"><em>j2klen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>modify main header in j2k codestream to fit with the new number of decompositions </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">j2kstream</td><td>j2k codestream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">numOfdecomp</td><td>the New number of decompositions </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">SIZ</td><td>original SIZ marker information </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">COD</td><td>original COD marker information </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">j2klen</td><td>pointer to the length of j2k code stream </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if succeeded (true) or failed (false) </dd></dl>
2020-12-28 22:12:25 +01:00
<p>References <a class="el" href="j2kheader__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, <a class="el" href="struct_c_o_dmarker__param.html#aaa174b456bfeb15a6bf45e0b775df2c7">CODmarker_param::Lcod</a>, <a class="el" href="struct_s_i_zmarker__param.html#a04d37f31c54e9ff34a328532e83ff059">SIZmarker_param::Lsiz</a>, <a class="el" href="j2kheader__manager_8c.html#accc10e3cbf88aa90806a93e853556b92">modify_CODmkrstream()</a>, <a class="el" href="j2kheader__manager_8c.html#a166021779c499bd144656e1ce352bc90">modify_SIZmkrstream()</a>, <a class="el" href="struct_c_o_dmarker__param.html#a8b5a7ec3922783dbb050dd2c6ee729a3">CODmarker_param::numOfdecomp</a>, <a class="el" href="openjpeg_8h.html#ac672bfd7db39c609e828acb07a321964">OPJ_FALSE</a>, and <a class="el" href="openjpeg_8h.html#a04830036d767cba56cbf5ae5bdc481d3">OPJ_TRUE</a>.</p>
2015-07-10 18:06:19 +02:00
2020-12-28 22:12:25 +01:00
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#a5aafbf746124f238d36a0eeeb442ac7a">recons_codestream_from_JPPstream()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2020-12-28 22:12:25 +01:00
<a class="anchor" id="aaf155590fb82d18a01ddef20353cf076"></a>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> modify_tileheader </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>j2kstream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a>&#160;</td>
<td class="paramname"><em>SOToffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>numOfdecomp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a>&#160;</td>
<td class="paramname"><em>Csiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> *&#160;</td>
<td class="paramname"><em>j2klen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>modify tile header in j2k codestream to fit with the tile part length, and new number of decompositions for multi-componet images </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">j2kstream</td><td>j2k codestream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">SOToffset</td><td>offset of SOT marker from the beginning of j2kstream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">numOfdecomp</td><td>the New number of decompositions, -1 if the same as original </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">Csiz</td><td>number of components </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">j2klen</td><td>pointer to the length of j2k code stream </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if succeeded (true) or failed (false) </dd></dl>
2020-12-28 22:12:25 +01:00
<p>References <a class="el" href="j2kheader__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, <a class="el" href="byte__manager_8c.html#a48c7dad6f593aa718712b9451317fae3">modify_4Bytecode()</a>, <a class="el" href="j2kheader__manager_8c.html#ac8e4b9d3953006fee572449180342385">modify_COCmkrstream()</a>, <a class="el" href="openjpeg_8h.html#ac672bfd7db39c609e828acb07a321964">OPJ_FALSE</a>, and <a class="el" href="openjpeg_8h.html#a04830036d767cba56cbf5ae5bdc481d3">OPJ_TRUE</a>.</p>
2015-07-10 18:06:19 +02:00
2020-12-28 22:12:25 +01:00
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#a5aafbf746124f238d36a0eeeb442ac7a">recons_codestream_from_JPPstream()</a>.</p>
2015-07-10 18:06:19 +02:00
</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"/>
2020-12-28 22:12:25 +01:00
</a> 1.8.11
2015-07-10 18:06:19 +02:00
</small></address>
</body>
</html>