Age | Commit message (Collapse) | Author |
|
As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.
avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the
next MAJOR libavcodec bump.
Rename the functions to ff_thread_init/free, since they are now internal.
Wrappers are provided to maintain API compatibility.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit c0b102ca03fe92250f1ce620aec3836f529fc1d6)
|
|
See doc/multithreading.txt for details on use in codecs.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
|
|
need it in *thread.c.
Originally committed as revision 22544 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 22324 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
The various avcodec_thread_init() functions are updated to return
immediately after setting avctx->thread_count. This allows -threads 0
to pass through to codecs. It also simplifies the usage for apps
using libavcodec.
Originally committed as revision 21358 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
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
|
|
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 16144 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 15804 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Necessary for systems that don't align by default to 16 bytes, required by some
SSE instructions.
Requires GCC >= 4.2.
Based on patch by Gaël Chardon.
Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9506 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 8967 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 3161 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 3138 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 2842 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 2803 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
multithreaded/SMP encoding for MPEG1/MPEG2/MPEG4/H263
all pthread specific code is in pthread.c
to try it, run configure --enable-pthreads and ffmpeg ... -threads <num>
the internal thread API is a simple AVCodecContext.execute() callback which executes a given function pointer with different arguments and returns after finishing all, that way no mutexes or other thread-mess is needed outside pthread.c
Originally committed as revision 2772 to svn://svn.ffmpeg.org/ffmpeg/trunk
|