[FFmpeg-soc] [soc] libavsequencer [PATCH 01/08] Music module public API header file.

Ronald S. Bultje rsbultje at gmail.com
Thu Jul 15 21:35:03 CEST 2010


Hi,

On Thu, Jul 15, 2010 at 3:12 PM, Sebastian Vater
<cdgs.basty at googlemail.com> wrote:
> Just a question for understanding...what's the advantage of using enum's
> then? The only one I see straight away is that there is less space
> required (saving 4 characters by replacing '#define ' with '    ').

Documentation tools (e.g. doxy) will group them together and treat
them as a group of related properties, rather than separate entities.
That's a big one for a huge project such as FFmpeg, where in the
future many people will look at and modify your code, without
necessarily understanding everything at the beginning.

Ronald


More information about the FFmpeg-soc mailing list