Struct rscam::Camera
[−]
[src]
pub struct Camera { /* fields omitted */ }
Methods
impl Camera
[src]
fn new(device: &str) -> Result<Camera>
fn formats(&self) -> FormatIter
Get detailed info about the available formats.
fn resolutions(&self, format: &[u8]) -> Result<ResolutionInfo>
Get detailed info about the available resolutions.
fn intervals(
&self,
format: &[u8],
resolution: (u32, u32)
) -> Result<IntervalInfo>
&self,
format: &[u8],
resolution: (u32, u32)
) -> Result<IntervalInfo>
Get detailed info about the available intervals.
fn controls(&self) -> ControlIter
Get info about all controls.
fn controls_by_class(&self, class: u32) -> ControlIter
Get info about available controls by class (see CLASS_*
constants).
fn get_control(&self, id: u32) -> Result<Control>
Get info about the control by id.
fn set_control<T: Settable>(&self, id: u32, value: T) -> Result<()>
Set value of the control.
fn start(&mut self, config: &Config) -> Result<()>
fn capture(&self) -> Result<Frame>
Blocking request of frame.
It dequeues buffer from a driver, which will be enqueueed after destructing Frame
.
Panics
If called w/o streaming.