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§
Sourcefn next_frame(&mut self) -> VisionResult<Option<VideoFrame<T, CHANNELS>>>
fn next_frame(&mut self) -> VisionResult<Option<VideoFrame<T, CHANNELS>>>
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.