Function charls_sys::charls_jpegls_decoder_decode_to_buffer

source ยท
pub unsafe extern "C" fn charls_jpegls_decoder_decode_to_buffer(
    decoder: *mut charls_jpegls_decoder,
    destination_buffer: *mut c_void,
    destination_size_bytes: usize,
    stride: u32,
) -> charls_jpegls_errc
Expand description
Will decode the JPEG-LS byte stream from the source buffer into the destination buffer. Function should be called after calling the function charls_jpegls_decoder_read_header. Reference to the decoder instance. Byte array that holds the encoded bytes when the function returns. Length of the array in bytes. If the array is too small the function will return an error. Number of bytes to the next line in the buffer, when zero, decoder will compute it. The result of the operation: success or a failure code.