[FFmpeg-devel] [PATCH] Runtime detection for the number of processors/cores

Philipp Meinen philipp
Wed May 21 10:51:20 CEST 2008

Hello FFmpeg Team

The attached patch is an attempt to allow runtime detection for the
number of online processors/cores instead of having to specify the
number of threads. The idea is to type:
    ffmpeg -threads 0 ....
to use as many threads as processors/cores are online.

I guess cmdutils.c/h is not the right file to place the new
detection function. To which file should this function belong?

Comments welcome :)

Regards, Philipp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001_ffmpeg_runtime_thread_count.diff
Type: text/x-diff
Size: 4177 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080521/689db869/attachment.diff>

More information about the ffmpeg-devel mailing list