[mythtv] [PATCH] adjust filter MMX
Andrew Mahone
andrewmahone at eml.cc
Tue Feb 3 06:24:10 EST 2004
The attached patch adds MMX support to the adjust filter, with a roughly 3.5x
speed gain on my system - it runs about 2k frames/sec at 480x480 on my
machine, and I'm much less worried about the performance hit to users if a
new mythtv release adds the filter automatically, since the default settings
meet the requirements for use of the MMX code.
The MMX code will only be used if certain conditions are met. Gamma must be
set to 1.0 (ie, gamma correction off), and the low and high end of the input
range must differ by at least 8 (this second requirement can be met in all
but the most extrem cases). Failure to meet these restrictions results in
fallback to use of the non-MMX code. Fallback occurs independently for luma
and chroma. It should be ready to compile (although it's not tested) on
non-x86 architectures - they will get the LUT scaler.
--
Andrew Mahone
andrewmahone AT eml DOT cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adjustmmx.patch
Type: text/x-diff
Size: 11514 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040203/77572e40/adjustmmx.bin
More information about the mythtv-dev
mailing list