Crates.io | image-canvas |
lib.rs | image-canvas |
version | 0.4.2 |
source | src |
created_at | 2019-03-31 23:28:06.723984 |
updated_at | 2022-06-25 22:02:08.426814 |
description | A color-aware texel buffer. |
homepage | |
repository | https://github.com/image-rs/canvas |
max_upload_size | |
id | 125070 |
size | 259,595 |
Provides a planar, colored, convertible frame buffer based on image-texel
.
Work-In-Progress: Do not use in production yet. The version is above
0.0.*
incidentally, the API may change rapidly. That said, we will adhere to
semantic versioning and the byte-slice-based interfaces won't be removed as
they are the selling point of the library.
The buffer should be free of IO, yet provide a rich API for a color image
buffer: that is, a buffer with correct color spaces, color and sample
representations at various bit depths, that can be effectively and efficiently
semantically manipulated on a CPU. Provide a lingua franca for passing portions
of an image to other routines. At some point, we will wrap this into image
as a decoding buffer.
The goal for a 1.0
version is further to provide the same bit-by-bit
reproducible results on all platforms and ISA combinations for all
representation and conversion functionality. Not sure how feasible this is
while reaching best-in-class performance but we'll try. Not being at the mercy
of hardware texel/shading/interpolation units should have some benefit, right?
This isn't definitive yet, should be considered a rough idea.
Do not solve IO, bindings for reading into portions can be written on top of the exposed methods for mutating and referencing parts of the frame.
Do not provide GPU bindings (but make it easy to translate a layout and prepare it for copying to a texture buffer).
The benchmarks are measuring conversion of 128x128 pixel images into other color and texel representations. For comparison's sake, the numbers below are scaled up to seconds-per-FullHD image (1920×1080 pixels). This isn't exactly right due to caches but good for future reference.
At 2022-05-19 we have for example:
= 101 fps
= 124 fps
= 14.85 fps
= 5.3 fps
= 12.60 fps