[Tremor] runtime-generated lookup tables
Oliver Lange
bloody at bloody.in-berlin.de
Wed Mar 8 14:04:31 PST 2006
Nicolas Pitre schrieb:
> On Wed, 8 Mar 2006, 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 ?
>
> They are rather expensive to generate without proper floating point
> support on your CPU, which is the primary reason why you should be
> interested into Tremor.
>
Not exactly. I was searching for a small, compact, easy-to-handle
ogg decoder which can be added to other projects without reading
tons of docus and without blowing up a 100KB project by 2 MB
ogg/vorbis binary size or with the need to force all users to
install the o/v libs with the project (win32).
Another reason: this integer decoder is just butt-kicking fast,
compared to the floating-point oggdec.exe. Who says that decoding
ogg-vorbis is CPU-stressing and thus not recommended for demos,
videos or high-end game engines ?
In my case, i really don't care about floating-point computing
for use with table generation, but i just love small code. :)
Currently i reached the <100KB exe size mark, not even really
started the usual down-to-the-bone-stripping job. Without these
tables, the exe would be even better compressable (upx), so
therefor my question. The CRC and sincos tables are already
gone but the remaining ones are poison for compressor
dictionaries (huffman and the like).. compression ratio
is currently only 30% :|
However, thanks for the quick reply, and keep on the good work.
--
----------------------
Cheers,
Oliver 'Bloody' Lange.
----------------------
More information about the Tremor
mailing list