diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-06 08:23:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-11-01 20:13:01 +0100 |
commit | e01e30ede1d0a06df90c0c7816cb51941bcd3bc9 (patch) | |
tree | 5a24c89e36e944fbb069117a5b2328b1a7716751 /libavcodec/mpeg4video.h | |
parent | fd2e65871c6fdc79cba5e3eef877a81ec83d57c6 (diff) | |
download | ffmpeg-e01e30ede1d0a06df90c0c7816cb51941bcd3bc9.tar.gz |
avcodec/nvdec: Use RefStruct-pool API for decoder pool
It involves less allocations, in particular no allocations
after the entry has been created. Therefore creating a new
reference from an existing one can't fail and therefore
need not be checked. It also avoids indirections and casts.
Also note that nvdec_decoder_frame_init() (the callback
to initialize new entries from the pool) does not use
atomics to read and replace the number of entries
currently used by the pool. This relies on nvdec (like
most other hwaccels) not being run in a truely frame-threaded
way.
Tested-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg4video.h')
0 files changed, 0 insertions, 0 deletions