summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2002-09-04 00:37:53 +0000
committerRobin KAY <komadori@users.sourceforge.net>2002-09-04 00:37:53 +0000
commitfcf7dcb92dfbe4262e749252d1f33944008a5c39 (patch)
treeb04c6ce2f59f50357656cfecc1d788228986e92e /src
parent7c30afaca516bac07d42dc893704dea243075323 (diff)
downloadxine-lib-fcf7dcb92dfbe4262e749252d1f33944008a5c39.tar.gz
xine-lib-fcf7dcb92dfbe4262e749252d1f33944008a5c39.tar.bz2
Added support for alphablending
CVS patchset: 2597 CVS date: 2002/09/04 00:37:53
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_pgx64.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/video_out/video_out_pgx64.c b/src/video_out/video_out_pgx64.c
index a8e2aa600..04418e359 100644
--- a/src/video_out/video_out_pgx64.c
+++ b/src/video_out/video_out_pgx64.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_pgx64.c,v 1.1 2002/08/16 14:56:42 komadori Exp $
+ * $Id: video_out_pgx64.c,v 1.2 2002/09/04 00:37:53 komadori Exp $
*
* video_out_pgx64.c, Sun PGX64/PGX24 output plugin for xine
*
@@ -44,6 +44,7 @@
#include "video_out_x11.h"
#include "xine_internal.h"
#include "xineutils.h"
+#include "alphablend.h"
#define ADDRSPACE 8388608
#define REGBASE 8386560
@@ -490,6 +491,14 @@ static void pgx64_display_frame(pgx64_driver_t *this, pgx64_frame_t *frame)
static void pgx64_overlay_blend(pgx64_driver_t *this, pgx64_frame_t *frame, vo_overlay_t *overlay)
{
+ if (overlay->rle) {
+ if (frame->format == IMGFMT_YV12) {
+ blend_yuv(frame->vo_frame.base, overlay, frame->width, frame->height);
+ }
+ else {
+ blend_yuy2(frame->vo_frame.base[0], overlay, frame->width, frame->height);
+ }
+ }
}
static int pgx64_get_property(pgx64_driver_t *this, int property)