Function libcacaoimage::decode::DecodeJPEG

Function Documentation

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

Decode a JPEG image.

If you know your image is JPEG, 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 JPEG format or if decoding fails

Returns:

The decoded image data