lib-image · crate

kinogaki-image

Libraryenvironment

The owned image every lib-image format decodes to and encodes from.

Repository
lib-image (kinogaki/lib-image)
Folder
libs/lib-image/crates/image
Source
3 files, 336 lines
Tests
0 files, 0 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

The owned image every lib-image format decodes to and encodes from.

An Image is channels interleaved samples per pixel, rows top to bottom, straight (not premultiplied) alpha. Integer samples are display-referred (sRGB coded for color); float samples are scene-linear, as OpenEXR stores them. Half floats are kept as their IEEE 754 binary16 bits (f16_to_f32, f32_to_f16) since Rust's f16 is not stable.

Depends on

None.

Third-party

None.

Used by

CrateRepositoryAsWhat it is
kinogaki-exr-formatOpenEXRnormalOpenEXR, a format plugin: an EXR file reads as one standard Image, every part's channels its layers, and an Image writes as one EXR, Cryptomatte included.
kinogaki-jpeg-formatJPEGnormalJPEG, a format plugin: a JPEG reads as one standard Image as the file holds it, and an Image writes as one baseline JPEG.
kinogaki-pnglib-imagenormalPNG images (ISO/IEC 15948, W3C PNG Third Edition) over kinogaki_deflate.

Modules

Public types and traits

At the crate root

Structs ImageSizeError

Enums Samples