Displaying 2 results from an estimated 2 matches for "linearmap".
Did you mean:
linear_max
2002 Sep 11
1
floor0.c and lsp.c optimisations
Hi,
I think that the introduction of the lsp_look lookup array
isn't ideal and found a better change that can be applied.
in floor0_map_lazy_init() you can replace
look->linearmap[W][j]=val;
by
look->linearmap[W][j]=vorbis_coslook(M_PI*val/look->ln);
and in vorbis_lsp_to_curve you then replace
float w=vorbis_coslook(wdel*k);
...
}while(map[i]==k);
by
float w=map[i];
...
}while(map[i]==w);
then get rid of the ln function parameter and the k local variable.
<p...
2000 Aug 28
3
optimization patches
...s 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 some fun,
Segher
&...