libavif-sys

Crates.iolibavif-sys
lib.rslibavif-sys
version0.17.0+libavif.1.0.4
sourcesrc
created_at2020-02-19 18:03:21.129643
updated_at2024-07-05 17:47:42.114267
descriptionUnsafe wrapper around libavif, the image codec
homepage
repositoryhttps://github.com/njaard/libavif-rs
max_upload_size
id210657
size2,372,657
project-freta (github:microsoft:project-freta)

documentation

https://docs.rs/libavif-sys

README

libavif-sys

crates.io Documentation BSD-2-Clause licensed Rustc Version 1.62+ CI

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 nasm
  • rav1e 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.

Commit count: 288

cargo fmt