lavc: Add support for increasing hardware frame pool sizes

Multimedia / Libav - Mark Thompson [jkqxz.net] - 11 February 2018 22:00 EST

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.

5b145290d lavc: Add support for increasing hardware frame pool sizes
doc/APIchanges | 3 +++
libavcodec/avcodec.h | 14 ++++++++++++++
libavcodec/decode.c | 9 +++++++++
libavcodec/options_table.h | 1 +
libavcodec/version.h | 2 +-
5 files changed, 28 insertions(+), 1 deletion(-)

Upstream: git.libav.org


  • Share