Re: [FFmpeg-devel] [PATCH 1/7] lavu/cpu: add av_cpu_job_count()

2022-09-22 Thread Ronald S. Bultje
Hi, On Thu, Sep 22, 2022 at 9:49 AM Anton Khirnov wrote: > It is very nonobvious to me that it makes sense to define a global job > count that is independent of the task at hand. > I agree with Anton here. This is very heuristical and dependent on the type of job. This therefore belongs as an i

Re: [FFmpeg-devel] [PATCH 1/7] lavu/cpu: add av_cpu_job_count()

2022-09-22 Thread Anton Khirnov
It is very nonobvious to me that it makes sense to define a global job count that is independent of the task at hand. And we could really do with fewer global variables, not more. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org h

[FFmpeg-devel] [PATCH 1/7] lavu/cpu: add av_cpu_job_count()

2022-09-20 Thread rcombs
This estimates an appropriate number of jobs for a task to be broken up into. This may be higher than the core count in a heterogeneous system. Currently implemented only on Apple platforms; otherwise, we assume homogeneity. --- doc/APIchanges | 3 +++ libavutil/cpu.c | 37 +