aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libdavs2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-01 14:23:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 17:51:46 +0100
commit7a7295a8ce87e8b8d9f3dade5f7e05342ffba881 (patch)
treebbe76fcea04146d1fd60d7836f76e7753ec1c592 /libavcodec/libdavs2.c
parentf1ba4d479e4c785a8a4f85fb576ee166100a8cda (diff)
downloadffmpeg-7a7295a8ce87e8b8d9f3dade5f7e05342ffba881.tar.gz
avcodec/truemotion2: Simplify creating VLC table
ff_init_vlc_from_lengths() can be used to offload the computation of the codes; it also allows to omit the check whether the codes are already properly ordered (they are). In this case, this also allows to avoid the allocation of the buffer for the codes. This improves performance: The amount of decicycles for one call to tm2_build_huff_tables() when decoding tm20.avi from the FATE-suite decreased from 46239 to 40035. This test consisted of looping 50 times over the file and iterating the test ten times. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/libdavs2.c')
0 files changed, 0 insertions, 0 deletions