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
impl Clone for DecoderFlags
Source§fn clone(&self) -> DecoderFlags
fn clone(&self) -> DecoderFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more