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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)