From c5e3ac66accde09306ec0e1affaa27e26adbf2c8 Mon Sep 17 00:00:00 2001 From: nick Date: Sun, 11 Nov 2001 16:09:19 +0000 Subject: [PATCH] Cloning 32 stuff to 24 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2840 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/osd.c | 87 ++++++++++++++++++++++++++++++++++++++++++-- libvo/osd_template.c | 87 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 168 insertions(+), 6 deletions(-) diff --git a/libvo/osd.c b/libvo/osd.c index 41d239f563..b51b8b1ee7 100644 --- a/libvo/osd.c +++ b/libvo/osd.c @@ -54,11 +54,88 @@ void vo_draw_alpha_yuy2(int w,int h, unsigned char* src, unsigned char *srca, in return; } +#ifdef HAVE_MMX +static const unsigned long long mask24lh __attribute__((aligned(8))) = 0xFFFF000000000000ULL; +static const unsigned long long mask24hl __attribute__((aligned(8))) = 0x0000FFFFFFFFFFFFULL; +#endif void vo_draw_alpha_rgb24(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride){ int y; for(y=0;y