lavu/cpu: Use av_cpu_ prefix

pull/359/head
Thilo Borgmann 3 years ago
parent cd7043131f
commit c1bf56a526
  1. 3
      doc/APIchanges
  2. 2
      fftools/cmdutils.c
  3. 3
      libavutil/cpu.c
  4. 2
      libavutil/cpu.h
  5. 4
      libavutil/version.h

@ -13,6 +13,9 @@ libavutil: 2021-04-27
API changes, most recent first:
2021-07-19 - xxxxxxxxxx - lavu 57.1.100 - cpu.h
Add av_cpu_force_count()
2021-06-17 - xxxxxxxxxx - lavc 59.2.100 - packet.h
Add AV_PKT_DATA_DYNAMIC_HDR10_PLUS

@ -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;

@ -236,7 +236,8 @@ 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);
}

@ -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.

@ -79,8 +79,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 57
#define LIBAVUTIL_VERSION_MINOR 0
#define LIBAVUTIL_VERSION_MICRO 101
#define LIBAVUTIL_VERSION_MINOR 1
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \

Loading…
Cancel
Save