]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfilter.h
Merge commit '434b44cd6fb4bb9a2bf2bb29ef55ce1a315314b8'
[ffmpeg] / libavfilter / avfilter.h
index 62eed2168f001b7105b216946d3268184a8a1b22..2d1195eeeb7aa22aafb4755d45a619d52376d7b3 100644 (file)
@@ -406,6 +406,22 @@ struct AVFilterContext {
      * a higher value suggests a more urgent activation.
      */
     unsigned ready;
+
+    /**
+     * 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;
 };
 
 /**