[MPlayer-dev-eng] [PATCH] cmov detection and draw_alpha fixes
Rich Felker
dalias at aerifal.cx
Fri Mar 31 04:32:14 CEST 2006
On Fri, Mar 31, 2006 at 03:53:21AM +0200, Alban Bedel wrote:
>
> 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.
This is all incorrect. There is no bug in the draw_alpha functions.
Rather you are passing them incorrect data. MPlayer requires a special
alpha format tailored to the optimizations used in the non-mmx code.
Rich
More information about the MPlayer-dev-eng
mailing list