pub struct Video { /* private fields */ }
Expand description
A Video Buffer (24fps).
Implementations§
source§impl Video
impl Video
sourcepub fn new(format: ColorChannels, wh: (u16, u16), n_frames: u32) -> Self
pub fn new(format: ColorChannels, wh: (u16, u16), n_frames: u32) -> Self
Create a new video buffer.
sourcepub fn format(&self) -> ColorChannels
pub fn format(&self) -> ColorChannels
Get the video buffer’s color format.
sourcepub fn n_channels(&self) -> usize
pub fn n_channels(&self) -> usize
Return the number of channels.