Function decode_yuv420
Source pub fn decode_yuv420(data: &[u8]) -> Result<YuvPlanes, DecodeError>
Expand description
Decode WebP data to raw YUV 4:2:0 planes.
For VP8 lossy images, returns the native YUV planes without upsampling.
For VP8L lossless images, decodes to RGBA then converts to YUV.
ยงReturns
YuvPlanes containing separate Y, U, and V buffers.