- 27 Jul, 2015 2 commits
-
-
Vittorio Giovara authored
Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
- 04 Nov, 2013 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 31 Oct, 2013 1 commit
-
-
Anton Khirnov authored
It has been unused since 37045e42.
-
- 22 Oct, 2013 1 commit
-
-
Mickaël Raulet authored
cherry picked from commit c7765f3295fe7dc0653161c6a3d3e1778b76ee67 cherry picked from commit 0008c4979fc1d1bc24d4d2c791715f6dd017563c Conflicts: libavcodec/utils.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 21 Oct, 2013 1 commit
-
-
Ben Jackson authored
pthread_wait_cond can wake up unexpectedly (Wikipedia: Spurious_wakeup). The FF_THREAD_SLICE thread mechanism could spontaneously execute jobs or allow the caller of avctx->execute to return before all jobs were complete. Test both cases to ensure the wakeup is real. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
- 13 Oct, 2013 1 commit
-
-
Derek Buitenhuis authored
Sometimes, if pthread_create() failed, then pthread_cond_wait() could accidentally be called in the worker threads after the uninit function had already called pthread_cond_broadcast(), leading to a deadlock. Don't call pthread_cond_wait() if c->done is set. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-
- 02 Aug, 2013 1 commit
-
-
Diego Biurrun authored
-
- 16 Jul, 2013 1 commit
-
-
Sean McGovern authored
The AIX threads library exposes a function with the same name. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 30 Jun, 2013 1 commit
-
-
Carl Eugen Hoyos authored
The aix header sys/thread.h contains a definition for thread_init().
-
- 05 Jun, 2013 1 commit
-
-
Paul B Mahol authored
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-
- 28 May, 2013 1 commit
-
-
Dave Yeo authored
For useage in other places besides lavc. Needed after commit 90f9a583Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 26 May, 2013 1 commit
-
-
Michael Niedermayer authored
Also print the message just once Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 24 May, 2013 3 commits
-
-
Michael Niedermayer authored
This simplifies the code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
Anton Khirnov authored
It will be useful in lavfi, and could conceivably be useful to the user applications as well.
-
Anton Khirnov authored
It will be used in other places than lavc.
-
- 17 May, 2013 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
Those were useful when avcodec_thread_init() was a public functions. It was deprecated and removed some time ago, so those checks are not needed anymore.
-
- 16 May, 2013 1 commit
-
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 11 May, 2013 1 commit
-
-
Michael Niedermayer authored
This is about 20-30% faster than slice threading Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 25 Apr, 2013 2 commits
-
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Prevents warning from being shown due to multiple calls. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 22 Apr, 2013 1 commit
-
-
Janne Grunau authored
Intra codecs do not need an update_thread_context() function and never call ff_thread_finish_setup(). They rely on ff_thread_get_buffer() calling it. So call it even if the get_buffer2 function pointer is avcodec_default_get_buffer2 and it has not been called before.
-
- 15 Apr, 2013 1 commit
-
-
Reimar Döffinger authored
Just like get_buffer, get_format should not be called from a different thread if thread_safe_callbacks is not set. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-
- 26 Mar, 2013 1 commit
-
-
Janne Grunau authored
Allows use of AVHWAccel based decoders with frame based multithreading. The decoders will be forced into an non-concurrent mode by delaying ff_thread_finish_setup() calls after decoding of the current frame is finished. This wastes memory by unnecessarily using multiple threads and thus copies of the decoder context but allows seamless switching between hardware accelerated and frame threaded software decoding when the hardware decoder does not support the stream.
-
- 19 Mar, 2013 2 commits
-
-
Hendrik Leppkes authored
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Hendrik Leppkes authored
This restores the performance of simple frame-threaded codecs back to their pre-merge levels. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 13 Mar, 2013 1 commit
-
-
Clément Bœsch authored
Coccinelle profile used: @@ expression r, ctx, f, loglevel, str, flags; @@ -if ((r = ff_get_buffer(ctx, f, flags)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_get_buffer(ctx, f, flags)) < 0) + return r; @@ expression r, ctx, f, loglevel, str; @@ -if ((r = ff_reget_buffer(ctx, f)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_reget_buffer(ctx, f)) < 0) + return r; @@ expression r, ctx, f, loglevel, str, flags; @@ -if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) + return r; ...along with some manual patches for the remaining ones.
-
- 12 Mar, 2013 1 commit
-
-
Michael Niedermayer authored
-
- 11 Mar, 2013 1 commit
-
-
Anton Khirnov authored
Fixes memleaks when frame mt is used and the decoder is not flushed at the end.
-
- 08 Mar, 2013 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 29 Jan, 2013 1 commit
-
-
Anton Khirnov authored
I.e. don't do anything on already released frames.
-
- 13 Jan, 2013 1 commit
-
-
Michael Niedermayer authored
Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 23 Dec, 2012 1 commit
-
-
Clément Bœsch authored
This fixes the following warning with GCC: libavcodec/pthread.c:35:0: warning: _GNU_SOURCE redefined [enabled by default] <command-line>::0: note: this is the location of the previous definition The reason of the presence of this flag is: % pkg-config --cflags sdl -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
-
- 04 Dec, 2012 1 commit
-
-
Anton Khirnov authored
It will be useful in the upcoming transition to refcounted AVFrames.
-
- 19 Nov, 2012 1 commit
-
-
Michael Niedermayer authored
This might fix a hypothetical memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 25 Sep, 2012 1 commit
-
-
Anton Khirnov authored
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
- 14 Sep, 2012 1 commit
-
-
Ben Jackson authored
pthread_wait_cond can wake up for no reason (Wikipedia: Spurious_wakeup). The FF_THREAD_SLICE thread mechanism could spontaneously execute jobs or allow the caller of avctx->execute to return before all jobs were complete. This adds tests to both cases to ensure the wakeup is real. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-