Function webp_picture_argb_to_yuva

Source
pub unsafe fn webp_picture_argb_to_yuva(
    picture: *mut WebPPicture,
    arg1: WebPEncCSP,
) -> c_int
Expand description

Converts picture->argb data to the YUV420A format.

The ‘colorspace’ parameter is deprecated and should be equal to WEBP_YUV420. Upon return, picture->use_argb is set to false. The presence of real non-opaque transparent values is detected, and ‘colorspace’ will be adjusted accordingly. Note that this method is lossy. Returns false in case of error.