J2K-Codec ™

News
Overview
Download
Order
F.A.Q.
More info
Support
Links

Welcome
QuickStart

ActiveX Control

C++ Wrapper
J2K_Image
open
easyDecode
selectTiles
getMetaData
decode
close
J2K_Frames
open
getFrames
getFrame
operators
close

API Reference
General
getVersion
getLastError
getErrorStr
getLastErrorStr
Unlock
Open / Close
Open
Close
Info
GetInfo
GetInfoEx
GetResolutions
GetResDimensions
GetMetaData
Decoding
EasyDecode
SelectTiles
Decode
Cancel
Debug
StartLogging
StopLogging


J2K_Image class


This class represents a J2K image.

Members:

width int Width of the image (in pixels).
height int Height of the image (in pixels).
components int The number of components in the image.
hTiles int The number of tiles in horizontal direction.
vTiles int The number of tiles in vertical direction.
fileType int The image file type (0 = Lossy J2K, 1 = Lossy JP2, 2 = Lossless J2K, 3 = Lossless JP2).
precision int Component precision in bits. All components must have the same precision.
buffer unsigned char* Pointer to a buffer, allocated either by user or by J2K_Image itself.
The resulting image will be stored in this buffer.
size int Size of the buffer.
If you allocate the buffer manually, you need to place the correct value into this member.
pitch int Buffer pitch - distance, in bytes, to the start of next line.
Again, if you allocate the buffer yourself, you need to set up this member as well.
errStr const char * Error description string. Will be set in case of an error.


Methods:

J2K_Image::easyDecode()

J2K_Image::open()

J2K_Image::selectTiles()

J2K_Image::getMetaData()

J2K_Image::decode()

J2K_Image::close()


Notes

1. width, height, components, hTiles, vTiles and fileType are set after a successful J2K_Image::open() call.

2. buffer, size and pitch are set after a successful J2K_Image::decode() or J2K_Image::easyDecode() call.

2004-2008 © Alex Saveliev