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

QOI Decoder implementation.

An encoder that turns RGBA bytes into a QOI file.

Binary tags & masks for QOI

Structs

A vector with a fixed capacity.

A QOI header, containing width, height, channels (3 = RGB | 4 = RGBA) and colorspace (0 = sRGB + Linear Alpha; 1 = All Linear).

A small adapter that transforms sRGBA bytes into sRGBA pixels.

An sRGBA pixel.

Enums

A QOI Operation chunk