253 lines
16 KiB
HTML
253 lines
16 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.10"/>
|
|
<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;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">OpenJPEG
|
|
 <span id="projectnumber">2.2.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<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_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_694e20c96f4fc1be4aed4f026eadce94.html">antonin</a></li><li class="navelem"><a class="el" href="dir_3ca1ad36e65e03f9e8d67ddc2553765b.html">dev</a></li><li class="navelem"><a class="el" href="dir_181a881edfcb8646dab693a228fa6bde.html">opj</a></li><li class="navelem"><a class="el" href="dir_5064bb5511811c3176850b7e47443f14.html">github</a></li><li class="navelem"><a class="el" href="dir_0b20524d8f8835ca75acc430451c8412.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_e3f8a8e294f8271ee71cbcf3c2acacc1.html">src</a></li><li class="navelem"><a class="el" href="dir_da83fe5fdfb6c4554d36abffc03790ad.html">lib</a></li><li class="navelem"><a class="el" href="dir_6ec2d9a1b37a1187cc46aeaf3b19e1b3.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">j2kheader_manager.h File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="byte__manager_8h_source.html">byte_manager.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="index__manager_8h_source.html">index_manager.h</a>"</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> </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"> </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"> </td></tr>
|
|
<tr class="memitem:acaadd27484f5ed74d421b53a8712ece9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> </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"> </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"> </td></tr>
|
|
<tr class="memitem:aaf155590fb82d18a01ddef20353cf076"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> </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"> </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"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="a6e85dbe0255e26a6027b19afde275b60"></a>
|
|
<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> * </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> * </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> * </td>
|
|
<td class="paramname"><em>COD</em> </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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acaadd27484f5ed74d421b53a8712ece9"></a>
|
|
<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> * </td>
|
|
<td class="paramname"><em>j2kstream</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </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> </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> </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> * </td>
|
|
<td class="paramname"><em>j2klen</em> </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>
|
|
|
|
<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>
|
|
|
|
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#a5aafbf746124f238d36a0eeeb442ac7a">recons_codestream_from_JPPstream()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aaf155590fb82d18a01ddef20353cf076"></a>
|
|
<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> * </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> </td>
|
|
<td class="paramname"><em>SOToffset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </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> </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> * </td>
|
|
<td class="paramname"><em>j2klen</em> </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>
|
|
|
|
<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>
|
|
|
|
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#a5aafbf746124f238d36a0eeeb442ac7a">recons_codestream_from_JPPstream()</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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|