[mythtv] [PATCH] Altivec optimizations

Isaac Richards ijr at case.edu
Wed Dec 8 02:19:54 UTC 2004


On Monday 06 December 2004 09:52 am, Jeremiah Morris wrote:
> Also, why do the filters each have their own,
> almost-but-not-quite-identical copies of the mm_support() function and
> constants?  Can this be moved to libmyth, where anyone can access it?
> (It would be nice to use this in yuv2rgb.cpp, which has yet another set
> of MMX checks.)

It'd make sense there, yes.

> I admit I don't quite see the logic of the filter design in general,
> with the struct and function pointers forming a poor man's C++.  Is the
> overhead of this really that much less than C++ to justify the hassle?
> If that were true, then why is everything else in Myth comfortable with
> using C++ then?  Working in the linearblend filter felt like a
> completely different environment from Myth, and not one I'd like to
> revisit.

The filter architecture is all contributed code..  C++ would certainly be 
easier, but can lead to ABI issues at times..

Isaac


More information about the mythtv-dev mailing list