| synopsis || arguments || prev || next |
void open( jp2_family_src * src)
Java: void Open( Jp2_family_src src)
[Declared in "../apps/compressed_io/mj2.h"]
Generates an appropriate error message (through kdu_error) if a the supplied data_src does not represent a source which has a valid MJ2 file format. This function opens an internal jp2_input_box object to read from the src and attempts to recover the entire MJ2 header. This may require seeking, so non-seekable sources are generally unacceptable. Also, the current implementation makes no provision for dynamic cacheing sources whose cache entries are not yet complete. If all relevant information is not recovered, or a parsing error occurs, the function generates an error through kdu_error.
A previously opened jp2_family_src object. Note that you must explicitly close or destroy that object, once you are done using it. The present object's close function will not do this for you.