Function libcacaoimage::decode::DecodeWebP

Function Documentation

Image libcacaoimage::decode::DecodeWebP(std::istream &input)

Decode a WebP image.

If you know your image is WebP, this avoids the overhead of format determination

Parameters:

input – An input stream to the encoded data

Throws:

std::runtime_error – If the data is not in WebP format or if decoding fails

Returns:

The decoded image data