From 07a844f32ebb78503981df017fa3ebfedb75fe1c Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Thu, 25 Feb 2016 00:21:40 +0000 Subject: lavfi: generic hardware surface upload and download filters Signed-off-by: Anton Khirnov --- libavfilter/avfilter.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavfilter/avfilter.h') 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; }; /** -- cgit v1.2.3