pub struct Features {
pub sse2: bool,
pub sse3: bool,
pub slow_ssse3: bool,
pub sse4_1: bool,
pub avx: bool,
pub avx2: bool,
pub neon: bool,
pub query_neon: bool,
}Expand description
The CPU features that the dispatch functions select the SIMD variants by
(ADR 0008). Each x86 flag answers as the Init functions’ queries do,
through the query behind the C ABI’s VP8GetCPUInfo pointer: false for a
NULL pointer (-noasm), cpuid for the translation’s own query, and the
caller’s function for a query it installed. neon is true on 64-bit ARM
whatever the pointer says, where upstream compiles the NEON code in and
omits the C code it replaces (WEBP_NEON_OMIT_C_CODE).
Fields§
§sse2: boolVP8GetCPUInfo(kSSE2).
sse3: boolVP8GetCPUInfo(kSSE3).
slow_ssse3: boolVP8GetCPUInfo(kSlowSSSE3).
sse4_1: boolVP8GetCPUInfo(kSSE4_1).
avx: boolVP8GetCPUInfo(kAVX).
avx2: boolVP8GetCPUInfo(kAVX2).
neon: boolNEON, always on 64-bit ARM.
query_neon: boolVP8GetCPUInfo(kNEON), false for a NULL pointer. VP8EncDspCostInit
(cost.c) is the one Init function that selects its NEON variants by
the query alone, without WEBP_NEON_OMIT_C_CODE, so -noasm turns them
off; every other selection uses Features::neon (WP20, ADR 0008).