Trait VideoFrameSource
pub trait VideoFrameSource<T, const CHANNELS: usize> {
// Required method
fn next_frame(
&mut self,
) -> Result<Option<VideoFrame<T, CHANNELS>>, VisionError>;
}Expand description
Pull-based video source implemented by optional codec/camera adapters.
Required Methods§
fn next_frame(&mut self) -> Result<Option<VideoFrame<T, CHANNELS>>, VisionError>
fn next_frame(&mut self) -> Result<Option<VideoFrame<T, CHANNELS>>, VisionError>
Returns the next frame, or None at end of stream.
Implementors§
impl<T, const CHANNELS: usize> VideoFrameSource<T, CHANNELS> for MemoryVideoSource<T, CHANNELS>
Available on crate feature
video-adapters only.