aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/buffer_internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-07 14:30:28 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-16 22:11:53 +0100
commitde1b20a82bca61fc877482167ead69beadeb4c78 (patch)
tree68a526f9831326df2dd2fedca97a1849a3914010 /libavutil/buffer_internal.h
parent76d428e090e0a547b2e6be6dbd22cf87817adec7 (diff)
downloadffmpeg-de1b20a82bca61fc877482167ead69beadeb4c78.tar.gz
avcodec/frame_thread_encoder: Avoid allocations of AVFrames
Up until now, when using frame threaded encoding, an AVFrame would be allocated for every frame to be encoded. These AVFrames would reach the worker threads via a FIFO of tasks, a structure which contained the AVFrame as well as an index into an array which gives the place where the worker thread shall put the returned packet; in addition to that, said structure also contained several unused fields. This commit changes this: The AVFrames are now allocated during init in the array that is up until now only used to return the packets. The contents to be encoded are put into the AVFrame in the same array element that is also used to return the packets. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/buffer_internal.h')
0 files changed, 0 insertions, 0 deletions