Skip to main content

VideoSource

Trait VideoSource 

Source
pub trait VideoSource {
    // Required methods
    fn info(&self) -> VideoInfo;
    fn frame(&self, index: u64) -> Option<Rc<RasterImage>>;
}
Expand description

Frames of one clip, by index. Implemented by the native ffmpeg decoder.

Required Methods§

Source

fn info(&self) -> VideoInfo

Size, frame rate and length.

Source

fn frame(&self, index: u64) -> Option<Rc<RasterImage>>

Frame index (0 is the first), straight-alpha RGBA. None past the end or when decoding failed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§