Registry / other / y4m
library0.8.0rscratesunverified

YUV4MPEG2 (.y4m) encoder and decoder for Rust.

# Cargo.toml [dependencies] y4m = "0.8.0"
INSTALL
IMPORT
SIG · Y4M
Y
y4m
otherrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Decoder
use y4m::Decoder;

Decodes a Y4M header from a byte buffer.

use y4m::Decoder; use std::io::Cursor; fn main() { let data = b"YUV4MPEG2 W1920 H1080 F25:1 Ip A0:0 C420jpeg\n"; let mut decoder = Decoder::new(Cursor::new(data)).unwrap(); println!("Header: {:?}", decoder.get_header()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
Resources
y4m — cargo add y4m · libregistry