Function webp_picture_import_rgbx

Source
pub unsafe fn webp_picture_import_rgbx(
    picture: *mut WebPPicture,
    rgbx: *const u8,
    rgbx_stride: c_int,
) -> c_int
Expand description

Imports the RGB direct from the 32-bit format input buffer ignoring the alpha channel.

Avoids needing to copy the data to a temporary 24-bit RGB buffer to import the RGB only.