Struct libwebp_sys::WebPConfig

source ·
#[repr(C)]
pub struct WebPConfig {
Show 29 fields pub lossless: c_int, pub quality: c_float, pub method: c_int, pub image_hint: WebPImageHint, pub target_size: c_int, pub target_PSNR: c_float, pub segments: c_int, pub sns_strength: c_int, pub filter_strength: c_int, pub filter_sharpness: c_int, pub filter_type: c_int, pub autofilter: c_int, pub alpha_compression: c_int, pub alpha_filtering: c_int, pub alpha_quality: c_int, pub pass: c_int, pub show_compressed: c_int, pub preprocessing: c_int, pub partitions: c_int, pub partition_limit: c_int, pub emulate_jpeg_size: c_int, pub thread_level: c_int, pub low_memory: c_int, pub near_lossless: c_int, pub exact: c_int, pub use_delta_palette: c_int, pub use_sharp_yuv: c_int, pub qmin: c_int, pub qmax: c_int,
}

Fields§

§lossless: c_int§quality: c_float§method: c_int§image_hint: WebPImageHint§target_size: c_int§target_PSNR: c_float§segments: c_int§sns_strength: c_int§filter_strength: c_int§filter_sharpness: c_int§filter_type: c_int§autofilter: c_int§alpha_compression: c_int§alpha_filtering: c_int§alpha_quality: c_int§pass: c_int§show_compressed: c_int§preprocessing: c_int§partitions: c_int§partition_limit: c_int§emulate_jpeg_size: c_int§thread_level: c_int§low_memory: c_int§near_lossless: c_int
Available on crate feature 0_5 only.
§exact: c_int
Available on crate feature 0_5 only.
§use_delta_palette: c_int
Available on crate feature 0_6 only.
§use_sharp_yuv: c_int
Available on crate feature 0_6 only.
§qmin: c_int
Available on crate feature 1_2 only.
§qmax: c_int
Available on crate feature 1_2 only.

Trait Implementations§

source§

impl Clone for WebPConfig

source§

fn clone(&self) -> WebPConfig

Returns a copy 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 WebPConfig

source§

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

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

impl Copy for WebPConfig

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.