[FFmpeg-devel] [PATCH v2 154/162] avcodec/mpegaudiodec: Reduce the size of tables used to initialize VLCs

Michael Niedermayer michael at niedermayer.cc
Fri Nov 20 20:54:08 EET 2020


On Fri, Nov 20, 2020 at 08:33:19AM +0100, Andreas Rheinhardt wrote:
> By switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths() one
> can replace tables of codes of type uint16_t by tables of symbols of
> type uint8_t; this saves about 1.3KB for both the fixed and floating
> point decoders (if enabled).
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/mpegaudiodec_template.c |  21 +-
>  libavcodec/mpegaudiodectab.h       | 678 +++++++++++------------------
>  2 files changed, 271 insertions(+), 428 deletions(-)

nice

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201120/d7b899e8/attachment.sig>


More information about the ffmpeg-devel mailing list