# CSJ2K.j2k.entropy.encoder.LayersInfo.addOptPoint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_encoder_LayersInfo_addOptPoint_" data-uid="CSJ2K.j2k.entropy.encoder.LayersInfo.addOptPoint*">addOptPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_encoder_LayersInfo_addOptPoint_" data-uid="CSJ2K.j2k.entropy.encoder.LayersInfo.addOptPoint*"></a>
<h4 id="CSJ2K_j2k_entropy_encoder_LayersInfo_addOptPoint_System_Single_System_Int32_" data-uid="CSJ2K.j2k.entropy.encoder.LayersInfo.addOptPoint(System.Single,System.Int32)">addOptPoint(float, int)</h4>
<div class="markdown level1 summary"><p>Adds a new optimization point, with target bitrate 'brate' and with
'elyrs' (unoptimized) extra layers after it. The target bitrate 'brate'
must be larger than the previous optimization point. The arguments are
checked and IllegalArgumentException is thrown if they are not correct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void addOptPoint(float brate, int elyrs)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub addOptPoint(brate As Single, elyrs As Integer)</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.single">float</a></td>
      <td><span class="parametername">brate</span></td>
      <td><p>The target bitrate for the optimized layer.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">elyrs</span></td>
      <td><p>The number of extra (unoptimized) layers to add after the
optimized layer.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
