From 2a6eaeaa85d17b27ee0dd449183ec197c35c9675 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 23 May 2013 08:59:07 +0200 Subject: Move get_logical_cpus() from lavc/pthread to lavu/cpu. It will be useful in lavfi, and could conceivably be useful to the user applications as well. --- libavutil/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavutil/cpu.h') 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); -- cgit v1.2.3