mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 22:55:12 +08:00
Merge commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d'
* commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d': lavfi: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user