[mythtv] patch for runtime CPU detection (MMX) in linearblend filter

Simon Kenyon simon at koala.ie
Mon Aug 18 23:12:31 EDT 2003


On Monday 18 August 2003 22:03, Simon Kenyon wrote:
> if any of you have a Via C3 CPU want to check this for me and let
> me know how you get on
>
> for me, with this patch i can enable deinterlacing and not have it crash
> with an illegal instruction
>
> the change is to mythtv/filters/linearblend/filter_linearblend.c to use
> either the portable implementation or an MMX enhanced version
>
> the code does it once so that performance is not adversly affected; apart
> from the one-time CPU detection itself
>
> patch against current CVS included
> --
> Simon Kenyon
> <simon at koala.ie>
sorry to followup to my own post
but that diff sucks rocks
it works - but to made a real dogs dinner of the change
here is the new file in toto - a lot easier to see the change

all i did was split the code into two sets, portable and mmx
and then put a test in new_filter
--
simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filter_linearblend.c
Type: text/x-csrc
Size: 7303 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030818/d42f9a96/filter_linearblend.bin


More information about the mythtv-dev mailing list