diff options
author | Ilia Valiakhmetov <zakne0ne@gmail.com> | 2017-09-08 03:48:17 +0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2017-09-08 10:25:32 -0400 |
commit | 83c12fefd22fc2326a000019e5c1a33e90a874e8 (patch) | |
tree | ecb20136bf19e091a903dc955e3d2b0f9631b2eb /libavcodec/thread.h | |
parent | fde5c7dc79eb017790ba232442ad2a4eecea4bf1 (diff) | |
download | ffmpeg-83c12fefd22fc2326a000019e5c1a33e90a874e8.tar.gz |
avcodec/pthread_slice: add ff_slice_thread_execute_with_mainfunc()
Signed-off-by: Ilia Valiakhmetov <zakne0ne@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/thread.h')
-rw-r--r-- | libavcodec/thread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/thread.h b/libavcodec/thread.h index 90864b59d9..318619316c 100644 --- a/libavcodec/thread.h +++ b/libavcodec/thread.h @@ -133,8 +133,10 @@ void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f); int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src); int ff_thread_init(AVCodecContext *s); +int ff_slice_thread_execute_with_mainfunc(AVCodecContext *avctx, + int (*action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr), + int (*main_func)(AVCodecContext *c), void *arg, int *ret, int job_count); void ff_thread_free(AVCodecContext *s); - int ff_alloc_entries(AVCodecContext *avctx, int count); void ff_reset_entries(AVCodecContext *avctx); void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, int n); |