| synopsis || arguments || prev || next |
void set_resilient( bool expect_ubiquitous_sops=false)
Java: void Set_resilient( boolean expect_ubiquitous_sops)
[Declared in "../coresys/common/kdu_compressed.h"]
This function may be called at any time to modify the way input errors are treated. The function has no impact on output or interchange codestreams. The modes established by set_resilient, set_fussy and set_fast are mutually exclusive.
In the resilient mode, the code-stream management machinery makes a serious attempt to both detect and recover from errors in the code-stream. We attempt to guarantee that decompression will not fail, so long as the main header is uncorrupted and there is only one tile with one tile-part.
Indicating whether or not the decompressor should expect SOP marker segments to appear in front of every packet whenever the relevant flag in the Scod byte of the COD marker segment is set. According to the JPEG2000 standard, SOP markers need not appear in front of every packet when this flag is set; however, this weakens error resilience, since we cannot predict when an SOP marker should appear. If you know that the code-stream has been constructed to place SOP markers in front of every packet (or not use them at all), then set expect_ubiquitous_sops to true, thereby allowing the error resilient code-stream parsing algorithm to do a better job.