Function WebPPictureARGBToYUVA

Source
pub unsafe extern "C" fn WebPPictureARGBToYUVA(
    picture: *mut WebPPicture,
    colorspace: 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.