[Tremor] runtime-generated lookup tables
Monty
xiphmont at xiph.org
Wed Mar 8 11:20:24 PST 2006
On Wed, Mar 08, 2006 at 07:58:40PM +0100, Oliver Lange wrote:
>
> Howdy,
>
> I guess this is a stupid question, but is there any way
> to runtime-generate the following tables?
>
> floor1.c:
>
> FLOOR_fromdB_LOOKUP[256]
>
> window_lookup.h:
>
> all LOOKUP_T vwin[] tables
>
> I guess at least the latter is difficult ?
Not difficult, but you will need some way to compute sin/cos and exp
to fairly high precision.
The desktop reference codec does generate these tables; the code is in
libvorbis.
Monty
More information about the Tremor
mailing list