diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-03-27 21:10:53 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-11 22:11:06 +0000 |
commit | 6d86cef06ba36c0ed591e14a2382e9630059fc5d (patch) | |
tree | a99bae90444587b92120c1df0d53029f052c6884 /libavfilter/avfilter.h | |
parent | cad739dace55e3446ef7180de688173cd19fb000 (diff) |
lavfi: Add support for increasing hardware frame pool sizes
AVFilterContext.extra_hw_frames functions identically to the field of
the same name in AVCodecContext.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 6df69dbbbf..46dbadfcdc 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -311,6 +311,22 @@ struct AVFilterContext { * hardware context information. */ AVBufferRef *hw_device_ctx; + + /** + * Sets the number of extra hardware frames which the filter will + * allocate on its output links for use in following filters or by + * the caller. + * + * Some hardware filters require all frames that they will use for + * output to be defined in advance before filtering starts. For such + * filters, any hardware frame pools used for output must therefore be + * of fixed size. The extra frames set here are on top of any number + * that the filter needs internally in order to operate normally. + * + * This field must be set before the graph containing this filter is + * configured. + */ + int extra_hw_frames; }; /** |