summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-27 22:10:10 +0200
committerPaul B Mahol <onemda@gmail.com>2016-08-29 16:27:09 +0200
commit449339084fb2fe9259d8612a9c8c2a886022d1f5 (patch)
tree3d468c02bf39b9e42bdbc519d5fa503adf172a43 /libavfilter/avfilter.h
parent7ba98824a948f8ab7c4ad52b5b8a470a741a2d41 (diff)
downloadffmpeg-449339084fb2fe9259d8612a9c8c2a886022d1f5.tar.gz
avfilter: add nb_threads to AVFilterContext
To be used in following commits.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index d804c89d70..15d00f7058 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -361,6 +361,13 @@ struct AVFilterContext {
* hardware context information.
*/
AVBufferRef *hw_device_ctx;
+
+ /**
+ * Max number of threads allowed in this filter instance.
+ * If <= 0, its value is ignored.
+ * Overrides global number of threads set per filter graph.
+ */
+ int nb_threads;
};
/**