pub unsafe extern "C" fn heif_image_create(
    width: c_int,
    height: c_int,
    colorspace: heif_colorspace,
    chroma: heif_chroma,
    out_image: *mut *mut heif_image
) -> heif_error
Expand description

Create a new image of the specified resolution and colorspace. Note: no memory for the actual image data is reserved yet. You have to use heif_image_add_plane() to add the image planes required by your colorspace/chroma.