[MPlayer-dev-eng] [PATCH] Teletext support try3 (5/5, rendering)

Vladimir Voroshilov voroshil at gmail.com
Sun Jul 15 20:54:41 CEST 2007


2007/7/15, Michael Niedermayer <michaelni at gmx.at>:
> Hi
>
> On Sun, Jul 15, 2007 at 05:59:49PM +0700, Vladimir Voroshilov wrote:
> [...]
> > 2. Troubles with transparent mode rendering (funny colors, looks like
> > overflow somewhere at alpha calculation).
>
> IIRC you MUST scale your color down so it cant overflow with the selected
> alpha so with 50% alpha you can just use 0..127
>
> [...]
>
In other words color*=(1.0*alpha/255) where alpha=0 is transparent,
alpha=255 - opaque, am i right?
Or conversion is more complex?
Is there any routine for this?

-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list