Re: Factoring [Was: Common Opensource codec API]
Steve Lhomme <[email protected]>
| Newsgroups | gmane.comp.multimedia.media-api |
|---|---|
| Message-ID | <[email protected]> |
Enrico Weigelt wrote:
>>Another thing: keeping input / container / encoding layers simple you
>>won't be needing C++ there, these API may and should be defined as pure
>>C. On the other hand the plugins and playback layers may be in C++ or
>>whatever you prefer.
>
> Also ACK.
> I personally dislike C++ for several reasons. I would never use a
> codec API in C++ - many other people too. One point is that plain-C
> is better for adapting other languages (java, php, oberon, ...)
I agree for languages interaction. There's almost no other choice. But
that simply means having the shared structures inside extern "C" {}. But
all the system can be built with C++.