Function libcacaoimage::encode::EncodeWebP

Function Documentation

std::size_t libcacaoimage::encode::EncodeWebP(const Image &src, std::ostream &out)

Encode a WebP image.

Parameters:
  • src – The image data to encode

  • out – The output stream to write the encoded data to

Throws:

std::runtime_error – If encoding fails or settings or invalid