Skip to main content

VideoFrameReaders

Trait VideoFrameReaders 

Source
pub trait VideoFrameReaders {
    // Required method
    fn make_reader(&self) -> Arc<dyn VideoFrameReader> ⓘ;
}
Expand description

The system’s frame readers, or None from Platform::video_frame_readers where it hands out no frames.

Required Methods§

Source

fn make_reader(&self) -> Arc<dyn VideoFrameReader> ⓘ

A reader fed by nothing yet, which reads the frames of the source it is given to: a player’s set_video_output, a camera’s outputs (CameraOutputs::frames). The reader goes when its last handle does: the app’s, and its source’s.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§