[MPlayer-cvslog] r31704 - trunk/spudec.c
reimar
subversion at mplayerhq.hu
Sun Jul 11 15:05:46 CEST 2010
Author: reimar
Date: Sun Jul 11 15:05:45 2010
New Revision: 31704
Log:
Simplify alpha conversion code.
Modified:
trunk/spudec.c
Modified: trunk/spudec.c
==============================================================================
--- trunk/spudec.c Sun Jul 11 14:56:52 2010 (r31703)
+++ trunk/spudec.c Sun Jul 11 15:05:45 2010 (r31704)
@@ -732,7 +732,7 @@ void spudec_calc_bbox(void *me, unsigned
/* transform mplayer's alpha value into an opacity value that is linear */
static inline int canon_alpha(int alpha)
{
- return alpha ? 256 - alpha : 0;
+ return (uint8_t)-alpha;
}
typedef struct {
More information about the MPlayer-cvslog
mailing list