aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mips/float_dsp_mips.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-21 01:28:54 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-31 20:47:00 +0100
commit6c7a344b65cb7476d1575cb1504e3a53bcbc83e7 (patch)
treea4346325fa1d54710003143781fb8b0dc0a379bb /libavutil/mips/float_dsp_mips.c
parent7fee90efac005b6f8f5878c9d004f3d2da0d2ead (diff)
downloadffmpeg-6c7a344b65cb7476d1575cb1504e3a53bcbc83e7.tar.gz
avcodec/vp3: Share coefficient VLCs between threads
These VLCs are very big: The VP3 one have 164382 elements but due to the overallocation enough memory for 313344 elements are allocated (1.195 MiB with sizeof(VLCElem) == 4); for VP4 the numbers are very similar, namely 311296 and 164392 elements. Since 1f4cf92cfbd3accbae582ac63126ed5570ddfd37, each frame thread has its own copy of these VLCs. This commit fixes this by sharing these VLCs across threads. The approach used here will also make it easier to support stream reconfigurations in case of frame-multithreading in the future. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/mips/float_dsp_mips.c')
0 files changed, 0 insertions, 0 deletions