[−][src]Struct os_balloon::config::Picture
Picture configuration structure.
Fields
height: u16
Height of the picture, in px.
width: u16
Width of the picture, in px.
rotation: Option<u16>
Rotation of the camera, in degrees (°).
quality: u8
Quality of the picture, in px.
exif: Option<bool>
Wether to add EXIF data to pictures or not.
raw: Option<bool>
Wether to save the raw sensor data as JPG metadata.
exposure: Option<Exposure>
Exposure configuration.
brightness: Option<u8>
Brightness correction.
contrast: Option<i8>
Contrast correction.
sharpness: Option<i8>
Sharpness configuration.
saturation: Option<i8>
Saturation configuration.
iso: Option<u16>
ISO for the image.
ev: Option<i8>
EV correction configuration.
white_balance: Option<WhiteBalance>
White balance configuration.
interval: u32
Interval between pictures during flight.
repeat: Option<u32>
Repeat each picture after these seconds (for issues with probe movement).
first_timeout: u32
Timeout for first picture after launch, in seconds.
Methods
impl Picture
[src]
pub fn height(self) -> u16
[src]
Gets the configured picture height for the camera, in pixels.
pub fn width(self) -> u16
[src]
Gets the configured picture width for the camera, in pixels.
pub fn rotation(self) -> Option<u16>
[src]
Gets the configured picture rotation for the camera, in degrees (°).
pub fn quality(self) -> u8
[src]
Gets the configured picture quality for the camera.
pub fn exif(self) -> bool
[src]
Gets wether the camera should add available EXIF information to pictures.
pub fn raw(self) -> bool
[src]
Gets wether the camera should add raw sensor data to pictures as JPEG metadata.
pub fn exposure(self) -> Option<Exposure>
[src]
Gets the configured exposure for pictures.
pub fn brightness(self) -> Option<u8>
[src]
Gets the configured brightness for pictures.
pub fn contrast(self) -> Option<i8>
[src]
Gets the configured contrast for pictures.
pub fn sharpness(self) -> Option<i8>
[src]
Gets the configured sharpness for pictures.
pub fn saturation(self) -> Option<i8>
[src]
Gets the configured saturation for pictures.
pub fn iso(self) -> Option<u16>
[src]
Gets the configured ISO for pictures.
pub fn ev(self) -> Option<i8>
[src]
Gets the configured EV compensation for pictures.
pub fn white_balance(self) -> Option<WhiteBalance>
[src]
Gets the configured automatic white balance for pictures.
pub fn interval(self) -> u32
[src]
Gets the interval between pictures during flight.
pub fn repeat(self) -> Option<u32>
[src]
Gets the timeout for repeated picture.
Repeat each picture after these seconds (for issues with probe movement).
pub fn first_timeout(self) -> u32
[src]
Gets the timeout for first picture after launch, in seconds.
Trait Implementations
impl Clone for Picture
[src]
fn clone(&self) -> Picture
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Picture
[src]
impl Debug for Picture
[src]
impl<'de> Deserialize<'de> for Picture
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
fn deserialize_in_place<D>(
deserializer: D,
place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D,
place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserializes a value into self
from the given Deserializer. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
[src]
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
[src]
T: Any,