4#ifdef USE_RUNTIME_IMAGE_QOI
25 void reset()
override;
Class to abstract decoding different image formats.
Image decoder specialization for QOI images.
bool knows_end() const override
The header gives the pixel count, so the end is known once it has been parsed.
int HOT decode(uint8_t *buffer, size_t size) override
bool is_finished() const override
QoiDecoder(RuntimeImage *image)
Construct a new QOI decoder object.
std::unique_ptr< Color[]> color_table_
A dynamic image that can be loaded and decoded at runtime.