[][src]Function webp_dev::sys::webp::webp_idec_get_rgb

pub unsafe fn webp_idec_get_rgb(
    idec: *const WebPIDecoder,
    last_y: *mut c_int,
    width: *mut c_int,
    height: *mut c_int,
    stride: *mut c_int
) -> *mut u8

Returns the RGB/A image decoded so far.

Returns NULL if output params are not initialized yet. The RGB/A output type corresponds to the colorspace specified during call to WebPINewDecoder() or WebPINewRGB(). *last_y is the index of last decoded row in raster scan order. Some pointers (*last_y, *width etc.) can be NULL if corresponding information is not needed. The values in these pointers are only valid on successful (non-NULL) return.