Function libcacaoimage::decode::DecodeGeneric

Function Documentation

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

Decode an arbitrary image of an unknown format.

Parameters:

input – An input stream to the encoded data

Throws:

std::runtime_error – If the format cannot be determined or if decoding fails

Returns:

The decoded image data