[mythtv] [PATCH] Clogged filters

Nigel Pearson nigel at ind.tansu.com.au
Mon May 16 05:02:27 UTC 2005


Problems:

1) A lot of the filters have common stuff that should be abstracted
    (e.g. mm_support() or emms() for non-Intel compilation,
          content of .pro files are nearly identical)

2) Several dummy functions are needlessly defined for non-MMX

3) Altivec accelleration is not determined at run time

4) Using i386 instead of MMX.

    We could go either way here (same with HAVE_ALTIVEC and 
ARCH_POWERPC),
    but I will assume for now that MMX or HAVE_ALTIVEC indicate intent
    to compile in accelerated code, rather than ability of the compiler
    to process MMX-specific operands, or vector style extensions.



	Attached is a few new files for the filters directory,
which abstract the common stuff, and a patch to get the src
to use them (also contains some tidyup).

	Better names (or other criticism) gladly accepted/debated,
otherwise I will commit in a few days?

% cd filters

% cvs diff -u *.pro */*.pro */*.c >../../patch.general.14

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mm_arch.h
Type: application/octet-stream
Size: 353 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050516/97c0e7cb/mm_arch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filter-common.pro
Type: application/octet-stream
Size: 274 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050516/97c0e7cb/filter-common.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filter-avcodec.pro
Type: application/octet-stream
Size: 469 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050516/97c0e7cb/filter-avcodec.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.general.14
Type: application/octet-stream
Size: 17986 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050516/97c0e7cb/patch.general.obj
-------------- next part --------------


--
Nigel Pearson, nigel at ind.tansu.com.au|  "Let's see how Spike is going"
Telstra BI&D, Sydney, Australia      |              ...
Office: 8255 4222    Fax:  8255 3153 |"I'd like to keep Spike as my 
pet."
Mobile: 0408 664435  Home: 9792 6998 |        Illyria - Angel


More information about the mythtv-dev mailing list