summaryrefslogtreecommitdiff
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-03-04 16:08:48 +0100
committerAnton Khirnov <anton@khirnov.net>2012-03-06 15:02:28 +0100
commit4d851f8dcf951d380e935ef14ae01db813adfc2d (patch)
treebd5610a073c4d4292b6caa6b9ebe840bad168eac /libavutil/cpu.h
parent338978a7c17d303672bcf5e035e54da362274a18 (diff)
cpu: add av_set_cpu_flags_mask().
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r--libavutil/cpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index df7bf4421a..361fe9866a 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -48,6 +48,14 @@
*/
int av_get_cpu_flags(void);
+/**
+ * Set a mask on flags returned by av_get_cpu_flags().
+ * This function is mainly useful for testing.
+ *
+ * @warning this function is not thread safe.
+ */
+void av_set_cpu_flags_mask(int mask);
+
/* The following CPU-specific functions shall not be called directly. */
int ff_get_cpu_flags_arm(void);
int ff_get_cpu_flags_ppc(void);