diff options
author | Christophe Thommeret <hftom@free.fr> | 2008-12-20 17:43:41 +0000 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2008-12-20 17:43:41 +0000 |
commit | 223dbfb4fa8cccb43a1efb5ebf9591947f224af0 (patch) | |
tree | 976db31d7ece2ca6f46b64b72f6a5d14771e7331 | |
parent | 534d98199010e116bdcfd6c27068e93246f43a06 (diff) | |
download | xine-lib-223dbfb4fa8cccb43a1efb5ebf9591947f224af0.tar.gz xine-lib-223dbfb4fa8cccb43a1efb5ebf9591947f224af0.tar.bz2 |
Alpha-handling optimisation.
-rw-r--r-- | src/video_out/video_out_vdpau.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index d868f8d32..2ea885d2c 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -249,7 +249,6 @@ static int vdpau_process_ovl( vdpau_driver_t *this_gen, vo_overlay_t *overlay ) uint8_t *hili_trans = overlay->hili_trans; clut_t *colors; uint8_t *trans; - uint8_t src_alpha; int rlelen = 0; uint8_t clr = 0; int i, pos=0, x, y; @@ -267,12 +266,11 @@ static int vdpau_process_ovl( vdpau_driver_t *this_gen, vo_overlay_t *overlay ) } rlelen = rle->len; clr = rle->color; - src_alpha = trans[clr]; for ( i=0; i<rlelen; ++i ) { red = colors[clr].y; /* red */ green = colors[clr].cr; /* green */ blue = colors[clr].cb; /* blue */ - alpha = src_alpha*255/15; + alpha = trans[clr]*255/15; *rgba = (alpha<<24) | (red<<16) | (green<<8) | blue; rgba++; ++pos; |