pub struct Device { /* private fields */ }
Expand description
Video device
Implementations§
Source§impl Device
impl Device
Sourcepub fn capabilities(&self) -> Result<Capability>
pub fn capabilities(&self) -> Result<Capability>
Get capabilities
Sourcepub fn control_items(&self, control: &Control) -> Option<MenuItems<'_>>
pub fn control_items(&self, control: &Control) -> Option<MenuItems<'_>>
Get control menu items
Sourcepub fn formats(&self, type_: BufferType) -> FmtDescs<'_> ⓘ
pub fn formats(&self, type_: BufferType) -> FmtDescs<'_> ⓘ
Get supported formats
Sourcepub fn format(&self, type_: BufferType) -> Result<Format>
pub fn format(&self, type_: BufferType) -> Result<Format>
Get current format
Sourcepub fn get_format(&self, fmt: &mut Format) -> Result<()>
pub fn get_format(&self, fmt: &mut Format) -> Result<()>
Get current format
Sourcepub fn set_format(&self, fmt: &mut Format) -> Result<()>
pub fn set_format(&self, fmt: &mut Format) -> Result<()>
Set current format
Sourcepub fn try_format(&self, fmt: &mut Format) -> Result<()>
pub fn try_format(&self, fmt: &mut Format) -> Result<()>
Try format without set it
Sourcepub fn intervals(
&self,
pixel_format: FourCc,
width: u32,
height: u32,
) -> FrmIvals<'_> ⓘ
pub fn intervals( &self, pixel_format: FourCc, width: u32, height: u32, ) -> FrmIvals<'_> ⓘ
Get supported frame intervals
Sourcepub fn param(&self, type_: BufferType) -> Result<StreamParm>
pub fn param(&self, type_: BufferType) -> Result<StreamParm>
Get stream parameters
Sourcepub fn get_param(&self, param: &mut StreamParm) -> Result<()>
pub fn get_param(&self, param: &mut StreamParm) -> Result<()>
Get stream parameters
Sourcepub fn set_param(&self, param: &mut StreamParm) -> Result<()>
pub fn set_param(&self, param: &mut StreamParm) -> Result<()>
Set stream parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more