#ifndef _library__png_decoder__hpp__included__ #define _library__png_decoder__hpp__included__ #include #include #include #include #include struct png_decoded_image { size_t width; size_t height; bool has_palette; std::vector data; std::vector palette; }; void decode_png(std::istream& file, png_decoded_image& out); void decode_png(const std::string& file, png_decoded_image& out); #endif