avif-rs 26.6.0

Encode AVIF images with SVT-AV1 and decode with dav1d, via statically-linked libavif.
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Encoder-focused integration tests.

mod common;

use common::{is_avif, source_image};

#[test]
fn encode_produces_valid_avif() {
    let img = source_image();
    let bytes = avif::encode(&img).expect("encode");
    assert!(!bytes.is_empty(), "encoded output should not be empty");
    assert!(is_avif(&bytes), "output should be a valid AVIF stream");
}