Provides the definition of a texel trait and marker type, several buffer and layout abstractions, and a color aware, flexible buffer on top.
texel
containsimage-texel
, the kernel of image buffer and element types that are themselves free of policy. By that we mean, it's always possible to access bytes directly and to convert to arbitrary layouts with minimal reallocation overhead.canvas
containsimage-canvas
, defining color models and conversion to provide an opinionated default within the layout framework ofimage-texel
.drm
containsimage-drm
, a work-in-progress to provide native Rust types mirroring each of those available throughlibdrm
with the goal of simplifying frame buffer interaction.
cargo run --example --release show-oklab
# Writes an image test.png
cargo run --example --release show-srlab2
# Another image test.png in another color space