Function nn_tensor_load_image

Source
pub unsafe extern "C" fn nn_tensor_load_image(
    tensor: *mut NNTensor,
    image: *const c_void,
    image_size: usize,
) -> NNError
Expand description

Loads an image from the provided buffer and decodes it accordingly, the function uses the images headers to find an appropriate decoder. The function will handle any required casting to the target tensor’s format.

@public @memberof NNTensor @since 2.0