# CSJ2K.j2k.entropy.decoder.MQDecoder.checkPredTerm

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_decoder_MQDecoder_checkPredTerm_" data-uid="CSJ2K.j2k.entropy.decoder.MQDecoder.checkPredTerm*">checkPredTerm Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_decoder_MQDecoder_checkPredTerm_" data-uid="CSJ2K.j2k.entropy.decoder.MQDecoder.checkPredTerm*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_MQDecoder_checkPredTerm" data-uid="CSJ2K.j2k.entropy.decoder.MQDecoder.checkPredTerm">checkPredTerm()</h4>
<div class="markdown level1 summary"><p>Checks for past errors in the decoding process using the predictable
error resilient termination. This works only if the encoder used the
predictable error resilient MQ termination, otherwise it reports wrong
results. If an error is detected it means that the MQ bit stream has
been wrongly decoded or that the MQ terminated segment length is too
long. If no errors are detected it does not necessarily mean that the
MQ bit stream has been correctly decoded.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool checkPredTerm()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function checkPredTerm() As Boolean</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if errors are found, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
