Enum png::AdaptiveFilterType
source · #[repr(u8)]pub enum AdaptiveFilterType {
Adaptive = 0,
NonAdaptive = 1,
}
Expand description
Adaptive filtering tries every possible filter for each row and uses a heuristic to select the best one. This improves compression ratio, but makes encoding slightly slower.
It is recommended to use Adaptive
whenever you care about compression ratio.
Filtering is quite cheap compared to other parts of encoding, but can contribute
to the compression ratio significantly.
NonAdaptive
filtering is the default.
Variants§
Trait Implementations§
source§impl Clone for AdaptiveFilterType
impl Clone for AdaptiveFilterType
source§fn clone(&self) -> AdaptiveFilterType
fn clone(&self) -> AdaptiveFilterType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AdaptiveFilterType
impl Debug for AdaptiveFilterType
source§impl Default for AdaptiveFilterType
impl Default for AdaptiveFilterType
source§impl PartialEq for AdaptiveFilterType
impl PartialEq for AdaptiveFilterType
source§fn eq(&self, other: &AdaptiveFilterType) -> bool
fn eq(&self, other: &AdaptiveFilterType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AdaptiveFilterType
impl Eq for AdaptiveFilterType
impl StructuralPartialEq for AdaptiveFilterType
Auto Trait Implementations§
impl Freeze for AdaptiveFilterType
impl RefUnwindSafe for AdaptiveFilterType
impl Send for AdaptiveFilterType
impl Sync for AdaptiveFilterType
impl Unpin for AdaptiveFilterType
impl UnwindSafe for AdaptiveFilterType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more