threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264
authorJanne Grunau <janne-libav@jannau.net>
Sun, 1 Jan 2012 13:21:50 +0000 (14:21 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Sun, 1 Jan 2012 13:37:37 +0000 (14:37 +0100)
commitb4d44a45f9aa43bd2e5bddde33e3b37802607b0a
tree607eb03dedfb5ce9249e3094cd3a9d3f46524852
parentfebd022228660cb4b4d0e7b108bfec339b7dce92
threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264

Some external codecs have their own code to determine the best number
of threads. This number is not necessary the number of cpu cores.
Thread_count will be only 0 if the codec has CODEC_CAP_AUTO_THREADS.
libavcodec/avcodec.h
libavcodec/libx264.c
libavcodec/pthread.c
libavcodec/version.h