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_Frames operators


J2K_Frames class has the following operators:

unsigned char* operator() (int no);

unsigned char* operator() ();
void operator= (int no);
void operator++ ();
void operator−− ();


Notes

1. operator() (int no) is similar to J2K_Frames::getFrame().

2. Last 4 operators use internal variable to store the current frame number. This allows J2K_Frames object to act as a simple iterator.

3. ++ or −− operators will 'wrap around', i.e. the current frame will go to 0 after the maximum number is reached and vice versa.

Example

J2K_Frames frms;

int j2k_err = frms.open("test.jp2", "mba");
if(j2k_err != J2KERR_SUCCESS){ printf("\n J2K-Codec error: %s.\n", frms.errStr); return -1; }

...

DrawFrame(x, y, frms()); frms++;

See also

J2K_Frames::open()

J2K_Frames::getFrames()

J2K_Frames class
2004-2008 © Alex Saveliev