From 3527a7393392b80e1780cbb24b7d8c91a51a7a18 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 25 Apr 2012 18:06:51 +0100 Subject: 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 --- libavutil/cpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavutil/cpu.h') 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); -- cgit v1.2.3