summaryrefslogtreecommitdiff
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
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);