lavc: Add support for increasing hardware frame pool sizes

AVCodecContext.extra_hw_frames is added to the size of hardware frame
pools created by libavcodec for APIs which require fixed-size pools.
This allows the user to keep references to a greater number of frames
after decode, which may be necessary for some use-cases.

It is also added to the initial_pool_size value returned by
avcodec_get_hw_frames_parameters() if a fixed-size pool is required.
This commit is contained in:
Mark Thompson
2018-01-29 22:18:00 +00:00
parent fd36cf6bf6
commit 5b145290df
5 changed files with 28 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ libavutil: 2017-03-23
API changes, most recent first:
2018-02-xx - xxxxxxx - lavc 58.9.0 - avcodec.h
Add AVCodecContext.extra_hw_frames.
2017-xx-xx - xxxxxxx - lavc 58.8.0 - avcodec.h
Add const to AVCodecContext.hwaccel.