# CSJ2K.j2k.codestream.reader.CBlkInfo

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_codestream_reader_CBlkInfo" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo" class="text-break">CBlkInfo Class
</h1>
  <div class="markdown level0 summary"><p>This class contains location of code-blocks' piece of codewords (there is
one piece per layer) and some other information.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">CBlkInfo</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.codestream.reader.html">CSJ2K.j2k.codestream.reader</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_codestream_reader_CBlkInfo_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CBlkInfo</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CBlkInfo</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.-ctor.html#CSJ2K_j2k_codestream_reader_CBlkInfo__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_">CBlkInfo(int, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs a new instance with specified number of layers and
code-block coordinates. The number corresponds to the maximum piece of
codeword for one code-block.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_ctp" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.ctp">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.ctp.html">ctp</a>
        </td>
        <td class="markdown level1 summary"><p>The cumulative number of truncation points</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_h" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.h">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.h.html">h</a>
        </td>
        <td class="markdown level1 summary"><p>Height of the code-block</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_len" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.len">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.len.html">len</a>
        </td>
        <td class="markdown level1 summary"><p>Length of each piece of code-block's codewords</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_msbSkipped" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.msbSkipped">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.msbSkipped.html">msbSkipped</a>
        </td>
        <td class="markdown level1 summary"><p>The number of most significant bits which are skipped for this
code-block (= Mb-1-bitDepth).</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_ntp" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.ntp">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.ntp.html">ntp</a>
        </td>
        <td class="markdown level1 summary"><p>The number of truncation point for each layer</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_off" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.off">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.off.html">off</a>
        </td>
        <td class="markdown level1 summary"><p>Offset of each piece of code-block's codewords in the file</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_pktIdx" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.pktIdx">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.pktIdx.html">pktIdx</a>
        </td>
        <td class="markdown level1 summary"><p>Index of the packet where each layer has been found</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_segLen" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.segLen">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.segLen.html">segLen</a>
        </td>
        <td class="markdown level1 summary"><p>The length of each segment (used with regular termination or in
selective arithmetic bypass coding mode)</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_ulx" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.ulx">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.ulx.html">ulx</a>
        </td>
        <td class="markdown level1 summary"><p>Upper-left x-coordinate of the code-block (relative to the tile)</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_uly" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.uly">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.uly.html">uly</a>
        </td>
        <td class="markdown level1 summary"><p>Upper-left y-coordinate of the code-block (relative to the tile)</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_w" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.w">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.w.html">w</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the code-block</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_codestream_reader_CBlkInfo_ToString" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.ToString">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.ToString.html#CSJ2K_j2k_codestream_reader_CBlkInfo_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Object information in a string.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_CBlkInfo_addNTP_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.addNTP(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.addNTP.html#CSJ2K_j2k_codestream_reader_CBlkInfo_addNTP_System_Int32_System_Int32_">addNTP(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the number of new truncation for specified layer.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
