19 releases (breaking)
0.17.0+libavif.1.0.4 | Jul 5, 2024 |
---|---|
0.16.0+libavif.1.0.4 | Feb 18, 2024 |
0.15.0 | Oct 31, 2023 |
0.14.3 | Apr 10, 2023 |
0.4.2 | Mar 17, 2020 |
#1007 in Images
1,229 downloads per month
Used in 8 crates
(2 directly)
9MB
184K
SLoC
Contains (JAR file, 60KB) gradle-wrapper.jar
libavif-sys
AVIF is an image codec based on the next-generation open, royalty-free video coding format AV1.
AVIF gets compression ratios considerably better than JPEG for similar quality levels.
This crate wraps the Alliance for Open Media's libavif into an unsafe rust crate.
Minimal safe wrappers are provided by libavif and
a image
-compatible libavif-image.
Codec Features
This crate, by default, uses codec-dav1d
for decoding and codec-rav1e
for encoding, because
they have the best (speed) performance. You can disable those features and instead use codec-aom
.
Compiling
- cmake is required for compiling the crate.
dav1d
requires ninja/meson and nasmrav1e
is implemented in Rust and has no other dependencies (though note that libavif itself uses it via rav1e's C-API).
Platform support
This crate is tested on Linux, MacOS, and Windows.
License
This crate is released under the BSD-2-Clause license. The dependant C-libraries are released under similarly permissive licenses. Patent licenses are also provided.