Struct gifski::c_api::GifskiSettings[][src]

#[repr(C)]pub struct GifskiSettings {
    pub width: u32,
    pub height: u32,
    pub quality: u8,
    pub fast: bool,
    pub repeat: i16,
}

Settings for creating a new encoder instance. See gifski_new

Fields

width: u32

Resize to max this width if non-0.

height: u32

Resize to max this height if width is non-0. Note that aspect ratio is not preserved.

quality: u8

1-100, but useful range is 50-100. Recommended to set to 90.

fast: bool

Lower quality, but faster encode.

repeat: i16

If negative, looping is disabled. The number of times the sequence is repeated. 0 to loop forever.

Trait Implementations

impl Clone for GifskiSettings[src]

impl Copy for GifskiSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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.