add stb png and jpg encoders, untested

This commit is contained in:
2023-10-06 13:16:45 +02:00
parent f1f67fe1ba
commit 62b00a4bd6
8 changed files with 83 additions and 11 deletions

View File

@ -8,7 +8,6 @@ struct ImageLoaderWebP : public ImageLoaderI {
};
struct ImageEncoderWebP : public ImageEncoderI {
std::vector<uint8_t> encodeToMemoryRGBA(const ImageResult& input_image) override;
std::vector<uint8_t> encodeToMemoryRGBAExt(const ImageResult& input_image, const std::map<std::string, float>& extra_options) override;
std::vector<uint8_t> encodeToMemoryRGBA(const ImageResult& input_image, const std::map<std::string, float>& extra_options = {}) override;
};