# CSJ2K.j2k.roi.encoder.ROIScaler.getNextInternCodeBlock

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_roi_encoder_ROIScaler_getNextInternCodeBlock_" data-uid="CSJ2K.j2k.roi.encoder.ROIScaler.getNextInternCodeBlock*">getNextInternCodeBlock Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_roi_encoder_ROIScaler_getNextInternCodeBlock_" data-uid="CSJ2K.j2k.roi.encoder.ROIScaler.getNextInternCodeBlock*"></a>
<h4 id="CSJ2K_j2k_roi_encoder_ROIScaler_getNextInternCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_" data-uid="CSJ2K.j2k.roi.encoder.ROIScaler.getNextInternCodeBlock(System.Int32,CSJ2K.j2k.wavelet.analysis.CBlkWTData)">getNextInternCodeBlock(int, CBlkWTData)</h4>
<div class="markdown level1 summary"><p>This function gets a datablk from the entropy coder. The sample sin the
block, which consists of  the quantized coefficients from the quantizer,
are scaled by the values given for any ROIs specified.</p>
<pre><code>       &lt;p&gt;The function calls on a ROIMaskGenerator to get the mask for scaling
       the coefficients in the current block.&lt;/p&gt;
</code></pre>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual CBlkWTData getNextInternCodeBlock(int c, CBlkWTData cblk)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function getNextInternCodeBlock(c As Integer, cblk As CBlkWTData) As CBlkWTData</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">c</span></td>
      <td><p>The component for which to return the next code-block.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTData.html">CBlkWTData</a></td>
      <td><span class="parametername">cblk</span></td>
      <td><p>If non-null this object will be used to return the new
code-block. If null a new one will be allocated and returned. If the
&quot;data&quot; array of the object is non-null it will be reused, if possible,
to return the data.</p>
</td>
    </tr>
  </tbody>
</table>
<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="CSJ2K.j2k.wavelet.analysis.CBlkWTData.html">CBlkWTData</a></td>
      <td><p>The next code-block in the current tile for component 'n', or
null if all code-blocks for the current tile have been returned.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.quantization.quantizer.CBlkQuantDataSrcEnc.getNextInternCodeBlock.html#CSJ2K_j2k_quantization_quantizer_CBlkQuantDataSrcEnc_getNextInternCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_">CBlkQuantDataSrcEnc.getNextInternCodeBlock(int, CBlkWTData)</a></div>
<h5 id="CSJ2K_j2k_roi_encoder_ROIScaler_getNextInternCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTData.html">CBlkWTData</a></div>
</div>
</div>
