[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.encoder.LayersInfo

LayersInfo Class

This class stores the specification of a layer distribution in the bit stream. The specification is made of optimization points and a number of extra layers to add between the optimization points. Each optimization point creates a layer which is optimized by the rate allocator to the specified target bitrate. The extra layers are added by the rate allocator between the optimized layers, with the difference that they are not optimized (i.e. they have no precise target bitrate).

       <p>The overall target bitrate for the bit stream is always added as the
       last optimization point without any extra layers after it. If there are
       some optimization points whose target bitrate is larger than the overall
       target bitrate, the overall target bitrate will still appear as the last
       optimization point, even though it does not follow the increasing target
       bitrate order of the other optimization points. The rate allocator is
       responsible for eliminating layers that have target bitrates larger than
       the overall target bitrate.</p><p>Optimization points can be added with the addOptPoint() method. It takes
       the target bitrate for the optimized layer and the number of extra layers
       to add after it.</p><p>Information about the total number of layers, total number of
       optimization points, target bitrates, etc. can be obtained with the other
       methods.</p>
Inheritance
LayersInfo
Namespace: CSJ2K.j2k.entropy.encoder
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class LayersInfo

Constructors

Name Description
LayersInfo(float)

Creates a new LayersInfo object. The overall target bitrate 'brate' is always an extra optimization point, with no extra layers are after it. Note that any optimization points that are added with addOptPoint() are always added before the overall target bitrate.

Properties

Name Description
NOptPoints

Returns the number of layers to optimize, or optimization points, as specified by this object.

TotBitrate

Returns the overall target bitrate for the entire bit stream.

TotNumLayers

Returns the total number of layers, according to the layer specification of this object and the overall target bitrate.

Methods

Name Description
addOptPoint(float, int)

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.

getExtraLayers(int)

Returns the number of extra layers to add after the optimization point 'n', but before optimization point 'n+1'. If there is no optimization point 'n+1' then they should be added before the overall target bitrate.

getTargetBitrate(int)

Returns the target bitrate of the optmimization point 'n'.