[]
        
(Showing Draft Content)

CSJ2K.j2k.quantization.quantizer.Quantizer.createInstance

createInstance Method

createInstance(CBlkWTDataSrc, EncoderSpecs)

Creates a Quantizer object for the appropriate type of quantization specified in the options in the parameter list 'pl', and having 'src' as the source of data to be quantized. The 'rev' flag indicates if the quantization should be reversible.

       NOTE: At the moment only sources of wavelet data that implement the
       'CBlkWTDataSrc' interface are supported.
Declaration
public static Quantizer createInstance(CBlkWTDataSrc src, EncoderSpecs encSpec)
Parameters
Type Name Description
CBlkWTDataSrc src

The source of data to be quantized

EncoderSpecs encSpec

Encoder specifications

Returns
Type Description
Quantizer