[Ffmpeg-devel] Fixed point arithmetic RealAudio G2 (cook) decoder

Rich Felker dalias
Tue Mar 13 04:14:17 CET 2007


On Thu, Mar 08, 2007 at 10:28:18PM +0100, Michael Niedermayer wrote:
> [...]
> > +static const FIXPU sincos_lookup[2050] = {
> > +    /* x_i = 2^16 sin(i 2pi/8192), 2^16 cos(i 2pi/8192); i=0..1024 */
> 
> i think such large tables should be generated instead of hardcoded

on the other hand, i'd kinda like it if _all_ the tables in lavc were
hardcoded instead of generated. this would allow them to be in shared
memory and would eliminate all the issues with global initialization,
dynamic loading, and memory leaks vs crashes.

another possible idea is to put table arrays in bss so that they don't
take space on disk (or in memory until they're initialized). this
cleans up the dynamic .so loading issue but doesn't allow memory to be
shared.

sorry for getting ot, this is kinda a separate issue..

rich




More information about the ffmpeg-devel mailing list