From 4d851f8dcf951d380e935ef14ae01db813adfc2d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 4 Mar 2012 16:08:48 +0100 Subject: cpu: add av_set_cpu_flags_mask(). --- libavutil/cpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil/cpu.h') 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); -- cgit v1.2.3