[−][src]Struct lodepng::ffi::CompressSettings
Settings for zlib compression. Tweaking these settings tweaks the balance between speed and compression ratio.
Fields
windowsize: u32
Obsolete. No-op.
minmatch: u16
Compression level 1 (fast) to 9 (best). Use set_level()
instead.
nicematch: u16
Obsolete. No-op.
btype: u8
Obsolete. No-op.
use_lz77: bool
If false, it won't compress at all. Use set_level(0)
lazymatching: bool
Obsolete. No-op.
custom_zlib: custom_compress_callback
use custom zlib encoder instead of built in one (default: None)
custom_deflate: custom_compress_callback
use custom deflate encoder instead of built in one (default: null) if custom_zlib is used, custom_deflate is ignored since only the built in zlib function will call custom_deflate
custom_context: *const c_void
optional custom settings for custom functions
Implementations
impl CompressSettings
[src]
pub fn set_level(&mut self, level: u8)
[src]
0 (none), 1 (fast) to 9 (best)
pub fn level(&self) -> u8
[src]
zlib compression level
impl CompressSettings
[src]
pub fn new() -> CompressSettings
[src]
Default compression settings
Trait Implementations
impl Clone for CompressSettings
[src]
pub fn clone(&self) -> CompressSettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CompressSettings
[src]
impl Default for CompressSettings
[src]
impl Sync for CompressSettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompressSettings
[src]
impl !Send for CompressSettings
[src]
impl Unpin for CompressSettings
[src]
impl UnwindSafe for CompressSettings
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,