summaryrefslogtreecommitdiffstats
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-05-11 20:41:46 +0200
committerAnton Khirnov <anton@khirnov.net>2013-05-24 09:28:18 +0200
commit129bb238430ec45a3b5f8f1d384df590ddf7b62f (patch)
treeed6b4b70661ef80b06e76e624ddfde9d45f84183 /libavfilter/internal.h
parent2a6eaeaa85d17b27ee0dd449183ec197c35c9675 (diff)
downloadffmpeg-streaming-129bb238430ec45a3b5f8f1d384df590ddf7b62f.zip
ffmpeg-streaming-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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 8e8a13f..bdbbe44 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);
OpenPOWER on IntegriCloud