[FFmpeg-devel] [PATCH] lavu/cpu: Use av_cpu_ prefix

Thilo Borgmann thilo.borgmann at mail.de
Tue Jul 20 00:16:16 EEST 2021


Hi,

$subject for the new force cpu count function.

Thanks,
Thilo
-------------- next part --------------
From aedfcef85560c38b32dc898c32caa4c42fca97db Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at mail.de>
Date: Mon, 19 Jul 2021 23:11:58 +0200
Subject: [PATCH] lavu/cpu: Use av_cpu_ prefix

---
 fftools/cmdutils.c | 2 +-
 libavutil/cpu.c    | 2 +-
 libavutil/cpu.h    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 6e875104fd..18bcfb065a 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -874,7 +874,7 @@ int opt_cpucount(void *optctx, const char *opt, const char *arg)
     ret = av_opt_eval_int(&pclass, opts, arg, &count);
 
     if (!ret) {
-        av_force_cpu_count(count);
+        av_cpu_force_count(count);
     }
 
     return ret;
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index eae1485f36..2c40d40239 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -236,7 +236,7 @@ int av_cpu_count(void)
     return nb_cpus;
 }
 
-void av_force_cpu_count(int count){
+void av_cpu_force_count(int count){
     atomic_store_explicit(&cpu_count, count, memory_order_relaxed);
 }
 
diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index c069076439..afea0640b4 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -102,7 +102,7 @@ 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);
+void av_cpu_force_count(int count);
 
 /**
  * Get the maximum data alignment that may be required by FFmpeg.
-- 
2.20.1 (Apple Git-117)



More information about the ffmpeg-devel mailing list