Skip to main content

VideoFrameSource

Trait VideoFrameSource 

Source
pub trait VideoFrameSource<T, const CHANNELS: usize> {
    // Required method
    fn next_frame(&mut self) -> VisionResult<Option<VideoFrame<T, CHANNELS>>>;
}
Expand description

Pull-based video source implemented by optional codec/camera adapters.

Required Methods§

Source

fn next_frame(&mut self) -> VisionResult<Option<VideoFrame<T, CHANNELS>>>

Returns the next frame, or None at end of stream.

Implementors§

Source§

impl<T, const CHANNELS: usize> VideoFrameSource<T, CHANNELS> for MemoryVideoSource<T, CHANNELS>

Available on crate feature video-adapters only.