tomato/src/image_loader_qoi.hpp
2024-03-06 01:02:59 +01:00

14 lines
450 B
C++

#pragma once
#include "./image_loader.hpp"
struct ImageLoaderQOI : public ImageLoaderI {
ImageInfo loadInfoFromMemory(const uint8_t* data, uint64_t data_size) override;
ImageResult loadFromMemoryRGBA(const uint8_t* data, uint64_t data_size) override;
};
struct ImageEncoderQOI : public ImageEncoderI {
std::vector<uint8_t> encodeToMemoryRGBA(const ImageResult& input_image, const std::map<std::string, float>& extra_options = {}) override;
};