Docs.rs
libqoi-0.3.2
libqoi 0.3.2
Permalink
Docs.rs crate page
LGPL-2.0-or-later
Links
Homepage
Repository
crates.io
Source
Owners
10maurycy10
Dependencies
criterion ^0.3
dev
rand ^0.8.5
dev
Versions
62.5%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
libqoi
0.3.2
All Items
Crate Items
Structs
Enums
Functions
Crate
libqoi
Copy item path
Source
Structs
§
Header
A QOI header, storing all the metadata
Enums
§
Part
A decoded version of a qoi Part/Chunk (I had to rewrite to add this API) All values stored unbiased
Functions
§
decode_
qoi
Decodes an QOI image to raw RGBA data row-major, returns metadata in a Header struct
encode_
qoi
Compresses raw image data to QOI. img_data : Row major RGBA image data hight, width: Image size channel_count: 3 = RBG, 4 = RBGA Panics if img_data.len() is not divisable by 4
read_
header
Reads a header from data, can be used to check image size before decoding.