# CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc" data-uid="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc" class="text-break">CodedCBlkDataSrcEnc Interface
</h1>
  <div class="markdown level0 summary"><p>This interface defines a source of entropy coded data and methods to
transfer it in a code-block by code-block basis. In each call to
'getNextCodeBlock()' a new coded code-block is returned. The code-block are
retruned in no specific-order.</p>
<pre><code>       &lt;p&gt;This interface is the source of data for the rate allocator. See the
       'PostCompRateAllocator' class.&lt;/p&gt;&lt;p&gt;For each coded-code-block the entropy-coded data is returned along with
       the rate-distortion statistics in a 'CBlkRateDistStats' object.&lt;/p&gt;
</code></pre>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.entropy.encoder.html">CSJ2K.j2k.entropy.encoder</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface CodedCBlkDataSrcEnc : ForwWTDataProps, ImgData</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface CodedCBlkDataSrcEnc
    Inherits ForwWTDataProps, ImgData</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getNextCodeBlock_System_Int32_CSJ2K_j2k_entropy_encoder_CBlkRateDistStats_" data-uid="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getNextCodeBlock(System.Int32,CSJ2K.j2k.entropy.encoder.CBlkRateDistStats)">
          <a class="xref" href="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getNextCodeBlock.html#CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getNextCodeBlock_System_Int32_CSJ2K_j2k_entropy_encoder_CBlkRateDistStats_">getNextCodeBlock(int, CBlkRateDistStats)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the next coded code-block in the current tile for the specified
component, as a copy (see below). The order in which code-blocks are
returned is not specified. However each code-block is returned only
once and all code-blocks will be returned if the method is called 'N'
times, where 'N' is the number of code-blocks in the tile. After all
the code-blocks have been returned for the current tile calls to this
method will return 'null'.</p>
<pre><code>       &lt;p&gt;When changing the current tile (through 'setTile()' or 'nextTile()')
       this method will always return the first code-block, as if this method
       was never called before for the new current tile.&lt;/p&gt;&lt;p&gt;The data returned by this method is always a copy of the internal
       data of this object, if any, and it can be modified &quot;in place&quot; without
       any problems after being returned.&lt;/p&gt;
</code></pre>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getPPX_System_Int32_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getPPX(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getPPX.html#CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getPPX_System_Int32_System_Int32_System_Int32_">getPPX(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the width of a packet for the specified tile-component and
resolution level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getPPY_System_Int32_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getPPY(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.getPPY.html#CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_getPPY_System_Int32_System_Int32_System_Int32_">getPPY(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the height of a packet for the specified tile-component and
resolution level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_precinctPartitionUsed_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.precinctPartitionUsed(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.entropy.encoder.CodedCBlkDataSrcEnc.precinctPartitionUsed.html#CSJ2K_j2k_entropy_encoder_CodedCBlkDataSrcEnc_precinctPartitionUsed_System_Int32_System_Int32_">precinctPartitionUsed(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the precinct partition is used for the specified
component and tile, returns false otherwise</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.html">PostCompRateAllocator</a></div>
      <div><a class="xref" href="CSJ2K.j2k.entropy.encoder.CBlkRateDistStats.html">CBlkRateDistStats</a></div>
      <div><a class="xref" href="CSJ2K.j2k.entropy.encoder.EntropyCoder.html">EntropyCoder</a></div>
  </div>

</div>
