Skip to content

awxkee/maroontree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

maroontree

Still images AV1 and AV2 AVIFs encoder in Rust.

Example

fn main() {
    let img = image::open("./assets/image.png")
        .unwrap()
        .to_rgba8();
    let arr = img.to_vec();

    let out = encode_rgb8(
        &img.to_vec(),
        img.width(),
        img.height(),
        &EncodeConfig::new()
            .with_quality(60)
            .with_cicp(ColorEncoding::srgb_ycbcr())
            .with_chroma(ChromaFormat::Yuv444),
    )
        .unwrap();
    std::fs::write("output.heic", &data).expect("failed to write output");
}

License

This project is licensed under either of

  • BSD-3-Clause License (see LICENSE)
  • Apache License, Version 2.0 (see LICENSE)

at your option.

About

Still images AV1 and AV2 encoder in Rust

Topics

Resources

License

BSD-3-Clause, Apache-2.0 licenses found

Licenses found

BSD-3-Clause
LICENSE.md
Apache-2.0
LICENSE-APACHE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages