openjpeg/doxygen/byte__manager_8c.html

514 lines
32 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.11"/>
<title>OpenJPEG: byte_manager.c 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.4.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- 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>
<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="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">byte_manager.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;sys/types.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;sys/stat.h&gt;</code><br />
<code>#include &quot;<a class="el" href="byte__manager_8h_source.html">byte_manager.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac322e421aefb8ec9ccc10bef953e3d82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>&#160;&#160;&#160;stdout</td></tr>
<tr class="separator:ac322e421aefb8ec9ccc10bef953e3d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77b5d5af2adb2cfa7ec785b592fc4074"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>&#160;&#160;&#160;stderr</td></tr>
<tr class="separator:a77b5d5af2adb2cfa7ec785b592fc4074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c99676da88bb0bcdb350710f00fa96"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a31c99676da88bb0bcdb350710f00fa96">logstream</a>&#160;&#160;&#160;stderr</td></tr>
<tr class="separator:a31c99676da88bb0bcdb350710f00fa96"><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:a62851758f9c2af1b12995190a1e4e909"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes</a> (int fd, <a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> offset, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> size)</td></tr>
<tr class="memdesc:a62851758f9c2af1b12995190a1e4e909"><td class="mdescLeft">&#160;</td><td class="mdescRight">fetch bytes of data in file stream <a href="#a62851758f9c2af1b12995190a1e4e909">More...</a><br /></td></tr>
<tr class="separator:a62851758f9c2af1b12995190a1e4e909"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80c5006e047b8a2a5bbb48bcbc9bbd7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a80c5006e047b8a2a5bbb48bcbc9bbd7c">fetch_1byte</a> (int fd, <a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> offset)</td></tr>
<tr class="memdesc:a80c5006e047b8a2a5bbb48bcbc9bbd7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">fetch a 1-byte Byte codes in file stream <a href="#a80c5006e047b8a2a5bbb48bcbc9bbd7c">More...</a><br /></td></tr>
<tr class="separator:a80c5006e047b8a2a5bbb48bcbc9bbd7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc0810a234de2f1a8d59218959e07671"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#adc0810a234de2f1a8d59218959e07671">fetch_2bytebigendian</a> (int fd, <a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> offset)</td></tr>
<tr class="memdesc:adc0810a234de2f1a8d59218959e07671"><td class="mdescLeft">&#160;</td><td class="mdescRight">fetch a 2-byte big endian Byte codes in file stream <a href="#adc0810a234de2f1a8d59218959e07671">More...</a><br /></td></tr>
<tr class="separator:adc0810a234de2f1a8d59218959e07671"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72b441947e1fab5e8dd83fdc985bf29c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a72b441947e1fab5e8dd83fdc985bf29c">fetch_4bytebigendian</a> (int fd, <a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> offset)</td></tr>
<tr class="memdesc:a72b441947e1fab5e8dd83fdc985bf29c"><td class="mdescLeft">&#160;</td><td class="mdescRight">fetch a 4-byte big endian Byte codes in file stream <a href="#a72b441947e1fab5e8dd83fdc985bf29c">More...</a><br /></td></tr>
<tr class="separator:a72b441947e1fab5e8dd83fdc985bf29c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4d6ed0e45814368ab976a1530b8c780"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#ae4d6ed0e45814368ab976a1530b8c780">fetch_8bytebigendian</a> (int fd, <a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> offset)</td></tr>
<tr class="memdesc:ae4d6ed0e45814368ab976a1530b8c780"><td class="mdescLeft">&#160;</td><td class="mdescRight">fetch a 8-byte big endian Byte codes in file stream <a href="#ae4d6ed0e45814368ab976a1530b8c780">More...</a><br /></td></tr>
<tr class="separator:ae4d6ed0e45814368ab976a1530b8c780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c20ded21352121723f9df94c7568356"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a0c20ded21352121723f9df94c7568356">big2</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *buf)</td></tr>
<tr class="memdesc:a0c20ded21352121723f9df94c7568356"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert 2-byte big endian Byte codes to number <a href="#a0c20ded21352121723f9df94c7568356">More...</a><br /></td></tr>
<tr class="separator:a0c20ded21352121723f9df94c7568356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f29d888bc2d2a63e5ca8a2b71cfafea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a1f29d888bc2d2a63e5ca8a2b71cfafea">big4</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *buf)</td></tr>
<tr class="memdesc:a1f29d888bc2d2a63e5ca8a2b71cfafea"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert 4-byte big endian Byte codes to number <a href="#a1f29d888bc2d2a63e5ca8a2b71cfafea">More...</a><br /></td></tr>
<tr class="separator:a1f29d888bc2d2a63e5ca8a2b71cfafea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06c0559c3af79c5facbd4f50f1637782"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a06c0559c3af79c5facbd4f50f1637782">big8</a> (<a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *buf)</td></tr>
<tr class="memdesc:a06c0559c3af79c5facbd4f50f1637782"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert 8-byte big endian Byte codes to number <a href="#a06c0559c3af79c5facbd4f50f1637782">More...</a><br /></td></tr>
<tr class="separator:a06c0559c3af79c5facbd4f50f1637782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c7dad6f593aa718712b9451317fae3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a48c7dad6f593aa718712b9451317fae3">modify_4Bytecode</a> (<a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a> code, <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *stream)</td></tr>
<tr class="memdesc:a48c7dad6f593aa718712b9451317fae3"><td class="mdescLeft">&#160;</td><td class="mdescRight">modify 4Byte code in a codestream <a href="#a48c7dad6f593aa718712b9451317fae3">More...</a><br /></td></tr>
<tr class="separator:a48c7dad6f593aa718712b9451317fae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a955af5bd7b57f186c3174728fa160ff0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="byte__manager_8c.html#a955af5bd7b57f186c3174728fa160ff0">get_filesize</a> (int fd)</td></tr>
<tr class="memdesc:a955af5bd7b57f186c3174728fa160ff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get file size. <a href="#a955af5bd7b57f186c3174728fa160ff0">More...</a><br /></td></tr>
<tr class="separator:a955af5bd7b57f186c3174728fa160ff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a77b5d5af2adb2cfa7ec785b592fc4074"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FCGI_stderr&#160;&#160;&#160;stderr</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="byte__manager_8h.html#a80c5006e047b8a2a5bbb48bcbc9bbd7c">fetch_1byte()</a>, <a class="el" href="byte__manager_8h.html#adc0810a234de2f1a8d59218959e07671">fetch_2bytebigendian()</a>, <a class="el" href="byte__manager_8h.html#a72b441947e1fab5e8dd83fdc985bf29c">fetch_4bytebigendian()</a>, <a class="el" href="byte__manager_8h.html#ae4d6ed0e45814368ab976a1530b8c780">fetch_8bytebigendian()</a>, <a class="el" href="byte__manager_8h.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes()</a>, and <a class="el" href="byte__manager_8h.html#a955af5bd7b57f186c3174728fa160ff0">get_filesize()</a>.</p>
</div>
</div>
<a class="anchor" id="ac322e421aefb8ec9ccc10bef953e3d82"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FCGI_stdout&#160;&#160;&#160;stdout</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="byte__manager_8h.html#a80c5006e047b8a2a5bbb48bcbc9bbd7c">fetch_1byte()</a>, <a class="el" href="byte__manager_8h.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes()</a>, and <a class="el" href="byte__manager_8h.html#a955af5bd7b57f186c3174728fa160ff0">get_filesize()</a>.</p>
</div>
</div>
<a class="anchor" id="a31c99676da88bb0bcdb350710f00fa96"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define logstream&#160;&#160;&#160;stderr</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a0c20ded21352121723f9df94c7568356"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a> big2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>buf</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>convert 2-byte big endian Byte codes to number </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Byte codes </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>resolved number </dd></dl>
<p>Referenced by <a class="el" href="byte__manager_8h.html#adc0810a234de2f1a8d59218959e07671">fetch_2bytebigendian()</a>, <a class="el" href="ihdrbox__manager_8h.html#acdf07688caab4b647bb302cfeed5a718">gene_ihdrbox()</a>, <a class="el" href="j2kheader__manager_8c.html#ae1684855661e9a592d1071caab77ccd6">get_CODmkrdata_from_j2kstream()</a>, <a class="el" href="j2kheader__manager_8h.html#a6e85dbe0255e26a6027b19afde275b60">get_mainheader_from_j2kstream()</a>, <a class="el" href="j2kheader__manager_8c.html#a5aea84c4ed6285aee37fa2357c13f995">get_SIZmkrdata_from_j2kstream()</a>, and <a class="el" href="j2kheader__manager_8c.html#ac8e4b9d3953006fee572449180342385">modify_COCmkrstream()</a>.</p>
</div>
</div>
<a class="anchor" id="a1f29d888bc2d2a63e5ca8a2b71cfafea"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a> big4 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>buf</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>convert 4-byte big endian Byte codes to number </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Byte codes </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>resolved number </dd></dl>
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#acb31f818ceb9ea74dccfe83f60d6efe9">add_emptyboxstream()</a>, <a class="el" href="byte__manager_8h.html#a06c0559c3af79c5facbd4f50f1637782">big8()</a>, <a class="el" href="byte__manager_8h.html#a72b441947e1fab5e8dd83fdc985bf29c">fetch_4bytebigendian()</a>, <a class="el" href="box__manager_8h.html#a191b8fecf58253b417a49b1f5ea142ae">gene_boxbyOffinStream()</a>, <a class="el" href="box__manager_8h.html#ab31eb6d1ab6816c613a1938f0cc4b6e1">gene_boxbyOffset()</a>, <a class="el" href="box__manager_8h.html#af72156ca09a2c48d26b001b2897bd442">gene_boxbyType()</a>, <a class="el" href="box__manager_8h.html#ab67a3239dc3443f80439aa68531fe3dd">gene_boxbyTypeinStream()</a>, <a class="el" href="ihdrbox__manager_8h.html#acdf07688caab4b647bb302cfeed5a718">gene_ihdrbox()</a>, <a class="el" href="j2kheader__manager_8c.html#a5aea84c4ed6285aee37fa2357c13f995">get_SIZmkrdata_from_j2kstream()</a>, and <a class="el" href="msgqueue__manager_8c.html#ae7d04c56c5c927140331ee2bd612e029">parse_phld()</a>.</p>
</div>
</div>
<a class="anchor" id="a06c0559c3af79c5facbd4f50f1637782"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> big8 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>buf</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>convert 8-byte big endian Byte codes to number </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Byte codes </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>resolved number </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a1f29d888bc2d2a63e5ca8a2b71cfafea">big4()</a>.</p>
<p>Referenced by <a class="el" href="jp2k__encoder_8c.html#acb31f818ceb9ea74dccfe83f60d6efe9">add_emptyboxstream()</a>, <a class="el" href="byte__manager_8h.html#ae4d6ed0e45814368ab976a1530b8c780">fetch_8bytebigendian()</a>, <a class="el" href="box__manager_8h.html#a191b8fecf58253b417a49b1f5ea142ae">gene_boxbyOffinStream()</a>, <a class="el" href="box__manager_8h.html#ab31eb6d1ab6816c613a1938f0cc4b6e1">gene_boxbyOffset()</a>, <a class="el" href="box__manager_8h.html#af72156ca09a2c48d26b001b2897bd442">gene_boxbyType()</a>, <a class="el" href="box__manager_8h.html#ab67a3239dc3443f80439aa68531fe3dd">gene_boxbyTypeinStream()</a>, and <a class="el" href="msgqueue__manager_8c.html#ae7d04c56c5c927140331ee2bd612e029">parse_phld()</a>.</p>
</div>
</div>
<a class="anchor" id="a80c5006e047b8a2a5bbb48bcbc9bbd7c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> fetch_1byte </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td>
<td class="paramname"><em>offset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fetch a 1-byte Byte codes in file stream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>start Byte position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fetched codes </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>.</p>
<p>Referenced by <a class="el" href="codestream__manager_8h.html#af659af47f43c4ef6cea74c5697acf078">fetch_codestream1byte()</a>, and <a class="el" href="box__manager_8h.html#ac907241542ef0cd6e13deafffde74363">fetch_DBox1byte()</a>.</p>
</div>
</div>
<a class="anchor" id="adc0810a234de2f1a8d59218959e07671"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#a633aa9ecff048e1b8bfbdac4c4dfdb33">Byte2_t</a> fetch_2bytebigendian </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td>
<td class="paramname"><em>offset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fetch a 2-byte big endian Byte codes in file stream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>start Byte position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fetched codes </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a0c20ded21352121723f9df94c7568356">big2()</a>, <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes()</a>.</p>
<p>Referenced by <a class="el" href="codestream__manager_8h.html#a6dbb4634cd0d3c32cc641750119d1a65">fetch_codestream2bytebigendian()</a>, and <a class="el" href="box__manager_8h.html#a28a029e965842146cac12fcf05757c66">fetch_DBox2bytebigendian()</a>.</p>
</div>
</div>
<a class="anchor" id="a72b441947e1fab5e8dd83fdc985bf29c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a> fetch_4bytebigendian </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td>
<td class="paramname"><em>offset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fetch a 4-byte big endian Byte codes in file stream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>start Byte position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fetched codes </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a1f29d888bc2d2a63e5ca8a2b71cfafea">big4()</a>, <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes()</a>.</p>
<p>Referenced by <a class="el" href="codestream__manager_8h.html#aee603a657d0cf18f32e86bd2b2efdafe">fetch_codestream4bytebigendian()</a>, <a class="el" href="box__manager_8h.html#a1f18b967d9b8fd83fa70a6580ce9ab53">fetch_DBox4bytebigendian()</a>, and <a class="el" href="boxheader__manager_8h.html#ad67b5454e29ddcd711d07eaddbe29f67">gene_boxheader()</a>.</p>
</div>
</div>
<a class="anchor" id="ae4d6ed0e45814368ab976a1530b8c780"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#a89544bfd8f79b949793e43e323e1ace1">Byte8_t</a> fetch_8bytebigendian </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td>
<td class="paramname"><em>offset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fetch a 8-byte big endian Byte codes in file stream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>start Byte position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fetched codes </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a06c0559c3af79c5facbd4f50f1637782">big8()</a>, <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#a62851758f9c2af1b12995190a1e4e909">fetch_bytes()</a>.</p>
<p>Referenced by <a class="el" href="box__manager_8h.html#a46342c34b100e9174966f70bf36936ef">fetch_DBox8bytebigendian()</a>, and <a class="el" href="boxheader__manager_8h.html#ad67b5454e29ddcd711d07eaddbe29f67">gene_boxheader()</a>.</p>
</div>
</div>
<a class="anchor" id="a62851758f9c2af1b12995190a1e4e909"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a>* fetch_bytes </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a>&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a>&#160;</td>
<td class="paramname"><em>size</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fetch bytes of data in file stream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>start Byte position </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>Byte length </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the fetched data </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>.</p>
<p>Referenced by <a class="el" href="msgqueue__manager_8c.html#a7fc5d7c09cf28481cf43ea2109f189c2">add_body_stream()</a>, <a class="el" href="byte__manager_8h.html#adc0810a234de2f1a8d59218959e07671">fetch_2bytebigendian()</a>, <a class="el" href="byte__manager_8h.html#a72b441947e1fab5e8dd83fdc985bf29c">fetch_4bytebigendian()</a>, <a class="el" href="byte__manager_8h.html#ae4d6ed0e45814368ab976a1530b8c780">fetch_8bytebigendian()</a>, <a class="el" href="codestream__manager_8h.html#a92e8c0b1815dc9ede628541b28971dc4">fetch_codestreambytes()</a>, <a class="el" href="box__manager_8h.html#a0dcfa6897f3fd71d6336671a2a5b7e07">fetch_DBoxbytes()</a>, <a class="el" href="box__manager_8h.html#a7775b0d45b5e84a6d59ca1477ee0088c">fetch_headbytes()</a>, <a class="el" href="box__manager_8h.html#ab31eb6d1ab6816c613a1938f0cc4b6e1">gene_boxbyOffset()</a>, <a class="el" href="box__manager_8h.html#af72156ca09a2c48d26b001b2897bd442">gene_boxbyType()</a>, and <a class="el" href="boxheader__manager_8h.html#ad67b5454e29ddcd711d07eaddbe29f67">gene_boxheader()</a>.</p>
</div>
</div>
<a class="anchor" id="a955af5bd7b57f186c3174728fa160ff0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#a64948c8a524dee101c5a4d7293e6158c">OPJ_OFF_T</a> get_filesize </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>fd</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get file size. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>file discriptor </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>file size </dd></dl>
<p>References <a class="el" href="byte__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>, and <a class="el" href="byte__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>.</p>
<p>Referenced by <a class="el" href="metadata__manager_8h.html#a03c8182628aa31f07dbca72fe966676a">const_metadatalist()</a>, <a class="el" href="openjpip_8h.html#af7bc76c0c6c484227e8440cc87567158">fread_jpip()</a>, <a class="el" href="box__manager_8h.html#af72156ca09a2c48d26b001b2897bd442">gene_boxbyType()</a>, and <a class="el" href="index__manager_8h.html#aeda761f27ce8cb0ed202d0ea2aa64c7e">parse_jp2file()</a>.</p>
</div>
</div>
<a class="anchor" id="a48c7dad6f593aa718712b9451317fae3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void modify_4Bytecode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#aad2d957f29839c12c87e4dd945807d36">Byte4_t</a>&#160;</td>
<td class="paramname"><em>code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>stream</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>modify 4Byte code in a codestream </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">code</td><td>code value </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>modifying codestream </td></tr>
</table>
</dd>
</dl>
<p>Referenced by <a class="el" href="j2kheader__manager_8c.html#a166021779c499bd144656e1ce352bc90">modify_SIZmkrstream()</a>, and <a class="el" href="j2kheader__manager_8h.html#aaf155590fb82d18a01ddef20353cf076">modify_tileheader()</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.11
</small></address>
</body>
</html>