(re numlines)
I have a "log-file" of changes and removing/optimizing I and Joakim
Enerstam (also on the list) did when we played with the code. Maybe some
of them can be of use..
Unfortunately I don't have much time to play with mp3encoding and lame
nowadays.. 

Many changes are just to save mem for the DSP we used...

<logfile included>

Backup 28 
---------
loop.c - removed an un-needed abs() in the ix_max function.

bitstr.c bitstrp.h bitstr.h main.c - removed some code for MPEG2 and
ancillary data in bitstr.c, that were never used in the code..

l3psy.c    - changed size of energy to 465 for DSP_ASM eleminated energy_s
l3ps-pvt.h - changed partition_l size to 465
fft.c      - changed calc_energy to just calculate 465 energy values


Backup 27
---------
l3ps-pvt.h, l3psy.c - moved partition_l, and _s to l3ps-pvt.h and changed
                      type from int to short to save some mem.
Also declared some variables to "far".

Backup 26
--------
Files changed:
main.c, loop.c, loop.h - removed unused static DOUBLE xr_dec[2][2][576]
                         variable. (saved 9k)
main.c, mdct.c, mdct.h - changed from pointers to static variables so no
                         malloc is needed..
l3psy.c - cleaned it up abit, moved short fft to be done only on short blocks
l3ps-pvt.h - using a SNR_s_new instead of SNR_s.
loop.c - optimized the quantanf_init and removed some #ifdef DEBUG:s
loop.c - removed all code using mixed_block_flag != 0 since its always 0.
bitstr.c - removed mixed_block code.. -this might be incorrect but I dont
           think so..

added files:
main.bat - used for compiling main.c for the DSP
breakpoints.bpt - CTRL-b in simulator to set up breakpoints for:
                main, exit and C$$EXIT.

Backup 25
---------
Files changed:
mdct.c - added more precalculated values so no init is used and no sqrt()
loop.c - changed all sqrt(2.0) to SQRT2=1.41.. because  linker/compiler don't 
understand
         that it is constant..
main.c - commented unused variable i away..

l3ps-pvt.h - added const before all static declarations so..
enc-pvt.h - ..the DSP code get optimized, and so we can put..
mdct-pvt.h - ..the ".const" in another memory etc..

files loop.h loop-pvt.h bitstr.h bitstrp.h l3side.h loop.c main.c bitstr.c
changed to use short for the l3_enc[2][2][576] buffer. Lots of variables and
function-headers/declarations had to be changed.. look at diffs.tar for all
changes. (we saved 4Kb of datamem)



Backup 24:
----------
Files changed:
l3side.h - struct "III_input3" removed
bitstr.c - added a #define again for DSP.
           removed MPEG2 section.
common.h - removed unused variables etc.
common.c - removed unused variables etc.
main.c   - changed in-argument to l3psy to 44100 so I could remove vector in common
mdct.c  - calculated init-vectors for mdct so no init-phase is needed

New files:
lnk.bat - for linking-only for dos DSP.
mdct-pvt.h - for init tables in mdct.c

Backup 23:
----------
Files changed:
fft.c   - renamed energy function and the call, changed #ifdef DSP to #ifdef DSP_ASM
common.h - cleaned up unused #defines etc.
common.c - cleaned up unused variables etc.
bitstr.c - added a #define for the DSP
Makefile - added the DSP_ASM define

New files:
make.bat - make script for DSP compiling in dos
makke.bat - make for compiling 1 DSP .c-file in dos
lnk.cmd - memory file for the DSP linker


Backup 22:
----------
Changed files:
loop.c  - included fakeHuffmanCode in bit_count function.
fft.c   - removed all phi:s
l3psy.c - removed all phi:s, using a constant cw of 0.65 for spectral lines 
7-200

Backup 21

Changed l3ps-pvt.h and l3psy.c to use
correct numlines vector.

Backup 20
---------

Changed files:
l3psy.c
fft.c

Added files:
fft-pvt.h
cfft.asm

Backup 19
---------
 .
 .
 .
<end of logfile>

Note that we used only 16bit 44.1 samples at a bitrate of 128kbps, on the
DSP..
Sorry for not having time to check this myself :/


/Jan Peman (searching for a better free C166 compiler than GNU C16x)


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to