Struct y4m::Decoder [] [src]

pub struct Decoder<'d, R: Read + 'd> { /* fields omitted */ }

YUV4MPEG2 decoder.

Methods

impl<'d, R: Read> Decoder<'d, R>
[src]

Create a new decoder instance.

Iterate over frames, without extra heap allocations. End of input is indicated by Error::EOF.

Return file width.

Return file height.

Return file framerate.

Return file colorspace.

NOTE: normally all .y4m should have colorspace param, but there are files encoded without that tag and it's unclear what should we do in that case. Currently C420 is implied by default as per ffmpeg behavior.

Return file raw parameters.