[−][src]Struct arducam_mipicamera::Camera
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]
&mut self,
width: i32,
height: i32
) -> Result<(i32, i32), ()>
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]
&mut self,
timeout: i32,
encoding: Encoding,
quality: i32
) -> Result<Buffer, ()>
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]
&mut self,
enable: bool
) -> Result<(), ()>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,