ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.entropy.encoder Namespace / CBlkRateDistStats Class / CBlkRateDistStats Constructor

In This Topic
    CBlkRateDistStats Constructor
    In This Topic
    Overload List
    OverloadDescription
    Creates a new CBlkRateDistStats object without allocating any space for 'truncRates', 'truncSlopes', 'truncDists' and 'truncIdxs' or 'data'.  
    Creates a new CBlkRateDistStats object and initializes the valid truncation points, their rates and their slopes, from the 'rates' and 'dist' arrays. The 'rates', 'dist' and 'termp' arrays must contain the rate (in bytes), the reduction in distortion (from nothing coded) and the flag indicating if termination is used, respectively, for each truncation point.

    The valid truncation points are selected by taking them as lying on a convex hull. This is done by calling the method selectConvexHull().

    Note that the arrays 'rates' and 'termp' are copied, not referenced, so they can be modified after a call to this constructor.

     
    See Also