Function charls_sys::charls_jpegls_encoder_encode_from_buffer

source ยท
pub unsafe extern "C" fn charls_jpegls_encoder_encode_from_buffer(
    encoder: *mut charls_jpegls_encoder,
    source_buffer: *const c_void,
    source_size_bytes: usize,
    stride: u32,
) -> charls_jpegls_errc
Expand description
Encodes the passed buffer with the source image data to the destination. Reference to the encoder instance. Byte array that holds the image data that needs to be encoded. Length of the array in bytes. The number of bytes from one row of pixels in memory to the next row of pixels in memory. Stride is sometimes called pitch. If padding bytes are present, the stride is wider than the width of the image. The result of the operation: success or a failure code.