Skip to content

0.7.0

Compare
Choose a tag to compare
@aous72 aous72 released this 10 May 13:03
· 535 commits to master since this release

This is a rather large update. The main objectives are:

Enable decoding at reduced resolutions
This is achieved using "-skip_res x,y" in ojph_expand. x is the number of resolutions for which data is skipped (or not read), and y is the number of resolutions that are skipped for reconstruction. This can be achieved programmatically by calling

    codestream.restrict_input_resolution(skipped_res_for_data, skipped_res_for_recon);

There are two APIs that makes determining the reconstruction width and height; theses are:

    ui32 param_siz.get_recon_width(comp_num);
    ui32 param_siz.get_recon_height(comp_num);

where "comp_num" is the component number.

Introduce a resilient mode
With this option, the decoder attempts to continue decoding an image even in the presence of errors or early termination of the codestream (an incomplete file). This is achieved with "-resilient true" in ojph_expand.
The corresponding API is:

codestream.enable_resilience()

If there are error, the decoder will generate info messages. If the end user is not interested in these message, the output can be blocked if the end-user defines his own ojph::message_info object and pass it to configure_info(); inside this object, the end-user can send the message to nowhere.