Function qoi::decode::decode_to_vec

source ยท
pub fn decode_to_vec(data: impl AsRef<[u8]>) -> Result<(Header, Vec<u8>)>
Expand description

Decode the image into a newly allocated vector.

Note: the resulting number of channels will match the header. In order to change the number of channels, use Decoder::with_channels.