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/internal.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/internal.h')
-rw-r--r-- | libavfilter/internal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index a377f9b2ba..dd021e00a1 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -226,4 +226,21 @@ void ff_filter_graph_remove_filter(AVFilterGraph *graph, AVFilterContext *filter */ #define FF_FILTER_FLAG_HWFRAME_AWARE (1 << 0) +/** + * 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 */ |