# CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc" data-uid="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc" class="text-break">CBlkWTDataSrc Interface
</h1>
  <div class="markdown level0 summary"><p>This abstract class defines methods to transfer wavelet data in a
code-block by code-block basis. In each call to 'getNextCodeBlock()' or
'getNextInternCodeBlock()' a new code-block is returned. The code-blocks
are returned in no specific order.</p>
<pre><code>       &lt;p&gt;This class is the source of data for the quantizer. See the 'Quantizer'
       class.&lt;/p&gt;&lt;p&gt;Note that no more of one object may request data, otherwise one object
       would get some of the data and another one another part, in no defined
       manner.&lt;/p&gt;
</code></pre>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.wavelet.analysis.html">CSJ2K.j2k.wavelet.analysis</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface CBlkWTDataSrc : ForwWTDataProps, ImgData</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface CBlkWTDataSrc
    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_wavelet_analysis_CBlkWTDataSrc_getDataType_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getDataType(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getDataType.html#CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getDataType_System_Int32_System_Int32_">getDataType(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return the data type of this CBlkWTDataSrc for the given component in
the current tile. Its value should be either DataBlk.TYPE_INT or
DataBlk.TYPE_FLOAT but can change according to the current
tile-component.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getFixedPoint_System_Int32_" data-uid="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getFixedPoint(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getFixedPoint.html#CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getFixedPoint_System_Int32_">getFixedPoint(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the position of the fixed point in the specified component, or
equivalently the number of fractional bits. This is the position of the
least significant integral (i.e. non-fractional) bit, which is
equivalent to the number of fractional bits. For instance, for
fixed-point values with 2 fractional bits, 2 is returned. For
floating-point data this value does not apply and 0 should be
returned. Position 0 is the position of the least significant bit in
the data.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getNextCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_" data-uid="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getNextCodeBlock(System.Int32,CSJ2K.j2k.wavelet.analysis.CBlkWTData)">
          <a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getNextCodeBlock.html#CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getNextCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_">getNextCodeBlock(int, CBlkWTData)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the next 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. The 'offset' of the returned data is
       0, and the 'scanw' is the same as the code-block width.  The 'magbits'
       of the returned data is not set by this method and should be
       ignored. See the 'CBlkWTData' class.&lt;/p&gt;&lt;p&gt;The 'ulx' and 'uly' members of the returned 'CBlkWTData' object
       contain the coordinates of the top-left corner of the block, with
       respect to the tile, not the subband.&lt;/p&gt;
</code></pre>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getNextInternCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_" data-uid="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getNextInternCodeBlock(System.Int32,CSJ2K.j2k.wavelet.analysis.CBlkWTData)">
          <a class="xref" href="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.getNextInternCodeBlock.html#CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_getNextInternCodeBlock_System_Int32_CSJ2K_j2k_wavelet_analysis_CBlkWTData_">getNextInternCodeBlock(int, CBlkWTData)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the next code-block in the current tile for the specified
component. 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 can be the data in the internal
       buffer of this object, if any, and thus can not be modified by the
       caller. The 'offset' and 'scanw' of the returned data can be
       arbitrary. The 'magbits' of the returned data is not set by this method
       and should be ignored. See the 'CBlkWTData' class.&lt;/p&gt;&lt;p&gt;The 'ulx' and 'uly' members of the returned 'CBlkWTData' object
       contain the coordinates of the top-left corner of the block, with
       respect to the tile, not the subband.&lt;/p&gt;
</code></pre>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.wavelet.analysis.ForwWTDataProps.html">ForwWTDataProps</a></div>
      <div><a class="xref" href="CSJ2K.j2k.wavelet.WaveletTransform.html">WaveletTransform</a></div>
  </div>

</div>
