#include "png_memory_encoder.hpp" #include "3party/lodepng/lodepng.hpp" #include "base/assert.hpp" namespace il { void EncodePngToMemory(uint32_t width, uint32_t height, vector const & rgba, vector & out) { CHECK(LodePNG::encode(out, rgba, width, height) == 0, ()); CHECK(out.size() != 0, ()); } } // namespace il