]> git.sesse.net Git - ffmpeg/commit
avcodec/cllc: Improve creating VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 24 Oct 2020 22:56:42 +0000 (00:56 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:44 +0000 (17:51 +0100)
commit09062eece2e8f188330adab9ddd873341dcf9862
tree91edf4d57fd48050e8cf397d2aec723b319d7d63
parent4df5144102fb45f74ea46cc9c2a5750a7882dfdd
avcodec/cllc: Improve creating VLCs

One can offload the computation of the codes to
ff_init_vlc_from_lengths(); this also improves performance: The number
of decicycles for one call to read_code_table() decreased from 198343
to 148338 with the sample sample-cllc-rgb.avi from the FATE suite; it
has been looped 100 times and the test repeated ten times to test it
sufficiently often.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/cllc.c