openjpeg/doxygen/mqc_8h_source.html

105 lines
40 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: mqc.h Source File</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_54e5bc4f0640fea590afaf04f4d9c88d.html">openjp2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">mqc.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="mqc_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * The copyright in this software is being made available under the 2-clauses</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * BSD License, included below. This software may be subject to other third</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * party and contributor rights, including patent rights, and no such rights</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * are granted under this license.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * Copyright (c) 2002-2014, Professor Benoit Macq</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * Copyright (c) 2001-2003, David Janssens</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * Copyright (c) 2002-2003, Yannick Verschueren</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Copyright (c) 2003-2007, Francois-Olivier Devaux</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * Copyright (c) 2003-2014, Antonin Descampe</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * Copyright (c) 2005, Herve Drolon, FreeImage Team</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * Copyright (c) 2008, Jerome Fimes, Communications &amp; Systemes &lt;jerome.fimes@c-s.fr&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * are met:</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS&#39;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#ifndef OPJ_MQC_H</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define OPJ_MQC_H</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="opj__common_8h.html">opj_common.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html"> 58</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structopj__mqc__state.html">opj_mqc_state</a> {</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a1ee680e4a9420ef645e2c3081a04c9c5"> 60</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc__state.html#a1ee680e4a9420ef645e2c3081a04c9c5">qeval</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a09a5fefe0bd4e7c0d56ec69220dfd990"> 62</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc__state.html#a09a5fefe0bd4e7c0d56ec69220dfd990">mps</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a9d8b039eb49c4edcb382da2ee82d7142"> 64</a></span>&#160; <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structopj__mqc__state.html">opj_mqc_state</a> *<a class="code" href="structopj__mqc__state.html#a9d8b039eb49c4edcb382da2ee82d7142">nmps</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a2fa65c94ba4d3cbdac26e9ce48f228e5"> 66</a></span>&#160; <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structopj__mqc__state.html">opj_mqc_state</a> *<a class="code" href="structopj__mqc__state.html#a2fa65c94ba4d3cbdac26e9ce48f228e5">nlps</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;} <a class="code" href="group___m_q_c.html#ga1f60c8d5f193846052cfa42f09290759">opj_mqc_state_t</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group___m_q_c.html#ga2ea7971c7ed2c6e19bc3e9c3ba26b68f"> 69</a></span>&#160;<span class="preprocessor">#define MQC_NUMCTXS 19</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structopj__mqc.html"> 74</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structopj__mqc.html">opj_mqc</a> {</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a4cde92619ccfc00fcaf4e8f168eccb96"> 76</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc.html#a4cde92619ccfc00fcaf4e8f168eccb96">c</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a26cf29944f5a74b2a0af55defaed5e5d"> 78</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc.html#a26cf29944f5a74b2a0af55defaed5e5d">a</a>;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a800663d44b19c3469c242a35840dd9bf"> 80</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc.html#a800663d44b19c3469c242a35840dd9bf">ct</a>;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">/* only used by decoder, to count the number of times a terminating 0xFF &gt;0x8F marker is read */</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a49f134a3878811e59581b25fc829a069"> 82</a></span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="structopj__mqc.html#a49f134a3878811e59581b25fc829a069">end_of_byte_stream_counter</a>;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a3db4ba6d16362a3bb01801c76f3dad63"> 84</a></span>&#160; <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *<a class="code" href="structopj__mqc.html#a3db4ba6d16362a3bb01801c76f3dad63">bp</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structopj__mqc.html#ac6e2a167d3bdf52a3c7378cc62d3ff20"> 86</a></span>&#160; <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *<a class="code" href="structopj__mqc.html#ac6e2a167d3bdf52a3c7378cc62d3ff20">start</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a82b0225c0f832b4ff04bf5dc171ea164"> 88</a></span>&#160; <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *<a class="code" href="structopj__mqc.html#a82b0225c0f832b4ff04bf5dc171ea164">end</a>;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a2ecaf46cd4f26b606e95a3180e1e664f"> 90</a></span>&#160; <span class="keyword">const</span> <a class="code" href="structopj__mqc__state.html">opj_mqc_state_t</a> *ctxs[<a class="code" href="group___m_q_c.html#ga2ea7971c7ed2c6e19bc3e9c3ba26b68f">MQC_NUMCTXS</a>];</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a602dc46a34bc1875c9ad30e49d059e19"> 92</a></span>&#160; <span class="keyword">const</span> <a class="code" href="structopj__mqc__state.html">opj_mqc_state_t</a> **<a class="code" href="structopj__mqc.html#a602dc46a34bc1875c9ad30e49d059e19">curctx</a>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">/* lut_ctxno_zc shifted by (1 &lt;&lt; 9) * bandno */</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structopj__mqc.html#ac6c52e5944b6186886f0d3b853ac3b01"> 94</a></span>&#160; <span class="keyword">const</span> <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a>* <a class="code" href="structopj__mqc.html#ac6c52e5944b6186886f0d3b853ac3b01">lut_ctxno_zc_orient</a>;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a464f7ff357673a604755c3bfd0b26a85"> 96</a></span>&#160; <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> backup[<a class="code" href="opj__common_8h.html#a7f1b41029a9c8a29b973c4200df596dd">OPJ_COMMON_CBLK_DATA_EXTRA</a>];</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;} <a class="code" href="group___m_q_c.html#ga49560555308b38694eddc876275ed4bc">opj_mqc_t</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group___m_q_c.html#gaf45d4e27106b58c5cc51bf4eaa2b3f4f"> 99</a></span>&#160;<span class="preprocessor">#define BYPASS_CT_INIT 0xDEADBEEF</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mqc__inl_8h.html">mqc_inl.h</a>&quot;</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="comment">/* ----------------------------------------------------------------------- */</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="group___m_q_c.html#gac9c6d11f48074e5064584d1e5d0dcd0f">opj_mqc_numbytes</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga9b1de23283892ba50029b75ab1b9a91a">opj_mqc_resetstates</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga7260daca59a1e01f087a7806db045853">opj_mqc_setstate</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> ctxno, <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> msb,</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> prob);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gac1a06acd83ef63950db20f73251efab3">opj_mqc_init_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *bp);</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="group___m_q_c.html#ga7315986b3a52b2e2287a49ab1780ae4f"> 139</a></span>&#160;<span class="preprocessor">#define opj_mqc_setcurctx(mqc, ctxno) (mqc)-&gt;curctx = &amp;(mqc)-&gt;ctxs[(OPJ_UINT32)(ctxno)]</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga39b562515ebaa0a9707c51b6770ad7fe">opj_mqc_flush</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gaba5f2d1b605d35e514aeb7a2827996b9">opj_mqc_bypass_init_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="group___m_q_c.html#ga4a259d02eadde28d92edac74dbc40323">opj_mqc_bypass_get_extra_bytes</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> erterm);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gad886df66150746e1a41d3e20037683fb">opj_mqc_bypass_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> d);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga9eb31de8e3ede6acad7469f9ea0b0d1b">opj_mqc_bypass_flush_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> erterm);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga858901a7f568a2845885e537aaeab825">opj_mqc_reset_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="preprocessor">#ifdef notdef</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_mqc_restart_enc(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga178f2a2119c59ae30169835162bd73e7">opj_mqc_restart_init_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gae8351e8a317e68679bf5ce649e91f48d">opj_mqc_erterm_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gaf6195cf3fe837a5acbaa721c3e453465">opj_mqc_segmark_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gaa0e4b75040d645307e25dd53528e8512">opj_mqc_init_dec</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *bp, <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> len,</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> extra_writable_bytes);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga683734858d69085fd07394d1d3fae633">opj_mqc_raw_init_dec</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc, <a class="code" href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a> *bp, <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> len,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> extra_writable_bytes);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga5bdec54dabf502c578e46d6b34ce8b93">opq_mqc_finish_dec</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160;<span class="comment">/*static INLINE OPJ_UINT32 opj_mqc_decode(opj_mqc_t * const mqc);*/</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;<span class="comment">/* ----------------------------------------------------------------------- */</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* OPJ_MQC_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___m_q_c_html_ga4a259d02eadde28d92edac74dbc40323"><div class="ttname"><a href="group___m_q_c.html#ga4a259d02eadde28d92edac74dbc40323">opj_mqc_bypass_get_extra_bytes</a></div><div class="ttdeci">OPJ_UINT32 opj_mqc_bypass_get_extra_bytes(opj_mqc_t *mqc, OPJ_BOOL erterm)</div><div class="ttdoc">Return number of extra bytes to add to opj_mqc_numbytes() for the² size of a non-terminating BYPASS p...</div><div class="ttdef"><b>Definition:</b> mqc.c:266</div></div>
<div class="ttc" id="structopj__mqc__state_html_a1ee680e4a9420ef645e2c3081a04c9c5"><div class="ttname"><a href="structopj__mqc__state.html#a1ee680e4a9420ef645e2c3081a04c9c5">opj_mqc_state::qeval</a></div><div class="ttdeci">OPJ_UINT32 qeval</div><div class="ttdoc">the probability of the Least Probable Symbol (0.75-&gt;0x8000, 1.5-&gt;0xffff) </div><div class="ttdef"><b>Definition:</b> mqc.h:60</div></div>
<div class="ttc" id="structopj__mqc_html_ac6e2a167d3bdf52a3c7378cc62d3ff20"><div class="ttname"><a href="structopj__mqc.html#ac6e2a167d3bdf52a3c7378cc62d3ff20">opj_mqc::start</a></div><div class="ttdeci">OPJ_BYTE * start</div><div class="ttdoc">pointer to the start of the buffer </div><div class="ttdef"><b>Definition:</b> mqc.h:86</div></div>
<div class="ttc" id="group___m_q_c_html_ga178f2a2119c59ae30169835162bd73e7"><div class="ttname"><a href="group___m_q_c.html#ga178f2a2119c59ae30169835162bd73e7">opj_mqc_restart_init_enc</a></div><div class="ttdeci">void opj_mqc_restart_init_enc(opj_mqc_t *mqc)</div><div class="ttdoc">RESTART mode switch (TERMALL) reinitialisation. </div><div class="ttdef"><b>Definition:</b> mqc.c:337</div></div>
<div class="ttc" id="structopj__mqc__state_html_a2fa65c94ba4d3cbdac26e9ce48f228e5"><div class="ttname"><a href="structopj__mqc__state.html#a2fa65c94ba4d3cbdac26e9ce48f228e5">opj_mqc_state::nlps</a></div><div class="ttdeci">const struct opj_mqc_state * nlps</div><div class="ttdoc">next state if the next encoded symbol is the LPS </div><div class="ttdef"><b>Definition:</b> mqc.h:66</div></div>
<div class="ttc" id="openjpeg_8h_html_abb5dad6294f4611f1925388e919b16f4"><div class="ttname"><a href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a></div><div class="ttdeci">int OPJ_BOOL</div><div class="ttdef"><b>Definition:</b> openjpeg.h:110</div></div>
<div class="ttc" id="group___m_q_c_html_ga9b1de23283892ba50029b75ab1b9a91a"><div class="ttname"><a href="group___m_q_c.html#ga9b1de23283892ba50029b75ab1b9a91a">opj_mqc_resetstates</a></div><div class="ttdeci">void opj_mqc_resetstates(opj_mqc_t *mqc)</div><div class="ttdoc">Reset the states of all the context of the coder/decoder (each context is set to a state where 0 and ...</div><div class="ttdef"><b>Definition:</b> mqc.c:478</div></div>
<div class="ttc" id="group___m_q_c_html_ga2ea7971c7ed2c6e19bc3e9c3ba26b68f"><div class="ttname"><a href="group___m_q_c.html#ga2ea7971c7ed2c6e19bc3e9c3ba26b68f">MQC_NUMCTXS</a></div><div class="ttdeci">#define MQC_NUMCTXS</div><div class="ttdef"><b>Definition:</b> mqc.h:69</div></div>
<div class="ttc" id="structopj__mqc_html_a800663d44b19c3469c242a35840dd9bf"><div class="ttname"><a href="structopj__mqc.html#a800663d44b19c3469c242a35840dd9bf">opj_mqc::ct</a></div><div class="ttdeci">OPJ_UINT32 ct</div><div class="ttdoc">number of bits already read or free to write </div><div class="ttdef"><b>Definition:</b> mqc.h:80</div></div>
<div class="ttc" id="group___m_q_c_html_gad886df66150746e1a41d3e20037683fb"><div class="ttname"><a href="group___m_q_c.html#gad886df66150746e1a41d3e20037683fb">opj_mqc_bypass_enc</a></div><div class="ttdeci">void opj_mqc_bypass_enc(opj_mqc_t *mqc, OPJ_UINT32 d)</div><div class="ttdoc">BYPASS mode switch, coding operation. </div><div class="ttdef"><b>Definition:</b> mqc.c:247</div></div>
<div class="ttc" id="openjpeg_8h_html_a22de44e15bddae7edfacf4e9ac9bb199"><div class="ttname"><a href="openjpeg_8h.html#a22de44e15bddae7edfacf4e9ac9bb199">OPJ_BYTE</a></div><div class="ttdeci">unsigned char OPJ_BYTE</div><div class="ttdef"><b>Definition:</b> openjpeg.h:117</div></div>
<div class="ttc" id="opj__common_8h_html"><div class="ttname"><a href="opj__common_8h.html">opj_common.h</a></div></div>
<div class="ttc" id="openjpeg_8h_html_a3cec91ef9e73677f0dbd60d4e42401b9"><div class="ttname"><a href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a></div><div class="ttdeci">int32_t OPJ_INT32</div><div class="ttdef"><b>Definition:</b> openjpeg.h:125</div></div>
<div class="ttc" id="structopj__mqc_html_a4cde92619ccfc00fcaf4e8f168eccb96"><div class="ttname"><a href="structopj__mqc.html#a4cde92619ccfc00fcaf4e8f168eccb96">opj_mqc::c</a></div><div class="ttdeci">OPJ_UINT32 c</div><div class="ttdoc">temporary buffer where bits are coded or decoded </div><div class="ttdef"><b>Definition:</b> mqc.h:76</div></div>
<div class="ttc" id="structopj__mqc_html_a602dc46a34bc1875c9ad30e49d059e19"><div class="ttname"><a href="structopj__mqc.html#a602dc46a34bc1875c9ad30e49d059e19">opj_mqc::curctx</a></div><div class="ttdeci">const opj_mqc_state_t ** curctx</div><div class="ttdoc">Active context. </div><div class="ttdef"><b>Definition:</b> mqc.h:92</div></div>
<div class="ttc" id="structopj__mqc__state_html"><div class="ttname"><a href="structopj__mqc__state.html">opj_mqc_state</a></div><div class="ttdoc">This struct defines the state of a context. </div><div class="ttdef"><b>Definition:</b> mqc.h:58</div></div>
<div class="ttc" id="structopj__mqc_html_a3db4ba6d16362a3bb01801c76f3dad63"><div class="ttname"><a href="structopj__mqc.html#a3db4ba6d16362a3bb01801c76f3dad63">opj_mqc::bp</a></div><div class="ttdeci">OPJ_BYTE * bp</div><div class="ttdoc">pointer to the current position in the buffer </div><div class="ttdef"><b>Definition:</b> mqc.h:84</div></div>
<div class="ttc" id="group___m_q_c_html_gaa0e4b75040d645307e25dd53528e8512"><div class="ttname"><a href="group___m_q_c.html#gaa0e4b75040d645307e25dd53528e8512">opj_mqc_init_dec</a></div><div class="ttdeci">void opj_mqc_init_dec(opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len, OPJ_UINT32 extra_writable_bytes)</div><div class="ttdoc">Initialize the decoder for MQ decoding. </div><div class="ttdef"><b>Definition:</b> mqc.c:439</div></div>
<div class="ttc" id="group___m_q_c_html_ga39b562515ebaa0a9707c51b6770ad7fe"><div class="ttname"><a href="group___m_q_c.html#ga39b562515ebaa0a9707c51b6770ad7fe">opj_mqc_flush</a></div><div class="ttdeci">void opj_mqc_flush(opj_mqc_t *mqc)</div><div class="ttdoc">Flush the encoder, so that all remaining data is written. </div><div class="ttdef"><b>Definition:</b> mqc.c:212</div></div>
<div class="ttc" id="group___m_q_c_html_ga49560555308b38694eddc876275ed4bc"><div class="ttname"><a href="group___m_q_c.html#ga49560555308b38694eddc876275ed4bc">opj_mqc_t</a></div><div class="ttdeci">struct opj_mqc opj_mqc_t</div><div class="ttdoc">MQ coder. </div></div>
<div class="ttc" id="opj__common_8h_html_a7f1b41029a9c8a29b973c4200df596dd"><div class="ttname"><a href="opj__common_8h.html#a7f1b41029a9c8a29b973c4200df596dd">OPJ_COMMON_CBLK_DATA_EXTRA</a></div><div class="ttdeci">#define OPJ_COMMON_CBLK_DATA_EXTRA</div><div class="ttdoc">Margin for a fake FFFF marker. </div><div class="ttdef"><b>Definition:</b> opj_common.h:39</div></div>
<div class="ttc" id="group___m_q_c_html_ga5bdec54dabf502c578e46d6b34ce8b93"><div class="ttname"><a href="group___m_q_c.html#ga5bdec54dabf502c578e46d6b34ce8b93">opq_mqc_finish_dec</a></div><div class="ttdeci">void opq_mqc_finish_dec(opj_mqc_t *mqc)</div><div class="ttdoc">Terminate RAW/MQC decoding. </div><div class="ttdef"><b>Definition:</b> mqc.c:472</div></div>
<div class="ttc" id="structopj__mqc_html_a49f134a3878811e59581b25fc829a069"><div class="ttname"><a href="structopj__mqc.html#a49f134a3878811e59581b25fc829a069">opj_mqc::end_of_byte_stream_counter</a></div><div class="ttdeci">OPJ_UINT32 end_of_byte_stream_counter</div><div class="ttdef"><b>Definition:</b> mqc.h:82</div></div>
<div class="ttc" id="structopj__mqc__state_html_a09a5fefe0bd4e7c0d56ec69220dfd990"><div class="ttname"><a href="structopj__mqc__state.html#a09a5fefe0bd4e7c0d56ec69220dfd990">opj_mqc_state::mps</a></div><div class="ttdeci">OPJ_UINT32 mps</div><div class="ttdoc">the Most Probable Symbol (0 or 1) </div><div class="ttdef"><b>Definition:</b> mqc.h:62</div></div>
<div class="ttc" id="group___m_q_c_html_gaba5f2d1b605d35e514aeb7a2827996b9"><div class="ttname"><a href="group___m_q_c.html#gaba5f2d1b605d35e514aeb7a2827996b9">opj_mqc_bypass_init_enc</a></div><div class="ttdeci">void opj_mqc_bypass_init_enc(opj_mqc_t *mqc)</div><div class="ttdoc">BYPASS mode switch, initialization operation. </div><div class="ttdef"><b>Definition:</b> mqc.c:229</div></div>
<div class="ttc" id="group___m_q_c_html_ga1f60c8d5f193846052cfa42f09290759"><div class="ttname"><a href="group___m_q_c.html#ga1f60c8d5f193846052cfa42f09290759">opj_mqc_state_t</a></div><div class="ttdeci">struct opj_mqc_state opj_mqc_state_t</div><div class="ttdoc">This struct defines the state of a context. </div></div>
<div class="ttc" id="structopj__mqc_html_a26cf29944f5a74b2a0af55defaed5e5d"><div class="ttname"><a href="structopj__mqc.html#a26cf29944f5a74b2a0af55defaed5e5d">opj_mqc::a</a></div><div class="ttdeci">OPJ_UINT32 a</div><div class="ttdoc">only used by MQ decoder </div><div class="ttdef"><b>Definition:</b> mqc.h:78</div></div>
<div class="ttc" id="group___m_q_c_html_gaf6195cf3fe837a5acbaa721c3e453465"><div class="ttname"><a href="group___m_q_c.html#gaf6195cf3fe837a5acbaa721c3e453465">opj_mqc_segmark_enc</a></div><div class="ttdeci">void opj_mqc_segmark_enc(opj_mqc_t *mqc)</div><div class="ttdoc">SEGMARK mode switch (SEGSYM) </div><div class="ttdef"><b>Definition:</b> mqc.c:410</div></div>
<div class="ttc" id="group___m_q_c_html_ga9eb31de8e3ede6acad7469f9ea0b0d1b"><div class="ttname"><a href="group___m_q_c.html#ga9eb31de8e3ede6acad7469f9ea0b0d1b">opj_mqc_bypass_flush_enc</a></div><div class="ttdeci">void opj_mqc_bypass_flush_enc(opj_mqc_t *mqc, OPJ_BOOL erterm)</div><div class="ttdoc">BYPASS mode switch, flush operation. </div><div class="ttdef"><b>Definition:</b> mqc.c:272</div></div>
<div class="ttc" id="openjpeg_8h_html_a4cb1e6e6b6ef2df499d5c02f7df54cbb"><div class="ttname"><a href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a></div><div class="ttdeci">uint32_t OPJ_UINT32</div><div class="ttdef"><b>Definition:</b> openjpeg.h:126</div></div>
<div class="ttc" id="mqc__inl_8h_html"><div class="ttname"><a href="mqc__inl_8h.html">mqc_inl.h</a></div></div>
<div class="ttc" id="group___m_q_c_html_gac1a06acd83ef63950db20f73251efab3"><div class="ttname"><a href="group___m_q_c.html#gac1a06acd83ef63950db20f73251efab3">opj_mqc_init_enc</a></div><div class="ttdeci">void opj_mqc_init_enc(opj_mqc_t *mqc, OPJ_BYTE *bp)</div><div class="ttdoc">Initialize the encoder. </div><div class="ttdef"><b>Definition:</b> mqc.c:188</div></div>
<div class="ttc" id="structopj__mqc_html_a82b0225c0f832b4ff04bf5dc171ea164"><div class="ttname"><a href="structopj__mqc.html#a82b0225c0f832b4ff04bf5dc171ea164">opj_mqc::end</a></div><div class="ttdeci">OPJ_BYTE * end</div><div class="ttdoc">pointer to the end of the buffer </div><div class="ttdef"><b>Definition:</b> mqc.h:88</div></div>
<div class="ttc" id="group___m_q_c_html_ga858901a7f568a2845885e537aaeab825"><div class="ttname"><a href="group___m_q_c.html#ga858901a7f568a2845885e537aaeab825">opj_mqc_reset_enc</a></div><div class="ttdeci">void opj_mqc_reset_enc(opj_mqc_t *mqc)</div><div class="ttdoc">RESET mode switch. </div><div class="ttdef"><b>Definition:</b> mqc.c:310</div></div>
<div class="ttc" id="structopj__mqc_html_ac6c52e5944b6186886f0d3b853ac3b01"><div class="ttname"><a href="structopj__mqc.html#ac6c52e5944b6186886f0d3b853ac3b01">opj_mqc::lut_ctxno_zc_orient</a></div><div class="ttdeci">const OPJ_BYTE * lut_ctxno_zc_orient</div><div class="ttdef"><b>Definition:</b> mqc.h:94</div></div>
<div class="ttc" id="group___m_q_c_html_gae8351e8a317e68679bf5ce649e91f48d"><div class="ttname"><a href="group___m_q_c.html#gae8351e8a317e68679bf5ce649e91f48d">opj_mqc_erterm_enc</a></div><div class="ttdeci">void opj_mqc_erterm_enc(opj_mqc_t *mqc)</div><div class="ttdoc">ERTERM mode switch (PTERM) </div><div class="ttdef"><b>Definition:</b> mqc.c:357</div></div>
<div class="ttc" id="group___m_q_c_html_gac9c6d11f48074e5064584d1e5d0dcd0f"><div class="ttname"><a href="group___m_q_c.html#gac9c6d11f48074e5064584d1e5d0dcd0f">opj_mqc_numbytes</a></div><div class="ttdeci">OPJ_UINT32 opj_mqc_numbytes(opj_mqc_t *mqc)</div><div class="ttdoc">Return the number of bytes written/read since initialisation. </div><div class="ttdef"><b>Definition:</b> mqc.c:179</div></div>
<div class="ttc" id="structopj__mqc_html"><div class="ttname"><a href="structopj__mqc.html">opj_mqc</a></div><div class="ttdoc">MQ coder. </div><div class="ttdef"><b>Definition:</b> mqc.h:74</div></div>
<div class="ttc" id="group___m_q_c_html_ga7260daca59a1e01f087a7806db045853"><div class="ttname"><a href="group___m_q_c.html#ga7260daca59a1e01f087a7806db045853">opj_mqc_setstate</a></div><div class="ttdeci">void opj_mqc_setstate(opj_mqc_t *mqc, OPJ_UINT32 ctxno, OPJ_UINT32 msb, OPJ_INT32 prob)</div><div class="ttdoc">Set the state of a particular context. </div><div class="ttdef"><b>Definition:</b> mqc.c:486</div></div>
<div class="ttc" id="structopj__mqc__state_html_a9d8b039eb49c4edcb382da2ee82d7142"><div class="ttname"><a href="structopj__mqc__state.html#a9d8b039eb49c4edcb382da2ee82d7142">opj_mqc_state::nmps</a></div><div class="ttdeci">const struct opj_mqc_state * nmps</div><div class="ttdoc">next state if the next encoded symbol is the MPS </div><div class="ttdef"><b>Definition:</b> mqc.h:64</div></div>
<div class="ttc" id="group___m_q_c_html_ga683734858d69085fd07394d1d3fae633"><div class="ttname"><a href="group___m_q_c.html#ga683734858d69085fd07394d1d3fae633">opj_mqc_raw_init_dec</a></div><div class="ttdeci">void opj_mqc_raw_init_dec(opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len, OPJ_UINT32 extra_writable_bytes)</div><div class="ttdoc">Initialize the decoder for RAW decoding. </div><div class="ttdef"><b>Definition:</b> mqc.c:463</div></div>
</div><!-- fragment --></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>