diff options
author | Mans Rullgard <mans@mansr.com> | 2012-04-25 18:06:51 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-04-25 23:19:40 +0100 |
commit | 3527a7393392b80e1780cbb24b7d8c91a51a7a18 (patch) | |
tree | 0998bec7d9e36a785627f4fab7c2ba49fa1aef1f /libavutil/cpu.h | |
parent | 3d11c2d76dd8aefca66de20328985dd30d7958f9 (diff) | |
download | ffmpeg-3527a7393392b80e1780cbb24b7d8c91a51a7a18.tar.gz |
avutil: add av_parse_cpu_flags() function
This moves the cpu flag parsing code from avconv to avutil so
it can be accessed elsewhere.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r-- | libavutil/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h index 0c0b1de8f0..15c0088b7f 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -62,6 +62,13 @@ int av_get_cpu_flags(void); */ void av_set_cpu_flags_mask(int mask); +/** + * Parse CPU flags from a string. + * + * @return a combination of AV_CPU_* flags, negative on error. + */ +int av_parse_cpu_flags(const char *s); + /* The following CPU-specific functions shall not be called directly. */ int ff_get_cpu_flags_arm(void); int ff_get_cpu_flags_ppc(void); |