Skip to content

ref_vfcallback_isMMXEnabled

shekh edited this page Apr 15, 2018 · 1 revision

VirtualDub Plugin SDK 1.2

isMMXEnabled video filter callback

isMMXEnabled

Queries whether optimizations using the CPU's MMX unit are enabled.

bool __cdecl isMMXEnabled();

Thread safety

This method is not thread-safe.

Exceptions

This function must not throw exceptions (see Except()).

Return value

True if MMX optimizations should be enabled, false otherwise.

Remarks

This is equivalent to getCPUFlags() & CPUF_SUPPORTS_MMX.

Filters are free to ignore this function and use their own detection logic for whether MMX is present; this function simply allows the CPU detection and override logic in the host to be reused. A filter should still check for MMX support for executing such instructions, however, because otherwise the result will be a crash.


Copyright (C) 2007-2012 Avery Lee.

Clone this wiki locally