[MPlayer-dev-eng] [PATCH] cmov detection and draw_alpha fixes

Alban Bedel albeu at free.fr
Fri Mar 31 03:53:21 CEST 2006


Hi,

since i added the box backgrounds in the osd menu i noticed a nasty bug
with the draw alpha functions. They happily overflow leading to some nice
distortions :/ So i went on to fix that, the mmx version are trivial to
fix just change the final paddb to a paddusb. However for the generic
i386 asm for rgb24/32 i didn't found a nice and quick solution w/o
using cmov (their probably is or ?). So i used cmov and let the rest
fallback on C.

Sadly cmov is not present on all cpu, currently it is only used in lavc
under a #if __CPU__ >= 686. However their are some 586 with cmov (for ex
the AMD Geode which is a 586 with cmov and mmx). So i added a proper test
to configure and cpudetect.c.

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmov.diff
Type: application/octet-stream
Size: 5725 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060331/f67452d1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: draw_alpha.diff
Type: application/octet-stream
Size: 8606 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060331/f67452d1/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list