#[repr(C)]
pub struct GifskiSettings {
pub width: u32,
pub height: u32,
pub quality: u8,
pub once: bool,
pub fast: bool,
}
Settings for creating a new encoder instance. See gifski_new
Resize to max this width if non-0
Resize to max this height if width is non-0. Note that aspect ratio is not preserved.
1-100, but useful range is 50-100. Recommended to set to 100.
If true, looping is disabled. Recommended false (looping on).
Lower quality, but faster encode.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Sets value
as a parameter of self
.