| synopsis || arguments || prev || next |
void open( const char * fname, bool allow_seeks=true)
Java: void Open( String fname, boolean allow_seeks)
[Declared in "../apps/compressed_io/kdu_file_io.h"]
Closes any currently open file and attempts to open a new one, generating an appropriate error (through kdu_error) if the indicated file cannot be opened.
Relative path name of file to be opened.
If false, seeking within the code-stream will not be permitted. Disabling seeking has no effect unless the code-stream contains TLM and/or PLT marker segments, in which case the ability to seek within the file can save a lot of memory when working with large images, but this may come at the expense of some loss in speed if we know ahead of time that we want to decompress the entire image.