diff options
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r-- | libavutil/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h index 4929512c66..f2c9c0f20e 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -76,6 +76,11 @@ void av_set_cpu_flags_mask(int mask); */ int av_parse_cpu_flags(const char *s); +/** + * @return the number of logical CPU cores present. + */ +int av_cpu_count(void); + /* The following CPU-specific functions shall not be called directly. */ int ff_get_cpu_flags_arm(void); int ff_get_cpu_flags_ppc(void); |