# CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.initSubbandsFields

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_initSubbandsFields_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.initSubbandsFields*">initSubbandsFields Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_initSubbandsFields_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.initSubbandsFields*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_initSubbandsFields_System_Int32_CSJ2K_j2k_wavelet_synthesis_SubbandSyn_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.initSubbandsFields(System.Int32,CSJ2K.j2k.wavelet.synthesis.SubbandSyn)">initSubbandsFields(int, SubbandSyn)</h4>
<div class="markdown level1 summary"><p>Initialises subbands fields, such as number of code-blocks, code-blocks
dimension and number of magnitude bits, in the subband tree. The
nominal code-block width/height depends on the precincts dimensions if
used. The way the number of magnitude bits is computed depends on the
quantization type (reversible, derived, expounded).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void initSubbandsFields(int c, SubbandSyn sb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub initSubbandsFields(c As Integer, sb As SubbandSyn)</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 index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.wavelet.synthesis.SubbandSyn.html">SubbandSyn</a></td>
      <td><span class="parametername">sb</span></td>
      <td><p>The subband tree to be initialised.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
