$ v_frame
v0.5.2Video Frame data structures, originally part of rav1e
Latest Update Summary
Crate
Name: v_frame New version: 0.4.0 Release date: 2026-01-05T19:31:36.736893Z
Crate readme
Short description A Rust library providing efficient data structures and utilities for handling YUV video frames and planes.
Long description v_frame is a Rust library that offers data structures and utilities to efficiently manage YUV video frames and planes. It supports type-safe pixel handling for both 8-bit and high bit-depth pixels and allows flexible plane structures with memory layouts optimized for SIMD operations. The library is compatible with various chroma formats and includes a builder pattern API. It supports WebAssembly environments and features zero-copy iterators for efficient pixel processing.
Features • Type-safe pixel handling • Flexible plane structure • Multiple chroma formats • Builder pattern API • SIMD-friendly alignment • WebAssembly support • Zero-copy iterators
Code Examples Add to Cargo.toml
[dependencies]
v_frame = "0.4"
Basic usage
let frame = FrameBuilder::new(
NonZeroUsize::new(1920).unwrap(),
NonZeroUsize::new(1080).unwrap(),
ChromaSubsampling::Yuv420,
NonZeroU8::new(8).unwrap(),
)
.build::<u8>()
.unwrap();
Creating a Grayscale Frame
let frame = FrameBuilder::new(
NonZeroUsize::new(1280).unwrap(),
NonZeroUsize::new(720).unwrap(),
ChromaSubsampling::Monochrome,
NonZeroU8::new(8).unwrap(),
)
.build::<u8>()
.unwrap();
Links • https://docs.rs/v_frame • https://crates.io/crates/v_frame • https://github.com/rust-av/v_frame/blob/main/LICENSE
Release info
Release version: N/A
Release description N/A
Code Examples N/A
Patch update: 0.5.1 → 0.5.2
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add v_frameOr add to Cargo.toml: v_frame = "0.5.2"