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 4a86e6e9b3..a72b008618 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -79,6 +79,13 @@ attribute_deprecated void av_set_cpu_flags_mask(int mask); */ int av_parse_cpu_flags(const char *s); +/** + * Parse CPU caps from a string and update the given AV_CPU_* flags based on that. + * + * @return negative on error. + */ +int av_parse_cpu_caps(unsigned *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); |