OSDN Git Service

Add an execute2 function that is more flexible and allows to use parallel
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 12 Oct 2009 11:35:35 +0000 (11:35 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 12 Oct 2009 11:35:35 +0000 (11:35 +0000)
commit8d23a86f3346121f64b1ce80c3e0740e05fd2b29
tree6645c63f8ca4ca4a97da7325b758cb4a7724aee0
parentfebd1c90a64c1df2d72600d0fe1f020e88d10953
Add an execute2 function that is more flexible and allows to use parallel
processing with jobs > threads without wasting too much memory.
It also avoids needing a separate int array when the only additional data
the jobs needs is a single int running from 0 to count-1.

Originally committed as revision 20210 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/avcodec.h
libavcodec/options.c
libavcodec/pthread.c
libavcodec/utils.c