Back to FabImage Library website

You are here: Start » Function Reference » System » Configuration » ControlSIMD

ControlSIMD


Header: FIL.h
Namespace: fil
Module: FoundationLite

Enables or disables SIMD cpu extension (e.g. SSE, AVX2, NEON) usage by other filters. This filter does not affect third party components e.g. camera software, OpenCV.

Syntax

C++
C#
 
void fil::ControlSIMD
(
	ftl::Optional<fil::SimdLevel::Type> inLevel,
	fil::SimdLevel::Type& outLevel
)

Parameters

Name Type Default Description
Input value
inLevel Optional<SimdLevel::Type> NIL Maximum simd level to be enabled
Output value
outLevel SimdLevel::Type& Actually adjusted simd level

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.