Acy,
before check in new quantize routine, see this hint and make faster one :p
You can see the whole source in my latest snapshot,
        http://www.isoternet.org/~tominaga/lame-beta/lame-1204.tar.bz2
(note: but this snapshot really buggy!)

table making.
    adj43[0] = 0.0;
    for (i = 1; i < PRECALC_SIZE; i++)
        adj43[i] = i - 0.5 - pow(0.5 * (pow((double)(i - 1), 4.0/3.0)
                                        + pow((double)i, 4.0/3.0)), 0.75);

and quantize.
            x = istep * *xp++;
            X_FTOI(x, rx);
            X_FTOI(x + QUANTFAC(rx), *pi++);

yes, we don't need (-0.5) in the 1st FTOI.
-- 
Takehiro TOMINAGA // may the source be with you!
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to