Struct rinvideo::Grabber[][src]

pub struct Grabber { /* fields omitted */ }

Methods

impl Grabber
[src]

Trait Implementations

impl Video for Grabber
[src]

Blocks till a new frame is availble can return None if the output format is not supported Read more

Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported Read more

Blocks till a new frame is available, if there's more than one frame it discards them till the last one Read more

Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported. If there's more than one frame it discards them till the last one Read more

Tries to receive the last frame and stores it internally, it can be recovered using last_frame Read more

Returns a reference to the last frame if there's one available

Width of the video

Height of the video

fps of the video, this should be the reported framerate by the underlying backend not the real fps Read more

fps of the video, this should be the real fps calculated when calling any of the functions to return a new frame or update Read more

Size (width x height) of the video

impl<'a> Render2d for &'a Grabber
[src]

Auto Trait Implementations

impl !Send for Grabber

impl !Sync for Grabber