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

In This Topic
    EBCOTRateAllocator Class
    In This Topic
    This implements the EBCOT post compression rate allocation algorithm. This algorithm finds the most suitable truncation points for the set of code-blocks, for each layer target bitrate. It works by first collecting the rate distortion info from all code-blocks, in all tiles and all components, and then running the rate-allocation on the whole image at once, for each layer.

    This implementation also provides some timing features. They can be enabled by setting the 'DO_TIMING' constant of this class to true and recompiling. The timing uses the 'System.currentTimeMillis()' Java API call, which returns wall clock time, not the actual CPU time used. The timing results will be printed on the message output. Since the times reported are wall clock times and not CPU usage times they can not be added to find the total used time (i.e. some time might be counted in several places). When timing is disabled ('DO_TIMING' is false) there is no penalty if the compiler performs some basic optimizations. Even if not the penalty should be negligeable.

    Object Model
    EBCOTRateAllocator Class
    Syntax
    'Declaration
     
    
    Public Class EBCOTRateAllocator 
       Inherits PostCompRateAllocator
       Implements CSJ2K.j2k.image.ImgData 
    public class EBCOTRateAllocator : PostCompRateAllocator, CSJ2K.j2k.image.ImgData  
    Inheritance Hierarchy

    System.Object
       CSJ2K.j2k.image.ImgDataAdapter
          CSJ2K.j2k.entropy.encoder.PostCompRateAllocator
             CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator

    See Also