Function charls_sys::charls_jpegls_decoder_read_spiff_header

source ยท
pub unsafe extern "C" fn charls_jpegls_decoder_read_spiff_header(
    decoder: *mut charls_jpegls_decoder,
    spiff_header: *mut charls_spiff_header,
    header_found: *mut i32,
) -> charls_jpegls_errc
Expand description
Tries to read the SPIFF header from the source buffer. If a SPIFF header exists its content will be put into the spiff_header parameter and header_found will be set to 1. Call charls_jpegls_decoder_read_header to read the normal JPEG header afterwards. Reference to the decoder instance. Output argument, will hold the SPIFF header when one could be found. Output argument, will hold 1 if a SPIFF header could be found, otherwise 0. The result of the operation: success or a failure code.