pub struct TonelutOptions {
pub in_max: i32,
pub out_max: i32,
pub lb: f64,
pub lw: f64,
pub ps: f64,
pub pm: f64,
pub ph: f64,
pub s: f64,
pub m: f64,
pub h: f64,
}Expand description
Options for tonelut operation
Fields§
§in_max: i32in_max: i32 -> Size of LUT to build
min: 1, max: 65535, default: 32767
out_max: i32out_max: i32 -> Maximum value in output LUT
min: 1, max: 65535, default: 32767
lb: f64lb: f64 -> Lowest value in output
min: 0, max: 100, default: 0
lw: f64lw: f64 -> Highest value in output
min: 0, max: 100, default: 100
ps: f64ps: f64 -> Position of shadow
min: 0, max: 1, default: 0.2
pm: f64pm: f64 -> Position of mid-tones
min: 0, max: 1, default: 0.5
ph: f64ph: f64 -> Position of highlights
min: 0, max: 1, default: 0.8
s: f64s: f64 -> Adjust shadows by this much
min: -30, max: 30, default: 0
m: f64m: f64 -> Adjust mid-tones by this much
min: -30, max: 30, default: 0
h: f64h: f64 -> Adjust highlights by this much
min: -30, max: 30, default: 0
Trait Implementations§
Source§impl Clone for TonelutOptions
impl Clone for TonelutOptions
Source§fn clone(&self) -> TonelutOptions
fn clone(&self) -> TonelutOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TonelutOptions
impl Debug for TonelutOptions
Auto Trait Implementations§
impl Freeze for TonelutOptions
impl RefUnwindSafe for TonelutOptions
impl Send for TonelutOptions
impl Sync for TonelutOptions
impl Unpin for TonelutOptions
impl UnwindSafe for TonelutOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more