summaryrefslogtreecommitdiff
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-02-12 22:28:12 +0000
committerMark Thompson <sw@jkqxz.net>2018-02-12 22:28:12 +0000
commitbcab11a1a23d8b156198db352bbdb932740a966c (patch)
tree827e9acc1a7547c1d5d719e2b7db00971d62f281 /libavfilter/internal.h
parent9471122a1b5dec34572c3d4c675737f0493d140e (diff)
parent6d86cef06ba36c0ed591e14a2382e9630059fc5d (diff)
Merge commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d'
* commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d': lavfi: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index f9679ed1d7..498bd3328d 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -411,4 +411,20 @@ static inline int ff_norm_qscale(int qscale, int type)
*/
int ff_filter_get_nb_threads(AVFilterContext *ctx);
+/**
+ * Perform any additional setup required for hardware frames.
+ *
+ * link->hw_frames_ctx must be set before calling this function.
+ * Inside link->hw_frames_ctx, the fields format, sw_format, width and
+ * height must be set. If dynamically allocated pools are not supported,
+ * then initial_pool_size must also be set, to the minimum hardware frame
+ * pool size necessary for the filter to work (taking into account any
+ * frames which need to stored for use in operations as appropriate). If
+ * default_pool_size is nonzero, then it will be used as the pool size if
+ * no other modification takes place (this can be used to preserve
+ * compatibility).
+ */
+int ff_filter_init_hw_frames(AVFilterContext *avctx, AVFilterLink *link,
+ int default_pool_size);
+
#endif /* AVFILTER_INTERNAL_H */