[MPlayer-dev-eng] [PATCH] Optional VIDIX PCI devices name database

Benjamin Zores ben at geexbox.org
Sun Dec 2 18:56:20 CET 2007


Hi,

Attached patch allows conditional compilation of PCI devices name 
database regarding libvidix.

With regular build, there's a huge list of PCI devices names associated 
to each PCI ID found in pci.db.

This patch allows dropping these names, saving a few kB on MPlayer binary.

For example:
VIDIX_PCIDB = yes
-rw-r--r-- 1 ben ben 374621 2007-12-02 18:48 vidix/pci_dev_ids.c
-rw-r--r-- 1 ben ben  92049 2007-12-02 18:48 vidix/pci_names.c
-rwxr-xr-x 1 ben ben 8727525 2007-12-02 18:48 mplayer

VIDIX_PCIDB = no

-rw-r--r-- 1 ben ben 374621 2007-12-02 18:51 vidix/pci_dev_ids.c
-rw-r--r-- 1 ben ben    296 2007-12-02 18:51 vidix/pci_names.c
-rwxr-xr-x 1 ben ben 8411704 2007-12-02 18:51 mplayer

This saves 300 kB (no particular build options/cflags) on binary.

Opinions ?

Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-vidix-nopcidb.diff
Type: text/x-diff
Size: 4894 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071202/ab932e7b/attachment.diff>


More information about the MPlayer-dev-eng mailing list