Skip to main content

bare_webp

Function bare_webp 

Source
fn bare_webp(bytes: &[u8]) -> Option<Bare>
Expand description

The WebP bytes as the picture and no more. None if it is not put together as a WebP is.

A WebP is a RIFF file: a header that says how long it is, then chunks, each a name of four letters, a length, and that much data, padded to an even length. In the extended format the first chunk is a header whose flags say which others there are.