PresetParameters

Struct PresetParameters 

Source
pub struct PresetParameters {
Show 70 fields pub f_rating: f32, pub f_gamma_adj: f32, pub f_decay: f32, pub f_video_echo_zoom: f32, pub f_video_echo_alpha: f32, pub n_video_echo_orientation: i32, pub n_wave_mode: i32, pub b_additive_waves: bool, pub b_wave_dots: bool, pub b_wave_thick: bool, pub b_mod_wave_alpha_by_volume: bool, pub b_maximize_wave_color: bool, pub f_wave_alpha: f32, pub f_wave_scale: f32, pub f_wave_smoothing: f32, pub f_wave_param: f32, pub f_mod_wave_alpha_start: f32, pub f_mod_wave_alpha_end: f32, pub b_tex_wrap: bool, pub b_darken_center: bool, pub b_red_blue_stereo: bool, pub b_brighten: bool, pub b_darken: bool, pub b_solarize: bool, pub b_invert: bool, pub f_warp_anim_speed: f32, pub f_warp_scale: f32, pub f_zoom_exponent: f32, pub f_shader: f32, pub zoom: f32, pub rot: f32, pub cx: f32, pub cy: f32, pub dx: f32, pub dy: f32, pub warp: f32, pub sx: f32, pub sy: f32, pub wave_r: f32, pub wave_g: f32, pub wave_b: f32, pub wave_x: f32, pub wave_y: f32, pub ob_size: f32, pub ob_r: f32, pub ob_g: f32, pub ob_b: f32, pub ob_a: f32, pub ib_size: f32, pub ib_r: f32, pub ib_g: f32, pub ib_b: f32, pub ib_a: f32, pub n_motion_vectors_x: f32, pub n_motion_vectors_y: f32, pub mv_dx: f32, pub mv_dy: f32, pub mv_l: f32, pub mv_r: f32, pub mv_g: f32, pub mv_b: f32, pub mv_a: f32, pub b1n: f32, pub b2n: f32, pub b3n: f32, pub b1x: f32, pub b2x: f32, pub b3x: f32, pub b1ed: f32, pub extra: HashMap<String, String>,
}
Expand description

Base parameters for a preset (static values).

Fields§

§f_rating: f32§f_gamma_adj: f32§f_decay: f32§f_video_echo_zoom: f32§f_video_echo_alpha: f32§n_video_echo_orientation: i32§n_wave_mode: i32§b_additive_waves: bool§b_wave_dots: bool§b_wave_thick: bool§b_mod_wave_alpha_by_volume: bool§b_maximize_wave_color: bool§f_wave_alpha: f32§f_wave_scale: f32§f_wave_smoothing: f32§f_wave_param: f32§f_mod_wave_alpha_start: f32§f_mod_wave_alpha_end: f32§b_tex_wrap: bool§b_darken_center: bool§b_red_blue_stereo: bool§b_brighten: bool§b_darken: bool§b_solarize: bool§b_invert: bool§f_warp_anim_speed: f32§f_warp_scale: f32§f_zoom_exponent: f32§f_shader: f32§zoom: f32§rot: f32§cx: f32§cy: f32§dx: f32§dy: f32§warp: f32§sx: f32§sy: f32§wave_r: f32§wave_g: f32§wave_b: f32§wave_x: f32§wave_y: f32§ob_size: f32§ob_r: f32§ob_g: f32§ob_b: f32§ob_a: f32§ib_size: f32§ib_r: f32§ib_g: f32§ib_b: f32§ib_a: f32§n_motion_vectors_x: f32§n_motion_vectors_y: f32§mv_dx: f32§mv_dy: f32§mv_l: f32§mv_r: f32§mv_g: f32§mv_b: f32§mv_a: f32§b1n: f32§b2n: f32§b3n: f32§b1x: f32§b2x: f32§b3x: f32§b1ed: f32§extra: HashMap<String, String>

Implementations§

Source§

impl PresetParameters

Source

pub fn zoomexp(&self) -> f32

Source

pub fn decay(&self) -> f32

Source

pub fn gamma(&self) -> f32

Source

pub fn echo_zoom(&self) -> f32

Source

pub fn echo_alpha(&self) -> f32

Source

pub fn wave_mode(&self) -> i32

Source

pub fn wave_a(&self) -> f32

Source

pub fn darken_center(&self) -> bool

Source

pub fn wrap(&self) -> bool

Source

pub fn invert(&self) -> bool

Source

pub fn brighten(&self) -> bool

Source

pub fn darken(&self) -> bool

Source

pub fn solarize(&self) -> bool

Trait Implementations§

Source§

impl Clone for PresetParameters

Source§

fn clone(&self) -> PresetParameters

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PresetParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PresetParameters

Source§

fn default() -> PresetParameters

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PresetParameters

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PresetParameters

Source§

fn eq(&self, other: &PresetParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PresetParameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PresetParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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