search for: todb_nn

Displaying 4 results from an estimated 4 matches for "todb_nn".

2000 Aug 28
3
optimization patches
...eird. unrolled && rerolled the decodevs loops. envelope.c if (fabs(...) < min) creates horrible assembler (gcc 2.95, x86), so changed to if (... < min && ... > -min). muchos faster. lsp.c put the fromdB() before linearmap cales.h todB_nn() for non-negative values. fabs() is horror. Added some prefixes to pack(), inverse(), et. al. (i.e., time0_pack() etc.) Think I still forgot some. I don't think you'll want to apply all of this, oh, especially not the debug output :-). Have some fun, Segher <HR NOSHADE> <UL&...
2001 Jan 17
0
bitrate scaling by freq / quality bug ? / comments
...ue in a few years nobody will know how did you get (calculate) these numbers... (in scales.h, mdct.h, smallft.c) Examples: // 8.68588963806503678 = 20*log10(2.0)/log(2.0) // 0.115129254649702278 = 1.0/8.68588963806503678 #define todB(x) (((x)==0.)? -9e20:log(fabs(x))*8.68588963806503678f) #define todB_nn(x) (((x)==0.)? -400:log(x)*8.68588963806503678f) #define fromdB(x) (exp((x)*0.115129254649702278f)) // 0.69314718055994529 = log(2.0) // 1.44269504088896339 = 1.0/log(2.0) // 6.96578428466208699 = log(125.0)*1.0/log(2.0) #define toOC(f) (log(f)*1.44269504088896339F-6.96578428466208699F) #define...
2001 Feb 03
1
fast math optimization patch
...processor-specific code. - Added VORBIS_BIG_ENDIAN and VORBIS_LITTLE_ENDIAN since the other various macros for this are not portable - Switched a few tests to use VORBIS_BIG/LITTLE_ENDIAN - Modify scales.h - Import fast_math.h and use fast_log_est instead of log() for todB and todB_nn() The sqrt approximation functions are only applicable on PPC right now and this patch does not include the code to actually use them (since I wanted to provide some testing numbers that would better reflect likely changes in x86 performance). The log approximation breaks the float into...
2004 Aug 02
9
various patches from Mandrakelinux package
I was looking at the libvorbis 1.0 SRPM of Mandrakelinux, and it contained some patches which are not included in vorbis 1.1 svn. I'm attaching these patches here, because it could maybe be interesting to include these upstream. (libvorbis-1.1-aliasing.patch is actually a rediffed patch of Mandrakesoft's one for 1.0 against 1.1 svn). The author of these patches is Gwenole Beachesne,