Struct y4m::Decoder [] [src]

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

YUV4MPEG2 decoder.

Methods

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

[src]

Create a new decoder instance.

[src]

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

[src]

Return file width.

[src]

Return file height.

[src]

Return file framerate.

[src]

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.

[src]

Return file raw parameters.

[src]

Return the bit depth per sample

[src]

Return the number of bytes in a sample

Trait Implementations

Auto Trait Implementations

impl<'d, R> Send for Decoder<'d, R> where
    R: Send

impl<'d, R> Sync for Decoder<'d, R> where
    R: Sync