diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-23 08:59:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-24 09:28:00 +0200 |
commit | 2a6eaeaa85d17b27ee0dd449183ec197c35c9675 (patch) | |
tree | fe70d509dde284b0b625465ca6e81f4d72a30c4b /libavutil/cpu.h | |
parent | 90f9a5830b5d332de7ebb1ab45589f1870cbd65d (diff) | |
download | ffmpeg-2a6eaeaa85d17b27ee0dd449183ec197c35c9675.tar.gz |
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.
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); |