openjpeg/doxygen/bio_8h.html

467 lines
27 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: bio.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_54e5bc4f0640fea590afaf04f4d9c88d.html">openjp2</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> </div>
<div class="headertitle">
<div class="title">bio.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Implementation of an individual bit input-output (BIO)
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stddef.h&gt;</code><br />
</div>
<p><a href="bio_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="structopj__bio.html">opj_bio</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Individual bit input-output stream (BIO) <a href="structopj__bio.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:ac418a039dda047b67da3c1b5e6eaa3a3"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structopj__bio.html">opj_bio</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a></td></tr>
<tr class="memdesc:ac418a039dda047b67da3c1b5e6eaa3a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Individual bit input-output stream (BIO) <a href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">More...</a><br /></td></tr>
<tr class="separator:ac418a039dda047b67da3c1b5e6eaa3a3"><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><td colspan="2"><div class="groupHeader">Exported functions</div></td></tr>
<tr class="memitem:a00f1d2645b33a7281e2b2dbc20079957"><td class="memItemLeft" align="right" valign="top"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#a00f1d2645b33a7281e2b2dbc20079957">opj_bio_create</a> (void)</td></tr>
<tr class="memdesc:a00f1d2645b33a7281e2b2dbc20079957"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new BIO handle. <a href="bio_8h.html#a00f1d2645b33a7281e2b2dbc20079957">More...</a><br /></td></tr>
<tr class="separator:a00f1d2645b33a7281e2b2dbc20079957"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71dd985d85ece15f4b6c2ea92fae5239"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#a71dd985d85ece15f4b6c2ea92fae5239">opj_bio_destroy</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio)</td></tr>
<tr class="memdesc:a71dd985d85ece15f4b6c2ea92fae5239"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a previously created BIO handle. <a href="bio_8h.html#a71dd985d85ece15f4b6c2ea92fae5239">More...</a><br /></td></tr>
<tr class="separator:a71dd985d85ece15f4b6c2ea92fae5239"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab895be8f05401452c080e42427408c5c"><td class="memItemLeft" align="right" valign="top">ptrdiff_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#ab895be8f05401452c080e42427408c5c">opj_bio_numbytes</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio)</td></tr>
<tr class="memdesc:ab895be8f05401452c080e42427408c5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bytes written. <a href="bio_8h.html#ab895be8f05401452c080e42427408c5c">More...</a><br /></td></tr>
<tr class="separator:ab895be8f05401452c080e42427408c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a549d1ff56aa2c8bea27c031c8a33936f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#a549d1ff56aa2c8bea27c031c8a33936f">opj_bio_init_enc</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *bp, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> len)</td></tr>
<tr class="memdesc:a549d1ff56aa2c8bea27c031c8a33936f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Init encoder. <a href="bio_8h.html#a549d1ff56aa2c8bea27c031c8a33936f">More...</a><br /></td></tr>
<tr class="separator:a549d1ff56aa2c8bea27c031c8a33936f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ab62fc21c5f26a774fb0e3590efeb4b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#a8ab62fc21c5f26a774fb0e3590efeb4b">opj_bio_init_dec</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *bp, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> len)</td></tr>
<tr class="memdesc:a8ab62fc21c5f26a774fb0e3590efeb4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Init decoder. <a href="bio_8h.html#a8ab62fc21c5f26a774fb0e3590efeb4b">More...</a><br /></td></tr>
<tr class="separator:a8ab62fc21c5f26a774fb0e3590efeb4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a602b9d9f911b41d41d1d4cab1dc3ec97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#a602b9d9f911b41d41d1d4cab1dc3ec97">opj_bio_write</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> v, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> n)</td></tr>
<tr class="memdesc:a602b9d9f911b41d41d1d4cab1dc3ec97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write bits. <a href="bio_8h.html#a602b9d9f911b41d41d1d4cab1dc3ec97">More...</a><br /></td></tr>
<tr class="separator:a602b9d9f911b41d41d1d4cab1dc3ec97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3bf04128de5bc78da6d06354eae62c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bio_8h.html#aea3bf04128de5bc78da6d06354eae62c">opj_bio_read</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> n)</td></tr>
<tr class="memdesc:aea3bf04128de5bc78da6d06354eae62c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read bits. <a href="bio_8h.html#aea3bf04128de5bc78da6d06354eae62c">More...</a><br /></td></tr>
<tr class="separator:aea3bf04128de5bc78da6d06354eae62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2e60a814729cbeb98d8ee747245320c"><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="bio_8h.html#ac2e60a814729cbeb98d8ee747245320c">opj_bio_flush</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio)</td></tr>
<tr class="memdesc:ac2e60a814729cbeb98d8ee747245320c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flush bits. <a href="bio_8h.html#ac2e60a814729cbeb98d8ee747245320c">More...</a><br /></td></tr>
<tr class="separator:ac2e60a814729cbeb98d8ee747245320c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a830ee6789a9be0ae5f9a8ff056b771fe"><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="bio_8h.html#a830ee6789a9be0ae5f9a8ff056b771fe">opj_bio_inalign</a> (<a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *bio)</td></tr>
<tr class="memdesc:a830ee6789a9be0ae5f9a8ff056b771fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passes the ending bits (coming from flushing) <a href="bio_8h.html#a830ee6789a9be0ae5f9a8ff056b771fe">More...</a><br /></td></tr>
<tr class="separator:a830ee6789a9be0ae5f9a8ff056b771fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementation of an individual bit input-output (BIO) </p>
<p>The functions in <a class="el" href="bio_8c.html">BIO.C</a> have for goal to realize an individual bit input - output. </p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="ac418a039dda047b67da3c1b5e6eaa3a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac418a039dda047b67da3c1b5e6eaa3a3">&#9670;&nbsp;</a></span>opj_bio_t</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structopj__bio.html">opj_bio</a> <a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Individual bit input-output stream (BIO) </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a00f1d2645b33a7281e2b2dbc20079957"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00f1d2645b33a7281e2b2dbc20079957">&#9670;&nbsp;</a></span>opj_bio_create()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a>* opj_bio_create </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new BIO handle. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a new BIO handle if successful, returns NULL otherwise </dd></dl>
<p class="reference">References <a class="el" href="opj__malloc_8c.html#a49c70931cbed786f6eef5f095bcb2917">opj_malloc()</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, and <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="a71dd985d85ece15f4b6c2ea92fae5239"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71dd985d85ece15f4b6c2ea92fae5239">&#9670;&nbsp;</a></span>opj_bio_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_bio_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a previously created BIO handle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle to destroy </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free()</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, and <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="ac2e60a814729cbeb98d8ee747245320c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2e60a814729cbeb98d8ee747245320c">&#9670;&nbsp;</a></span>opj_bio_flush()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> opj_bio_flush </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flush bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns OPJ_TRUE if successful, returns OPJ_FALSE otherwise </dd></dl>
<p class="reference">References <a class="el" href="structopj__bio.html#a739743b6883a37747cd417edaa18cf88">opj_bio::ct</a>, <a class="el" href="bio_8c.html#a9b06f926913047b80974f8f3c64be378">opj_bio_byteout()</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 class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>.</p>
</div>
</div>
<a id="a830ee6789a9be0ae5f9a8ff056b771fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a830ee6789a9be0ae5f9a8ff056b771fe">&#9670;&nbsp;</a></span>opj_bio_inalign()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> opj_bio_inalign </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Passes the ending bits (coming from flushing) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns OPJ_TRUE if successful, returns OPJ_FALSE otherwise </dd></dl>
<p class="reference">References <a class="el" href="structopj__bio.html#a91e6c579ced7a356d042b27cbeba3e03">opj_bio::buf</a>, <a class="el" href="structopj__bio.html#a739743b6883a37747cd417edaa18cf88">opj_bio::ct</a>, <a class="el" href="bio_8c.html#a1632241f1dd35ee1c895c89abf5f0fd0">opj_bio_bytein()</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 class="reference">Referenced by <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="a8ab62fc21c5f26a774fb0e3590efeb4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ab62fc21c5f26a774fb0e3590efeb4b">&#9670;&nbsp;</a></span>opj_bio_init_dec()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_bio_init_dec </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *&#160;</td>
<td class="paramname"><em>bp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Init decoder. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
<tr><td class="paramname">bp</td><td>Input buffer </td></tr>
<tr><td class="paramname">len</td><td>Input buffer length </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__bio.html#afbbfc81d9624cfd55add60bef5d0fb42">opj_bio::bp</a>, <a class="el" href="structopj__bio.html#a91e6c579ced7a356d042b27cbeba3e03">opj_bio::buf</a>, <a class="el" href="structopj__bio.html#a739743b6883a37747cd417edaa18cf88">opj_bio::ct</a>, <a class="el" href="structopj__bio.html#a82d1b48ca5f22eeb8ab2139982b576ba">opj_bio::end</a>, and <a class="el" href="structopj__bio.html#a5b7b5826e12247721d21b8b118beaf38">opj_bio::start</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="a549d1ff56aa2c8bea27c031c8a33936f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a549d1ff56aa2c8bea27c031c8a33936f">&#9670;&nbsp;</a></span>opj_bio_init_enc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_bio_init_enc </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *&#160;</td>
<td class="paramname"><em>bp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Init encoder. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
<tr><td class="paramname">bp</td><td>Output buffer </td></tr>
<tr><td class="paramname">len</td><td>Output buffer length </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="structopj__bio.html#afbbfc81d9624cfd55add60bef5d0fb42">opj_bio::bp</a>, <a class="el" href="structopj__bio.html#a91e6c579ced7a356d042b27cbeba3e03">opj_bio::buf</a>, <a class="el" href="structopj__bio.html#a739743b6883a37747cd417edaa18cf88">opj_bio::ct</a>, <a class="el" href="structopj__bio.html#a82d1b48ca5f22eeb8ab2139982b576ba">opj_bio::end</a>, and <a class="el" href="structopj__bio.html#a5b7b5826e12247721d21b8b118beaf38">opj_bio::start</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>.</p>
</div>
</div>
<a id="ab895be8f05401452c080e42427408c5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab895be8f05401452c080e42427408c5c">&#9670;&nbsp;</a></span>opj_bio_numbytes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ptrdiff_t opj_bio_numbytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Number of bytes written. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the number of bytes written </dd></dl>
<p class="reference">References <a class="el" href="structopj__bio.html#afbbfc81d9624cfd55add60bef5d0fb42">opj_bio::bp</a>, and <a class="el" href="structopj__bio.html#a5b7b5826e12247721d21b8b118beaf38">opj_bio::start</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, and <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="aea3bf04128de5bc78da6d06354eae62c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea3bf04128de5bc78da6d06354eae62c">&#9670;&nbsp;</a></span>opj_bio_read()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_bio_read </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>n</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
<tr><td class="paramname">n</td><td>Number of bits to read </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the corresponding read number </dd></dl>
<p class="reference">References <a class="el" href="bio_8c.html#a7aa126e3f12e3b56d83a0b19dce2370b">opj_bio_getbit()</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#a5a05d5b618bf6e2113e661c1e4bc56ff">opj_t2_getcommacode()</a>, <a class="el" href="t2_8c.html#a1bf09a22f7af3f4120072d45dd95d84d">opj_t2_getnumpasses()</a>, <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>, and <a class="el" href="tgt_8h.html#a5b970bfd9b761cdf2ff36001821b06aa">opj_tgt_decode()</a>.</p>
</div>
</div>
<a id="a602b9d9f911b41d41d1d4cab1dc3ec97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a602b9d9f911b41d41d1d4cab1dc3ec97">&#9670;&nbsp;</a></span>opj_bio_write()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_bio_write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bio_8h.html#ac418a039dda047b67da3c1b5e6eaa3a3">opj_bio_t</a> *&#160;</td>
<td class="paramname"><em>bio</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>n</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bio</td><td>BIO handle </td></tr>
<tr><td class="paramname">v</td><td>Value of bits </td></tr>
<tr><td class="paramname">n</td><td>Number of bits to write </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="bio_8c.html#a4cff07dd767044b26fbbd3030680df36">opj_bio_putbit()</a>.</p>
<p class="reference">Referenced by <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, <a class="el" href="t2_8c.html#a1951aad7fbb01854f045800994960443">opj_t2_putcommacode()</a>, <a class="el" href="t2_8c.html#a4749f4e156e4bf89913995de5a9bb2d7">opj_t2_putnumpasses()</a>, and <a class="el" href="tgt_8h.html#afe36abfc042710c566552ed3adfcb2a9">opj_tgt_encode()</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>