hpvca
June 9, 2026 ยท View on GitHub
A tiny HEVC encoder in Rust.
Example
fn main() {
let img = image::open("./assets/abstract_alpha.png")
.unwrap()
.to_rgba8();
let arr = img.to_vec();
let data = hpvca::encode_rgba_with_alpha(
&arr,
img.width(),
img.height(),
&EncodeConfig::default().with_chroma(ChromaFormat::Yuv444),
)
.unwrap();
std::fs::write("output.heic", &data).expect("failed to write output");
}
License
This project is licensed under either of
at your option.