Struct libvips::ops::TonelutOptions

source ·
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: i32

in_max: i32 -> Size of LUT to build min: 1, max: 65535, default: 32767

§out_max: i32

out_max: i32 -> Maximum value in output LUT min: 1, max: 65535, default: 32767

§lb: f64

lb: f64 -> Lowest value in output min: 0, max: 100, default: 0

§lw: f64

lw: f64 -> Highest value in output min: 0, max: 100, default: 100

§ps: f64

ps: f64 -> Position of shadow min: 0, max: 1, default: 0.2

§pm: f64

pm: f64 -> Position of mid-tones min: 0, max: 1, default: 0.5

§ph: f64

ph: f64 -> Position of highlights min: 0, max: 1, default: 0.8

§s: f64

s: f64 -> Adjust shadows by this much min: -30, max: 30, default: 0

§m: f64

m: f64 -> Adjust mid-tones by this much min: -30, max: 30, default: 0

§h: f64

h: f64 -> Adjust highlights by this much min: -30, max: 30, default: 0

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.