Function libcacaoimage::decode::DecodeTGA
Defined in File libcacaoimage.hpp
Function Documentation
-
Image libcacaoimage::decode::DecodeTGA(std::istream &input)
Decode a TGA (Targa) image.
If you know your image is TGA, 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 TGA format or if decoding fails
- Returns:
The decoded image data