search for: fromdb

Displaying 6 results from an estimated 6 matches for "fromdb".

Did you mean: fromdr
2001 Jan 17
0
bitrate scaling by freq / quality bug ? / comments
...h this modification, if we use -b128 at 22khz files, the OGG file will be 128kbit/s, not 64kbit/s ... 2. Probable quality bug: I tested some floating point constants (recalculated them (see below) and encoded some songs with 'longer' (more precise) numbers) in the SCALES.H, at it seems the fromdB is a little bit wrong... So, the original line is: #define fromdB(x) (exp((x)*.11512925f)) Corrected line is: #define fromdB(x) (exp((x)*.115129255f)) (there is an extra '5' digit at the end) (more precise number is 0.115129254649702278f) But I think so you have to recalculate the encoding...
2000 Nov 26
1
Trivial 12% performance gain in encoding
(well, YMMV, but it got me 12% on Mac OS X Public Beta on my test case). In vorbis/lib/scales.h, add the following after fromdB() #define sqrt_fromdB(x) (exp((x)*.11512925*0.5)) In vorbis/lib/psy.c at the bottom of bark_noise(), do: < noise[i]=sqrt(fromdB(v)); > noise[i]=sqrt_fromdB(v); This avoids the sqrt() call entirely by just doing it as part of the exp(). (I'd send a patch, but my local s...
2000 Aug 28
3
optimization patches
...an, I know. Seems to work though. Weird. 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 so...
1998 Nov 19
0
R data import problems
...imported correctly. The file contains a single column with a floating point value on each row. Second question: Is it possible to construct an extension that facilitates the import of data from databases, e.g. postgresql? (or does it already exist?) I have something like > DataF <- read.fromDB ("select aaa, bbb from data", dbURL) in mind, given that dbURL is the URL of a database accessible over jdbc, odbc and alike, for example? (a separate connect-to-db-function to handle database access/connect is more realistic, of course). There would have to be an interface which connect...
2000 Aug 22
1
optimization progress
...m not going to hand-unroll the whole thing either (the machine- unrolled version produced a 1.5M executable; understandably, it wasn't very fast. Still waiting for processors with 1.5M L1 code caches ;-) Slowest parts now are: -- mdct -- vorbis_lsp_to_curve (and the exp()'s afterwards, in fromdB macro; eliminated most of-em, but not all). -- main (the float to s16 loop) Hope to send a patch tomorrow, as the sneakernet had some transmission problems today :-| Dagdag, Segher --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg...
2003 Oct 15
5
Floor0-decode-curve
Hello I'm working on a fix-point decoder for AOS/Bluebottle - the proprietary OS of ETH Zurich. I've some problems with Floor0-curve-computation: I don't know what the little omega [cos(w)] stands for, line 3 of the official Vorbis documentation. Does anybody knows what this value means? I've tried to get the answer from the jOrbis and Tremor, but both seem to do - among