Struct afi::Video [−][src]
pub struct Video { /* fields omitted */ }
A Video Buffer (24fps).
Methods
impl Video
[src]
impl Video
pub fn new(format: ColorChannels, wh: (u16, u16), n_frames: u32) -> Self
[src]
pub fn new(format: ColorChannels, wh: (u16, u16), n_frames: u32) -> Self
Create a new video buffer.
pub fn wh(&self) -> (u16, u16)
[src]
pub fn wh(&self) -> (u16, u16)
Get the width and height of the video.
pub fn format(&self) -> ColorChannels
[src]
pub fn format(&self) -> ColorChannels
Get the video buffer's color format.
pub fn add(&mut self, data: VFrame)
[src]
pub fn add(&mut self, data: VFrame)
Add frame to the buffer.
pub fn len(&self) -> u32
[src]
pub fn len(&self) -> u32
Return the number frames in the buffer.
pub fn pop(&mut self) -> Option<VFrame>
[src]
pub fn pop(&mut self) -> Option<VFrame>
Returns pixels for the next frame on the Queue.
pub fn n_channels(&self) -> usize
[src]
pub fn n_channels(&self) -> usize
Return the number of channels.
pub fn frames(&self) -> u32
[src]
pub fn frames(&self) -> u32
Return the total number of frames in the video.