diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-29 16:01:30 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-29 16:01:30 +0000 |
commit | 7b3a83b54ea83066cffc6169d5ecf2d24959c5c5 (patch) | |
tree | 12c21f483a2e54228b0c5b68de881440059b26dd /win32 | |
parent | 15ad76099c947512bbc5ff1b0bf5bb8a17c4bb9d (diff) | |
download | xine-lib-7b3a83b54ea83066cffc6169d5ecf2d24959c5c5.tar.gz xine-lib-7b3a83b54ea83066cffc6169d5ecf2d24959c5c5.tar.bz2 |
Code cleanup: don't export all the bits read in the header to the whole plugin, only a subset of the information is needed, so hide the rest in an anonymous structure inside the parsing function. This reduces the header structure size to 24 rather than 40 (of the version already reduced by using bitmasks) and allows it to stay in a single cacheline.
Also, don't consider those flags that we don't use; leave the code in place so that if they need to be parsed in the future they can, but under #if 0 so that it's not compiled.
Move the tables for mp3's magic constants inside the parsing function, to hide them from the global namespace, and resize them to use uint16_t rather than int.
Use memcpy rather than copying the bytes one by one for the xing header.
CVS patchset: 8755
CVS date: 2007/03/29 16:01:30
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions