[MPlayer-dev-eng] [PATCH] codec-cfg: Optimize built-in codecs format.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Feb 13 22:08:29 CET 2016


On Sat, Feb 13, 2016 at 10:00:36PM +0100, Reimar Döffinger wrote:
> Lookup strings via index in an array instead of
> using direct pointers.
> The two main advantages are
> 1) No data relocations that pointers would otherwise cause
> 2) Smaller size on 64 bit systems

Note that if you are interested I have a plan to
use a similar lookup system for e.g. the fourccs.
They use huge arrays that most codecs only use
1 or 2 entries of, so this might reduce binary size
by maybe 100 kB.
It also means that we won't have an issue
with adding more fourccs to a codec for example.


More information about the MPlayer-dev-eng mailing list