diff options
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); |