opj_decoder_set_strict_mode

Function opj_decoder_set_strict_mode 

Source
pub unsafe extern "C" fn opj_decoder_set_strict_mode(
    p_codec: *mut opj_codec_t,
    strict: OPJ_BOOL,
) -> OPJ_BOOL
Expand description

Set strict decoding parameter for this decoder. If strict decoding is enabled, partial bit streams will fail to decode, and the check for invalid TPSOT values added in https://github.com/uclouvain/openjpeg/pull/514 will be disabled. If strict decoding is disabled, the decoder will decode partial bitstreams as much as possible without erroring, and the TPSOT fixing logic will be enabled.

§Arguments

  • p_codec - decompressor handler
  • strict - OPJ_TRUE to enable strict decoding, OPJ_FALSE to disable

§Returns

true if the decoder is correctly set