diff options
author | Ben Chang <benc@nvidia.com> | 2017-04-25 14:57:56 -0700 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-04-26 21:57:54 +0200 |
commit | 8de3458a07376b0a96772e586b6dba5e93432f52 (patch) | |
tree | 1349f65fd1d08cdc1f1dc7372cf4027b8a2d3af4 /libavutil/cast5.h | |
parent | 78a5fc4579deb63e1e6b93cd4d6e2ec2dceff931 (diff) | |
download | ffmpeg-8de3458a07376b0a96772e586b6dba5e93432f52.tar.gz |
avcodec/nvenc: surface allocation reduction
This patch aims to reduce the number of input/output surfaces
NVENC allocates per session. Previous default sets allocated surfaces to 32
(unless there is user specified param or lookahead involved). Having large
number of surfaces consumes extra video memory (esp for higher resolution
encoding). The patch changes the surfaces calculation for default, B-frames,
lookahead scenario respectively.
The other change involves surface selection. Previously, if a session
allocates x surfaces, only x-1 surfaces are used (due to combination
of output delay and lock toggle logic). To prevent unused surfaces,
changing surface rotation to using predefined fifo.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavutil/cast5.h')
0 files changed, 0 insertions, 0 deletions