Struct DecoderFlags

Source
pub struct DecoderFlags {
Show 14 fields inflate_confirm_adler: bool, png_confirm_crc: bool, jpg_error_on_non_conformance: bool, zune_use_unsafe: bool, zune_use_sse2: bool, zune_use_sse3: bool, zune_use_sse41: bool, zune_use_avx: bool, zune_use_avx2: bool, png_add_alpha_channel: bool, zune_use_neon: bool, png_strip_16_bit_to_8_bit: bool, png_decode_animated: bool, jxl_decode_animated: bool,
}
Expand description

Decoder options that are flags

NOTE: When you extend this, add true or false to all options above that return a DecoderFlag

Fields§

§inflate_confirm_adler: bool

Whether the decoder should confirm and report adler mismatch

§png_confirm_crc: bool

Whether the PNG decoder should confirm crc

§jpg_error_on_non_conformance: bool

Whether the png decoder should error out on image non-conformance

§zune_use_unsafe: bool

Whether the decoder should use unsafe platform specific intrinsics

This will also shut down platform specific intrinsics (ZUNE_USE_{EXT}) value

§zune_use_sse2: bool

Whether we should use SSE2.

This should be enabled for all x64 platforms but can be turned off if ZUNE_USE_UNSAFE is false

§zune_use_sse3: bool

Whether we should use SSE3 instructions where possible.

§zune_use_sse41: bool

Whether we should use sse4.1 instructions where possible.

§zune_use_avx: bool

Whether we should use avx instructions where possible.

§zune_use_avx2: bool

Whether we should use avx2 instructions where possible.

§png_add_alpha_channel: bool

Whether the png decoder should add alpha channel where possible.

§zune_use_neon: bool

Whether we should use neon instructions where possible.

§png_strip_16_bit_to_8_bit: bool

Whether the png decoder should strip 16 bit to 8 bit

§png_decode_animated: bool

Decode all frames for an animated images

§jxl_decode_animated: bool

Trait Implementations§

Source§

impl Clone for DecoderFlags

Source§

fn clone(&self) -> DecoderFlags

Returns a duplicate 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 DecoderFlags

Source§

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

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

impl Default for DecoderFlags

Source§

fn default() -> DecoderFlags

Returns the “default value” for a type. Read more
Source§

impl Copy for DecoderFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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

Source§

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

Source§

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.