image-rs / canvas

An experimental allocated buffer suitable for image data (Rust library).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image-canvas

Provides the definition of a texel trait and marker type, several buffer and layout abstractions, and a color aware, flexible buffer on top.

  • texel contains image-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. texel-crates texel-docs
  • canvas contains image-canvas, defining color models and conversion to provide an opinionated default within the layout framework of image-texel. canvas-crates texel-docs
  • drm contains image-drm, a work-in-progress to provide native Rust types mirroring each of those available through libdrm with the goal of simplifying frame buffer interaction.

I just want to see the goods

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

About

An experimental allocated buffer suitable for image data (Rust library).


Languages

Language:Rust 100.0%