Searched refs:nb_cpus (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/libavutil/ |
D | cpu.c | 279 int nb_cpus = 1; in av_cpu_count() local 289 nb_cpus = CPU_COUNT(&cpuset); in av_cpu_count() 293 nb_cpus = av_popcount64(proc_aff); in av_cpu_count() 296 size_t len = sizeof(nb_cpus); in av_cpu_count() 298 if (sysctl(mib, 2, &nb_cpus, &len, NULL, 0) == -1) in av_cpu_count() 299 nb_cpus = 0; in av_cpu_count() 302 size_t len = sizeof(nb_cpus); in av_cpu_count() 304 if (sysctl(mib, 2, &nb_cpus, &len, NULL, 0) == -1) in av_cpu_count() 305 nb_cpus = 0; in av_cpu_count() 307 nb_cpus = sysconf(_SC_NPROC_ONLN); in av_cpu_count() [all …]
|
D | slicethread.c | 104 int nb_cpus = av_cpu_count(); in avpriv_slicethread_create() local 105 if (nb_cpus > 1) in avpriv_slicethread_create() 106 nb_threads = nb_cpus + 1; in avpriv_slicethread_create()
|
/third_party/ffmpeg/libavcodec/ |
D | pthread_slice.c | 142 int nb_cpus = av_cpu_count(); in ff_slice_thread_init() local 144 nb_cpus = FFMIN(nb_cpus, (avctx->height+15)/16); in ff_slice_thread_init() 146 if (nb_cpus > 1) in ff_slice_thread_init() 147 thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS); in ff_slice_thread_init()
|
D | pthread_frame.c | 922 int nb_cpus = av_cpu_count(); in ff_frame_thread_init() local 924 if (nb_cpus > 1) in ff_frame_thread_init() 925 thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS); in ff_frame_thread_init()
|