openjpeg/doxygen/mqc_8h_source.html

192 lines
36 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>OpenJPEG: 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.1.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#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_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_694e20c96f4fc1be4aed4f026eadce94.html">antonin</a></li><li class="navelem"><a class="el" href="dir_3ca1ad36e65e03f9e8d67ddc2553765b.html">dev</a></li><li class="navelem"><a class="el" href="dir_181a881edfcb8646dab693a228fa6bde.html">opj</a></li><li class="navelem"><a class="el" href="dir_5064bb5511811c3176850b7e47443f14.html">github</a></li><li class="navelem"><a class="el" href="dir_0b20524d8f8835ca75acc430451c8412.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_e3f8a8e294f8271ee71cbcf3c2acacc1.html">src</a></li><li class="navelem"><a class="el" href="dir_da83fe5fdfb6c4554d36abffc03790ad.html">lib</a></li><li class="navelem"><a class="el" href="dir_68013e83e260d17d49dee5e209315608.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 __MQC_H</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define __MQC_H</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html"> 55</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="l00057"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a1ee680e4a9420ef645e2c3081a04c9c5"> 57</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="l00059"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a09a5fefe0bd4e7c0d56ec69220dfd990"> 59</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="l00061"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#adb7b0a0d394f049e018262c2a5bc7135"> 61</a></span>&#160; <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#adb7b0a0d394f049e018262c2a5bc7135">nmps</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structopj__mqc__state.html#a5e63637e9eae42fc08dbf590c39bd164"> 63</a></span>&#160; <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#a5e63637e9eae42fc08dbf590c39bd164">nlps</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;} <a class="code" href="group___m_q_c.html#ga1f60c8d5f193846052cfa42f09290759">opj_mqc_state_t</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group___m_q_c.html#ga2ea7971c7ed2c6e19bc3e9c3ba26b68f"> 66</a></span>&#160;<span class="preprocessor">#define MQC_NUMCTXS 19</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structopj__mqc.html"> 71</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="l00072"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a4cde92619ccfc00fcaf4e8f168eccb96"> 72</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="l00073"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a26cf29944f5a74b2a0af55defaed5e5d"> 73</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="l00074"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a800663d44b19c3469c242a35840dd9bf"> 74</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="l00075"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a3db4ba6d16362a3bb01801c76f3dad63"> 75</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="l00076"></a><span class="lineno"><a class="line" href="structopj__mqc.html#ac6e2a167d3bdf52a3c7378cc62d3ff20"> 76</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="l00077"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a82b0225c0f832b4ff04bf5dc171ea164"> 77</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="l00078"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a78d587ba23a55100bc1bc669c8d210b4"> 78</a></span>&#160; <a class="code" href="structopj__mqc__state.html">opj_mqc_state_t</a> *<a class="code" href="structopj__mqc.html#a78d587ba23a55100bc1bc669c8d210b4">ctxs</a>[<a class="code" href="group___m_q_c.html#ga2ea7971c7ed2c6e19bc3e9c3ba26b68f">MQC_NUMCTXS</a>];</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structopj__mqc.html#a3393e3287e40e1c4d70f78a706b44907"> 79</a></span>&#160; <a class="code" href="structopj__mqc__state.html">opj_mqc_state_t</a> **<a class="code" href="structopj__mqc.html#a3393e3287e40e1c4d70f78a706b44907">curctx</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor">#ifdef MQC_PERF_OPT</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buffer;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;} <a class="code" href="group___m_q_c.html#ga49560555308b38694eddc876275ed4bc">opj_mqc_t</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment">/* ----------------------------------------------------------------------- */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<a class="code" href="structopj__mqc.html">opj_mqc_t</a>* <a class="code" href="group___m_q_c.html#ga3acb7e6dd9ce8878a97e1f023510be28">opj_mqc_create</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#ga136e9f02b4e53ede318511f7d42bf190">opj_mqc_destroy</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</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="l00109"></a><span class="lineno"> 109</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="l00117"></a><span class="lineno"> 117</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, <a class="code" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> prob);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</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="l00129"></a><span class="lineno"><a class="line" href="group___m_q_c.html#ga7315986b3a52b2e2287a49ab1780ae4f"> 129</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="l00130"></a><span class="lineno"> 130</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_q_c.html#gabe330c18fbdee2676a2201f88a756be2">opj_mqc_encode</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="l00140"></a><span class="lineno"> 140</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="l00147"></a><span class="lineno"> 147</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="l00155"></a><span class="lineno"> 155</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="l00162"></a><span class="lineno"> 162</span>&#160;<a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="group___m_q_c.html#ga06f573a8ddf3566cd663a3fc65a69bc6">opj_mqc_bypass_flush_enc</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> *mqc);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</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="l00173"></a><span class="lineno"> 173</span>&#160;<a class="code" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> <a class="code" href="group___m_q_c.html#gae7894baeeb49e44f6135cd77e076dd16">opj_mqc_restart_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;<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="l00183"></a><span class="lineno"> 183</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="l00188"></a><span class="lineno"> 188</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="l00195"></a><span class="lineno"> 195</span>&#160;<a class="code" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> <a class="code" href="group___m_q_c.html#ga379332e36caa09ac0741988b65e64625">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="l00201"></a><span class="lineno"> 201</span>&#160;<a class="code" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> <a class="code" href="group___m_q_c.html#ga3eb5cf91b899a932c19f3a24f04a3c0f">opj_mqc_decode</a>(<a class="code" href="structopj__mqc.html">opj_mqc_t</a> * <span class="keyword">const</span> mqc);</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="comment">/* ----------------------------------------------------------------------- */</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __MQC_H */</span><span class="preprocessor"></span></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->0x8000, 1.5->0xffff) </div><div class="ttdef"><b>Definition:</b> mqc.h:57</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="ttdef"><b>Definition:</b> mqc.h:76</div></div>
<div class="ttc" id="structopj__mqc_html_a3393e3287e40e1c4d70f78a706b44907"><div class="ttname"><a href="structopj__mqc.html#a3393e3287e40e1c4d70f78a706b44907">opj_mqc::curctx</a></div><div class="ttdeci">opj_mqc_state_t ** curctx</div><div class="ttdef"><b>Definition:</b> mqc.h:79</div></div>
<div class="ttc" id="group___m_q_c_html_ga3acb7e6dd9ce8878a97e1f023510be28"><div class="ttname"><a href="group___m_q_c.html#ga3acb7e6dd9ce8878a97e1f023510be28">opj_mqc_create</a></div><div class="ttdeci">opj_mqc_t * opj_mqc_create(void)</div><div class="ttdoc">Create a new MQC handle. </div><div class="ttdef"><b>Definition:</b> mqc.c:369</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:493</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:607</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:66</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="ttdef"><b>Definition:</b> mqc.h:74</div></div>
<div class="ttc" id="group___m_q_c_html_ga3eb5cf91b899a932c19f3a24f04a3c0f"><div class="ttname"><a href="group___m_q_c.html#ga3eb5cf91b899a932c19f3a24f04a3c0f">opj_mqc_decode</a></div><div class="ttdeci">OPJ_INT32 opj_mqc_decode(opj_mqc_t *const mqc)</div><div class="ttdoc">Decode a symbol. </div><div class="ttdef"><b>Definition:</b> mqc.c:588</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:436</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="group___m_q_c_html_ga379332e36caa09ac0741988b65e64625"><div class="ttname"><a href="group___m_q_c.html#ga379332e36caa09ac0741988b65e64625">opj_mqc_init_dec</a></div><div class="ttdeci">OPJ_BOOL opj_mqc_init_dec(opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len)</div><div class="ttdoc">Initialize the decoder. </div><div class="ttdef"><b>Definition:</b> mqc.c:529</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="ttdef"><b>Definition:</b> mqc.h:72</div></div>
<div class="ttc" id="structopj__mqc_html_a78d587ba23a55100bc1bc669c8d210b4"><div class="ttname"><a href="structopj__mqc.html#a78d587ba23a55100bc1bc669c8d210b4">opj_mqc::ctxs</a></div><div class="ttdeci">opj_mqc_state_t * ctxs[MQC_NUMCTXS]</div><div class="ttdef"><b>Definition:</b> mqc.h:78</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:55</div></div>
<div class="ttc" id="group___m_q_c_html_ga136e9f02b4e53ede318511f7d42bf190"><div class="ttname"><a href="group___m_q_c.html#ga136e9f02b4e53ede318511f7d42bf190">opj_mqc_destroy</a></div><div class="ttdeci">void opj_mqc_destroy(opj_mqc_t *mqc)</div><div class="ttdoc">Destroy a previously created MQC handle. </div><div class="ttdef"><b>Definition:</b> mqc.c:379</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="ttdef"><b>Definition:</b> mqc.h:75</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:416</div></div>
<div class="ttc" id="structopj__mqc__state_html_adb7b0a0d394f049e018262c2a5bc7135"><div class="ttname"><a href="structopj__mqc__state.html#adb7b0a0d394f049e018262c2a5bc7135">opj_mqc_state::nmps</a></div><div class="ttdeci">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:61</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="group___m_q_c_html_ga06f573a8ddf3566cd663a3fc65a69bc6"><div class="ttname"><a href="group___m_q_c.html#ga06f573a8ddf3566cd663a3fc65a69bc6">opj_mqc_bypass_flush_enc</a></div><div class="ttdeci">OPJ_UINT32 opj_mqc_bypass_flush_enc(opj_mqc_t *mqc)</div><div class="ttdoc">BYPASS mode switch, flush operation. </div><div class="ttdef"><b>Definition:</b> mqc.c:450</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:59</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:428</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="ttdef"><b>Definition:</b> mqc.h:73</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:520</div></div>
<div class="ttc" id="structopj__mqc__state_html_a5e63637e9eae42fc08dbf590c39bd164"><div class="ttname"><a href="structopj__mqc__state.html#a5e63637e9eae42fc08dbf590c39bd164">opj_mqc_state::nlps</a></div><div class="ttdeci">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:63</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="group___m_q_c_html_gabe330c18fbdee2676a2201f88a756be2"><div class="ttname"><a href="group___m_q_c.html#gabe330c18fbdee2676a2201f88a756be2">opj_mqc_encode</a></div><div class="ttdeci">void opj_mqc_encode(opj_mqc_t *mqc, OPJ_UINT32 d)</div><div class="ttdoc">Encode a symbol using the MQ-coder. </div><div class="ttdef"><b>Definition:</b> mqc.c:408</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:398</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="ttdef"><b>Definition:</b> mqc.h:77</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:470</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:505</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:390</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:71</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:614</div></div>
<div class="ttc" id="group___m_q_c_html_gae7894baeeb49e44f6135cd77e076dd16"><div class="ttname"><a href="group___m_q_c.html#gae7894baeeb49e44f6135cd77e076dd16">opj_mqc_restart_enc</a></div><div class="ttdeci">OPJ_UINT32 opj_mqc_restart_enc(opj_mqc_t *mqc)</div><div class="ttdoc">RESTART mode switch (TERMALL) </div><div class="ttdef"><b>Definition:</b> mqc.c:477</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.10
</small></address>
</body>
</html>