YUV4MPEG2 (.y4m) Encoder/Decoder. Format specification.
Simple stream copying:
extern crate y4m; use io; let mut infh = stdin; let mut outfh = stdout; let mut dec = decode.unwrap; let mut enc = encode .with_colorspace .write_header .unwrap; loop
See API documentation for overview of all available methods. See also this example on how to resize input y4m into grayscale y4m of different resolution:
Library is licensed under MIT.