[][src]Struct os_balloon::config::Picture

pub struct Picture {
    height: u16,
    width: u16,
    rotation: Option<u16>,
    quality: u8,
    exif: Option<bool>,
    raw: Option<bool>,
    exposure: Option<Exposure>,
    brightness: Option<u8>,
    contrast: Option<i8>,
    sharpness: Option<i8>,
    saturation: Option<i8>,
    iso: Option<u16>,
    ev: Option<i8>,
    white_balance: Option<WhiteBalance>,
    interval: u32,
    repeat: Option<u32>,
    first_timeout: u32,
}

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_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_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for Picture

impl Sync for Picture

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any
[src]