[FFmpeg-devel] [PATCH] move intrax8 tables from a header to a C file

Michael Niedermayer michaelni
Sat Nov 10 22:18:13 CET 2007


On Sat, Nov 10, 2007 at 06:10:38PM +0100, Aurelien Jacobs wrote:
> On Sat, 10 Nov 2007 17:59:01 +0100
> Diego Biurrun <diego at biurrun.de> wrote:
> 
> > On Sat, Nov 10, 2007 at 02:38:22PM +0100, Aurelien Jacobs wrote:
> > > On Sat, 10 Nov 2007 14:05:05 +0100
> > > Diego Biurrun <diego at biurrun.de> wrote:
> > > 
> > > > AFAIU it is preferred to have tables in C files rather than in header
> > > > files.
> > > 
> > > Prefered by whom ? Not by me.
> > > At least not for tables which are not shared between several compilation
> > > units.
> > > 
> > > > Here is a patch to move the intrax8 tables to a C file, similar to what
> > > > we did for the msmpeg4 tables.
> > > 
> > > The msmpeg4 case was different. Tables had to be used from different
> > > compilation units.
> > > 
> > > IMO, this does no good, and uselessly makes some tables non-static.
> > 
> > OK, patch retracted.
> > 
> > > > As a first step I could separate out moving the #defines over to
> > > > intrax8.c.
> > 
> > IMO this still makes sense, having the #defines in intrax8huf.h is
> > confusing.  Patch attached.
> 
> I think patch is OK.

no it is not, these defines are about the max length of the vlcs in these
tables and IMHO they should be where the tables are

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071110/06bfbbbd/attachment.pgp>



More information about the ffmpeg-devel mailing list