[][src]Struct os_balloon::config::Video

pub struct Video {
    height: u16,
    width: u16,
    rotation: Option<u16>,
    fps: u8,
    bitrate: u32,
    exposure: Option<Exposure>,
    brightness: Option<u8>,
    contrast: Option<i8>,
    sharpness: Option<i8>,
    saturation: Option<i8>,
    iso: Option<u16>,
    stabilization: Option<bool>,
    ev: Option<i8>,
    white_balance: Option<WhiteBalance>,
}

Video configuration structure.

Fields

height: u16

Height of the video, in px.

width: u16

Width of the video, in px.

rotation: Option<u16>

Rotation of the camera, in degrees (°).

fps: u8

Frames per second (FPS) for the video.

bitrate: u32

Bit rate for the video, in bps (bits per second).

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.

stabilization: Option<bool>

Video stabilization.

ev: Option<i8>

EV correction configuration.

white_balance: Option<WhiteBalance>

White balance configuration.

Methods

impl Video[src]

pub fn height(self) -> u16[src]

Gets the configured video height for the camera, in pixels.

pub fn width(self) -> u16[src]

Gets the configured video 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 fps(self) -> u8[src]

Gets the configured video framerate for the camera, in frames per second.

pub fn bitrate(self) -> u32[src]

Gets the configured bitrate for videos.

pub fn exposure(self) -> Option<Exposure>[src]

Gets the configured exposure for videos.

pub fn brightness(self) -> Option<u8>[src]

Gets the configured brightness for videos.

pub fn contrast(self) -> Option<i8>[src]

Gets the configured contrast for videos.

pub fn sharpness(self) -> Option<i8>[src]

Gets the configured sharpness for videos.

pub fn saturation(self) -> Option<i8>[src]

Gets the configured saturation for videos.

pub fn iso(self) -> Option<u16>[src]

Gets the configured ISO for videos.

pub fn stabilization(self) -> bool[src]

Gets if video stabilization needs to be turned on.

pub fn ev(self) -> Option<i8>[src]

Gets the configured EV compensation for videos.

pub fn white_balance(self) -> Option<WhiteBalance>[src]

Gets the configured automatic white balance for videos.

Trait Implementations

impl Clone for Video[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Video[src]

impl Debug for Video[src]

impl<'de> Deserialize<'de> for Video[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 Video

impl Sync for Video

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]