Tuesday, May 13, 2008

GSoC First Lines of Code

Since last week, I started coding the first lines of the qtmux (yes, that will be the name of the new plugin/element).
The muxer is still at an early 'draft state', but what concerns me more at this point is creating the MPEG4 Atoms hierarchy to be used by the muxer. This hierarchy will last during the whole project and it could cause some headaches later.

I thought of two main options:
  • Create a gobject class hierarchy: it is better organized and we could have some common interfaces, but it would be probably too much of a overhead
  • Create a 'struct hierarchy': composing structs is pretty easy and straightforward to do. Having common structs at the top place might also provide some common methods, but probably difficult to maintain
Structs seems better to me at this point, I'm for the KISS (Keep It Simple, Stupid) principle. And I also don't expect to be changing those atoms often (after my code gets stable, at least). But, of course, I'm accepting comments and sugestions and critics.

Other than that, I'll be starting a repository to put the code in the following days, so that interested people might take a look at it.

1 comment:

bilboed said...

For the internal atom representation, you don't need all the extra gobject bling (introspection, properties, methods, etc...), so I would recommend just going with the struct solution.