[][src]Struct arducam_mipicamera::Camera

pub struct Camera { /* fields omitted */ }

Interface to a camera.

Implementations

impl Camera[src]

pub fn init(interface: Option<CameraInterface>) -> Result<Self, ()>[src]

Initialize a camera.

Optionally, specific interface settings can be given.

pub fn set_resolution(
    &mut self,
    width: i32,
    height: i32
) -> Result<(i32, i32), ()>
[src]

Set the output resolution.

pub fn set_mode(&mut self, mode: i32) -> Result<(), ()>[src]

Set the mode of the sensor.

pub fn get_format(&mut self) -> Result<Format, ()>[src]

Get the current output format.

pub fn capture(
    &mut self,
    timeout: i32,
    encoding: Encoding,
    quality: i32
) -> Result<Buffer, ()>
[src]

Capture a single frame.

pub fn reset_control(&mut self, ctrl_id: i32) -> Result<(), ()>[src]

Set a camera control to default value.

pub fn set_control(&mut self, ctrl_id: i32, value: i32) -> Result<(), ()>[src]

Set a camera control to the specified value.

pub fn get_control(&mut self, ctrl_id: i32) -> Result<i32, ()>[src]

Read the current value of a camera control.

pub fn arducam_software_auto_exposure(&mut self, enable: bool) -> Result<(), ()>[src]

Enable or disable software auto exposure.

pub fn arducam_software_auto_white_balance(
    &mut self,
    enable: bool
) -> Result<(), ()>
[src]

Enable or disable software auto white balance.

pub fn raw_pointer(&self) -> CameraInstance[src]

The raw pointer to the camera instance, as used by the C interface.

Trait Implementations

impl Drop for Camera[src]

Auto Trait Implementations

impl RefUnwindSafe for Camera

impl !Send for Camera

impl !Sync for Camera

impl Unpin for Camera

impl UnwindSafe for Camera

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.