diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-11 20:41:46 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-24 09:28:18 +0200 |
commit | 129bb238430ec45a3b5f8f1d384df590ddf7b62f (patch) | |
tree | ed6b4b70661ef80b06e76e624ddfde9d45f84183 /libavfilter/internal.h | |
parent | 2a6eaeaa85d17b27ee0dd449183ec197c35c9675 (diff) | |
download | ffmpeg-129bb238430ec45a3b5f8f1d384df590ddf7b62f.tar.gz |
lavfi: add a slice threading infrastructure
Mostly based on libavcodec's
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 8e8a13f084..bdbbe4498a 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -25,6 +25,7 @@ */ #include "avfilter.h" +#include "thread.h" #if !FF_API_AVFILTERPAD_PUBLIC /** @@ -117,6 +118,17 @@ struct AVFilterPad { }; #endif +struct AVFilterGraphInternal { + void *thread; + int (*thread_execute)(AVFilterContext *ctx, action_func *func, void *arg, + int *ret, int nb_jobs); +}; + +struct AVFilterInternal { + int (*execute)(AVFilterContext *ctx, action_func *func, void *arg, + int *ret, int nb_jobs); +}; + /** default handler for freeing audio/video buffer when there are no references left */ void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); |