[−][src]Function webp_dev::sys::webp::webp_picture_import_rgb
pub unsafe fn webp_picture_import_rgb(
picture: *mut WebPPicture,
rgb: *const u8,
rgb_stride: c_int
) -> c_int
Colorspace conversion function to import RGB samples.
Previous buffer will be free'd, if any. *rgb buffer should have a size of at least height * rgb_stride. Returns false in case of memory error.