Home
last modified time | relevance | path

Searched refs:nb_cpus (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/libavutil/
Dcpu.c199 int nb_cpus = 1; in av_cpu_count() local
210 nb_cpus = CPU_COUNT(&cpuset); in av_cpu_count()
214 nb_cpus = av_popcount64(proc_aff); in av_cpu_count()
217 size_t len = sizeof(nb_cpus); in av_cpu_count()
219 if (sysctl(mib, 2, &nb_cpus, &len, NULL, 0) == -1) in av_cpu_count()
220 nb_cpus = 0; in av_cpu_count()
223 size_t len = sizeof(nb_cpus); in av_cpu_count()
225 if (sysctl(mib, 2, &nb_cpus, &len, NULL, 0) == -1) in av_cpu_count()
226 nb_cpus = 0; in av_cpu_count()
228 nb_cpus = sysconf(_SC_NPROC_ONLN); in av_cpu_count()
[all …]
Dslicethread.c106 int nb_cpus = av_cpu_count(); in avpriv_slicethread_create() local
107 if (nb_cpus > 1) in avpriv_slicethread_create()
108 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
/third_party/ffmpeg/libavcodec/
Dpthread_slice.c147 int nb_cpus = av_cpu_count(); in ff_slice_thread_init() local
149 nb_cpus = FFMIN(nb_cpus, (avctx->height+15)/16); in ff_slice_thread_init()
151 if (nb_cpus > 1) in ff_slice_thread_init()
152 thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS); in ff_slice_thread_init()
Dpthread_frame.c873 int nb_cpus = av_cpu_count(); in ff_frame_thread_init() local
875 if (nb_cpus > 1) in ff_frame_thread_init()
876 thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS); in ff_frame_thread_init()