Function openjpeg_sys::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. If strict decoding is disabled, the decoder will decode partial bitstreams as much as possible without erroring

  • p_codec’ — decompressor handler
  • ‘strict’ — OPJ_TRUE to enable strict decoding, OPJ_FALSE to disable

@return true if the decoder is correctly set