Skip to main content

VideoSource

Trait VideoSource 

Source
pub trait VideoSource: Send {
    // Required methods
    fn info(&self) -> &VideoInfo;
    fn frame(&mut self, index: usize) -> VideoResult<Frame>;
}
Expand description

A video’s frames, by index. Decoding is blocking: views call it off the UI thread.

Required Methods§

Source

fn info(&self) -> &VideoInfo

Source

fn frame(&mut self, index: usize) -> VideoResult<Frame>

Frame index, decoded.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§