aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/thread.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/thread.h
parent2a6eaeaa85d17b27ee0dd449183ec197c35c9675 (diff)
downloadffmpeg-129bb238430ec45a3b5f8f1d384df590ddf7b62f.tar.gz
lavfi: add a slice threading infrastructure
Mostly based on libavcodec's
Diffstat (limited to 'libavfilter/thread.h')
-rw-r--r--libavfilter/thread.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libavfilter/thread.h b/libavfilter/thread.h
new file mode 100644
index 0000000000..49134d948a
--- /dev/null
+++ b/libavfilter/thread.h
@@ -0,0 +1,31 @@
+/*
+ *
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVFILTER_THREAD_H
+#define AVFILTER_THREAD_H
+
+#include "avfilter.h"
+
+typedef int (action_func)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
+
+int ff_graph_thread_init(AVFilterGraph *graph);
+
+void ff_graph_thread_free(AVFilterGraph *graph);
+
+#endif /* AVFILTER_THREAD_H */