ffmpeg.libavutil.cpu

Undocumented in source.

Members

Functions

av_cpu_count
int av_cpu_count()

@return the number of logical CPU cores present.

av_cpu_max_align
size_t av_cpu_max_align()

Get the maximum data alignment that may be required by FFmpeg.

av_force_cpu_flags
void av_force_cpu_flags(int flags)

Disables cpu detection and forces the specified flags. -1 is a special case that disables forcing of specific flags.

av_get_cpu_flags
int av_get_cpu_flags()

Return the flags which specify extensions supported by the CPU. The returned value is affected by av_force_cpu_flags() if that was used before. So av_get_cpu_flags() can easily be used in an application to detect the enabled cpu flags.

av_parse_cpu_caps
int av_parse_cpu_caps(uint* flags, const(char)* s)

Parse CPU caps from a string and update the given AV_CPU_* flags based on that.

av_parse_cpu_flags
int av_parse_cpu_flags(const(char)* s)

Parse CPU flags from a string.

av_set_cpu_flags_mask
void av_set_cpu_flags_mask(int mask)

Set a mask on flags returned by av_get_cpu_flags(). This function is mainly useful for testing. Please use av_force_cpu_flags() and av_get_cpu_flags() instead which are more flexible

Manifest constants

AV_CPU_FLAG_3DNOW
enum AV_CPU_FLAG_3DNOW;

< AMD 3DNOW

AV_CPU_FLAG_3DNOWEXT
enum AV_CPU_FLAG_3DNOWEXT;

< than regular MMX/SSE (e.g. Core1) +////< AMD 3DNowEx

AV_CPU_FLAG_AESNI
enum AV_CPU_FLAG_AESNI;

< Advanced Encryption Standard functions

AV_CPU_FLAG_ALTIVEC
enum AV_CPU_FLAG_ALTIVEC;

< standard

AV_CPU_FLAG_ARMV5TE
enum AV_CPU_FLAG_ARMV5TE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_ARMV6
enum AV_CPU_FLAG_ARMV6;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_ARMV6T2
enum AV_CPU_FLAG_ARMV6T2;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_ARMV8
enum AV_CPU_FLAG_ARMV8;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_ATOM
enum AV_CPU_FLAG_ATOM;

< Atom processor, some SSSE3 instructions are slower

AV_CPU_FLAG_AVX
enum AV_CPU_FLAG_AVX;

< AVX functions: requires OS support even if YMM registers aren't used

AV_CPU_FLAG_AVX2
enum AV_CPU_FLAG_AVX2;

< AVX2 functions: requires OS support even if YMM registers aren't used

AV_CPU_FLAG_AVX512
enum AV_CPU_FLAG_AVX512;

< AVX-512 functions: requires OS support even if YMM/ZMM registers aren't used

AV_CPU_FLAG_AVXSLOW
enum AV_CPU_FLAG_AVXSLOW;

< AVX supported, but slow when using YMM registers (e.g. Bulldozer)

AV_CPU_FLAG_BMI1
enum AV_CPU_FLAG_BMI1;

< Bit Manipulation Instruction Set 1

AV_CPU_FLAG_BMI2
enum AV_CPU_FLAG_BMI2;

< Bit Manipulation Instruction Set 2

AV_CPU_FLAG_CMOV
enum AV_CPU_FLAG_CMOV;

< supports cmov instruction

AV_CPU_FLAG_FMA3
enum AV_CPU_FLAG_FMA3;

< Haswell FMA3 functions

AV_CPU_FLAG_FMA4
enum AV_CPU_FLAG_FMA4;

< Bulldozer FMA4 functions

AV_CPU_FLAG_FORCE
enum AV_CPU_FLAG_FORCE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_MMX
enum AV_CPU_FLAG_MMX;

< standard MMX

AV_CPU_FLAG_MMX2
enum AV_CPU_FLAG_MMX2;

< SSE integer functions or AMD MMX ext

AV_CPU_FLAG_MMXEXT
enum AV_CPU_FLAG_MMXEXT;

< SSE integer functions or AMD MMX ext

AV_CPU_FLAG_NEON
enum AV_CPU_FLAG_NEON;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_POWER8
enum AV_CPU_FLAG_POWER8;

< ISA 2.07

AV_CPU_FLAG_SETEND
enum AV_CPU_FLAG_SETEND;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_SSE
enum AV_CPU_FLAG_SSE;

< SSE functions

AV_CPU_FLAG_SSE2
enum AV_CPU_FLAG_SSE2;

< PIV SSE2 functions

AV_CPU_FLAG_SSE2SLOW
enum AV_CPU_FLAG_SSE2SLOW;

< SSE2 supported, but usually not faster

AV_CPU_FLAG_SSE3
enum AV_CPU_FLAG_SSE3;

< Prescott SSE3 functions

AV_CPU_FLAG_SSE3SLOW
enum AV_CPU_FLAG_SSE3SLOW;

< SSE3 supported, but usually not faster

AV_CPU_FLAG_SSE4
enum AV_CPU_FLAG_SSE4;

< Penryn SSE4.1 functions

AV_CPU_FLAG_SSE42
enum AV_CPU_FLAG_SSE42;

< Nehalem SSE4.2 functions

AV_CPU_FLAG_SSSE3
enum AV_CPU_FLAG_SSSE3;

< than regular MMX/SSE (e.g. Core1) +////< Conroe SSSE3 function

AV_CPU_FLAG_SSSE3SLOW
enum AV_CPU_FLAG_SSSE3SLOW;

< SSSE3 supported, but usually not faster

AV_CPU_FLAG_VFP
enum AV_CPU_FLAG_VFP;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_VFPV3
enum AV_CPU_FLAG_VFPV3;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CPU_FLAG_VFP_VM
enum AV_CPU_FLAG_VFP_VM;

< VFPv2 vector mode, deprecated in ARMv7-A and unavailable in various CPUs implementations

AV_CPU_FLAG_VSX
enum AV_CPU_FLAG_VSX;

< ISA 2.06

AV_CPU_FLAG_XOP
enum AV_CPU_FLAG_XOP;

< Bulldozer XOP functions

Meta