[Ffmpeg-devel] [PATCH] Split DV demuxer/muxer

Panagiotis Issaris takis.issaris
Fri Sep 15 22:02:50 CEST 2006


Hi,

On vr, 2006-09-15 at 21:28 +0200, Diego Biurrun wrote:
>[...]
> 
> Now that we can finally rename files I propose unifying this.  Since
> most files whose names don't end in 'enc' are demuxers/decoders I
> propose to keep the name without suffix for decoders/demuxers and use
> and 'enc' suffix for encoders/muxers.
> 
> Opinions?  Otherwise I'm tempted to go ahead with this after the
> weekend.

I am not really sure about it. My initial reasoning was that I would
name muxers XYZenc.c and demultiplexers XYZ...dec.c so that the common
code code be placed in XYZ.c. I also figured this way multiplexers and
demultiplexers would be easiest to spot (e.g. ls *enc.c *dec.c).

Ofcourse common code code also be put in a XYZcommon.c file. But I
personnaly still think that this makes it a bit harder to spot demuxers.
Especially as there are also files containing no try demuxer or muxer,
such as "allformats.c", "utils.c" and "barpainet.c".

Following that reasoning, I think it would be even better to put the
common code for format in files called XYZcommon.c, in addition to
putting the multiplexers in XYZenc.c files and the demultiplexers in
XYZdec.c files.

And now that I come to think of it, wouldn't it be better to not
name them encoder/decoders but instead muxers/demuxers?

But that's ofcourse all just MHO :)

With friendly regards,
Takis






More information about the ffmpeg-devel mailing list