Crate teeny_qoi

Crate teeny_qoi 

Source
Expand description

QOI decoder & encoder implementation. Heavily based on the reference implementation. Feature flags:

  • std: enables stdlib support, disables no_std. on by default.
  • alloc: enables use of Vec methods, using the alloc crate while keeping no_std. disabled by default.

Modules§

decoder
QOI Decoder implementation.
encoder
An encoder that turns RGBA bytes into a QOI file.
tags
Binary tags & masks for QOI

Structs§

ArrayVec
A vector with a fixed capacity.
Header
A QOI header, containing width, height, channels (3 = RGB | 4 = RGBA) and colorspace (0 = sRGB + Linear Alpha; 1 = All Linear).
RgbaBytesAdapater
A small adapter that transforms sRGBA bytes into sRGBA pixels.
RgbaPixel
An sRGBA pixel.

Enums§

Chunk
A QOI Operation chunk