summaryrefslogtreecommitdiff
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@mail.de>2021-06-06 15:15:00 +0200
committerThilo Borgmann <thilo.borgmann@mail.de>2021-07-16 10:06:10 +0200
commit87951dcbe775b349a671b9ac2e6ac5c38aee0e79 (patch)
tree7e0b5e7990907bf96b6db25e498f6e03307cdd1e /libavutil/cpu.h
parentb7266302a40ba48fea7a5644f08623159b3dcac7 (diff)
lavu/cpu.c: Add av_force_cpu_count() to override auto-detection.
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r--libavutil/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index b555422dae..c069076439 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -99,6 +99,12 @@ int av_parse_cpu_caps(unsigned *flags, const char *s);
int av_cpu_count(void);
/**
+ * Overrides cpu count detection and forces the specified count.
+ * Count < 1 disables forcing of specific count.
+ */
+void av_force_cpu_count(int count);
+
+/**
* Get the maximum data alignment that may be required by FFmpeg.
*
* Note that this is affected by the build configuration and the CPU flags mask,