[FFmpeg-devel] [RFC] Runtime-inited versus Hardcoded tables.

Roman Shaposhnik rvs
Sat Jan 12 01:44:05 CET 2008


On Fri, 2008-01-11 at 21:47 +0100, Reimar D?ffinger wrote:
> Hello,
> On Fri, Jan 11, 2008 at 09:29:58PM +0100, Diego 'Flameeyes' Petten? wrote:
> > Instead of adding the init code in foo.c and the hardcoded tables in
> > foo_data.h (added to SVN), we could move the runtime-generated tables in
> > foo_tables.c, with an #ifdef TABLEGEN for a function that actually
> > generates the table.
> > At build time, the Makefile could be compiling foo_tables.c in
> > foo-tablegen and then run it to generate foo_data.h.
> 
> Code like this is basically already there in libavutil/des.c (though I
> named the ifdef GENTABLES and it also needs TEST to be defined),
> basically someone would have to implement the Makefile stuff for that...

  Sorry for coming into this discussion a bit late, but are we talking
about getting rid of all the static tables? DV codec uses quite a few
of those -- that's why I'm interested.

Thanks,
Roman.





More information about the ffmpeg-devel mailing list