summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorMark Thompson <mrt@jkqxz.net>2016-02-25 00:21:40 +0000
committerAnton Khirnov <anton@khirnov.net>2016-03-19 15:41:04 +0100
commit07a844f32ebb78503981df017fa3ebfedb75fe1c (patch)
treee1d7563f0711cff1109b50820ee298eba5f381d5 /libavfilter/avfilter.h
parent551c6775abb5e0ad34c26d7e23bc6fbbe8ccc9d4 (diff)
lavfi: generic hardware surface upload and download filters
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 0a0c415790..65918fc474 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -300,6 +300,15 @@ struct AVFilterContext {
* An opaque struct for libavfilter internal use.
*/
AVFilterInternal *internal;
+
+ /**
+ * For filters which will create hardware frames, sets the device the
+ * filter should create them in. All other filters will ignore this field:
+ * in particular, a filter which consumes or processes hardware frames will
+ * instead use the hw_frames_ctx field in AVFilterLink to carry the
+ * hardware context information.
+ */
+ AVBufferRef *hw_device_ctx;
};
/**