Implementing JPEG 2000 Plug in Features
JPEG 2000 is a wavelet based compression stored in a hierarchical format which contains several stored resolutions of the image in the same file without duplication. For that reason, a JPEG 2000 compressed image can then be sent to a device in the resolution that best fits, without additional storage overhead.
The LEADTOOLS JPEG 2000 Plug in provides support for loading and saving the JPEG 2000 file formats. The JPEG 2000 file formats provide greater flexibility and better image quality, especially at higher compression, than standard JPEG. The greater flexibility includes the ability to control:
whether or not to transform RGB images to YUV prior to compression
the type of quantization to use when determining the quantization step size
the amount of compression
the size and location of tiles
the number of resolution levels in the file
the progression order
the code block height and width
whether to use markers to help detect corruption during transmission
etc.
LEADTOOLS provides a FILEJ2KOPTIONS structure for controlling the JPEG 2000 features listed above. To determine the current settings for the JPEG 2000 features, use the LFileSettings::GetJ2KOptions function. To change the JPEG 2000 features, use the LFileSettings::SetJ2KOptions function.
To load JPEG 2000 images progressively, set the nPasses member of the LOADFILEOPTIONS structure, just as you would for regular JPEG files.
To get the default settings for the JPEG2000 features, use the LFileSettings::GetDefaultJ2KOptions function.
This support is available only in the LEADTOOLS JPEG 2000 Plug in, and must be unlocked. For more information on unlocking this support, refer to JPEG 2000 Plug In Support Instructions.
Please note that LEADTOOLS v14.5 also offers the LEADTOOLS JPEG 2000 COM Object for IE, which lets you view JPEG 2000 images in ActiveX enabled web browsers, such as Internet Explorer. For more information, refer to LEADTOOLS JPEG 2000 COM Object for IE in the v14.5 Products help file.