Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-26w32pthreads: always use Vista+ API, drop XP supportwm4
This removes the XP compatibility code, and switches entirely to SWR locks, which are available starting at Windows Vista. This removes CRITICAL_SECTION use, which allows us to add PTHREAD_MUTEX_INITIALIZER, which will be useful later. Windows XP is hereby not a supported build target anymore. It was decided in a project vote that this is OK.
2017-09-08avcodec/pthread_slice: add ff_slice_thread_execute_with_mainfunc()Ilia Valiakhmetov
Signed-off-by: Ilia Valiakhmetov <zakne0ne@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2017-07-19avcodec/pthread_slice: use slice threading from avutilMuhammad Faiz
Also remove pthread_cond_broadcast(progress_cond) on uninit. Broadcasting it is not required because workers are always parked when they are not in thread_execute. So it is imposible that a worker is waiting on progress_cond when uninitialized. Benchmark: ./ffmpeg -threads $threads -thread_type slice -i 10slices.mp4 -f null null threads=2: old: 70.212s 70.525s 70.877s new: 65.219s 65.377s 65.484s threads=3: old: 65.086s 66.306s 66.409s new: 63.229s 65.026s 65.116s threads=4: old: 60.993s 61.482s 62.123s new: 59.224s 59.441s 59.667s threads=5: old: 57.576s 57.860s 58.832s new: 53.032s 53.948s 54.086s Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-03-29lavc/pthread_slice: remove pointless conditionClément Bœsch
2016-01-21avcodec/mpeg12enc: Move high resolution thread check to before initializing ↵Michael Niedermayer
threads Cleaner solution is welcome! Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-20lavc,lavfi: use avutil/thread.h instead of redundant conditional includesClément Bœsch
This was somehow forgotten in a8bb81a05c519dd3f36cc341e5fb448f6d17fa73.
2015-11-28avcodec/pthread_slice: Allow calling ff_alloc_entries() multiple times to ↵Michael Niedermayer
readjust the entry count Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-26avcodec/pthread_slice: Remove rets_countMichael Niedermayer
It appears rets_count is redundant Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-19avcodec/pthread_slice: remove dummy_ret hackMichael Niedermayer
This should avoid some tsan warnings Found-by: Chris Cunningham <chcunningham@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-02-24lavc/pthread_slice: release entriesChristophe Gisquet
When calling ff_alloc_entries, a number of entries are created. They are never freed, as running fate with slice threading and several frames on e.g. fate-hevc-conformance-ENTP_A_Qualcomm_1 would show. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-01avcodec/pthread_slice: Use av_freep() to avoid leaving stale pointers in memoryMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-31avcodec/pthread_slice: Check for malloc failureMichael Niedermayer
Found-by: CSA Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-08avcodec/pthread_slice: Use av_malloc(z)_array()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-04Merge commit '38ecc3702dabbea09230f6d6333f59e74f5d1c12'Michael Niedermayer
* commit '38ecc3702dabbea09230f6d6333f59e74f5d1c12': pthread: store thread contexts in AVCodecInternal instead of AVCodecContext Conflicts: libavcodec/internal.h libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-04Merge commit 'daa7a1d4431b6acf1f93c4a98b3de123abf4ca18'Michael Niedermayer
* commit 'daa7a1d4431b6acf1f93c4a98b3de123abf4ca18': pthread_slice: rename ThreadContext -> SliceThreadContext Conflicts: libavcodec/pthread_slice.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-04Merge commit 'cc14ee03a7b91c69343f8d60c9e089a1950eeadb'Michael Niedermayer
* commit 'cc14ee03a7b91c69343f8d60c9e089a1950eeadb': lavc: split slice and frame threading functions into separate files Conflicts: libavcodec/Makefile libavcodec/pthread.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-04pthread: store thread contexts in AVCodecInternal instead of AVCodecContextAnton Khirnov
It's a private field, it should not be visible to callers. Deprecate AVCodecContext.thread_opaque
2013-11-04pthread_slice: rename ThreadContext -> SliceThreadContextAnton Khirnov
This should prevent confusion with frame threading.
2013-11-04lavc: split slice and frame threading functions into separate filesAnton Khirnov