summaryrefslogtreecommitdiff
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-26 23:21:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-30 18:31:06 +0200
commiteadac34c80cf4c58279b8fdfa9b6332683804da7 (patch)
treee760cdbccfd26091606202317a73d52dbc065f4c /libavutil/cpu.h
parente738811cebf4b5c1331eb4611b4a8239787f3b33 (diff)
downloadffmpeg-eadac34c80cf4c58279b8fdfa9b6332683804da7.tar.gz
cmdutils/avutil: Move cpu caps parse code into av_parse_cpu_caps()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r--libavutil/cpu.h7
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);