|
|
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::open Use this function to open tiled J2K image, decode it and convert tiles into frames.
int open(char *filename, char *options); Parameters filename Name of a JPEG 2000 image file. src_buffer Pointer to a memory buffer, containing a JPEG 2000 image file. src_size Size of data in the memory buffer (in bytes). resource_no The resource ID. See "Samples\C++\h_Resources" for the example of using resources. data_source Pointer to a data source identifier to be passed to callback routines unchanged. See "Custom Data Sources" section for more information. cbs Pointer to a special structure with callbacks. See "Custom Data Sources" section for more information. options Options string. See the list of valid options here.
Notes "bpp" option won't work for J2K_Frames because frames have a fixed format with bytes-per-pixel value always equal to 4. Return value Returns J2KERR_SUCCESS or an error code if the function has failed. See the list of error codes here. Example
J2K_Frames frms; J2K_Frames::close() J2K_Frames class |
| 2004-2008 © Alex Saveliev |