[MPlayer-cvslog] CVS: main/libvo osd_template.c,1.22,1.23

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Sep 13 23:41:47 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv18590

Modified Files:
	osd_template.c 
Log Message:
Fix MMX accelerated RGB24 OSD, fixes "ugly OSD with -vo gl2".


Index: osd_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/osd_template.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- osd_template.c	21 Oct 2004 11:55:20 -0000	1.22
+++ osd_template.c	13 Sep 2005 21:41:44 -0000	1.23
@@ -213,9 +213,10 @@
 		"paddb	%%mm6, %%mm2\n\t"
 		"punpcklbw %%mm2, %%mm2\n\t" // srca AABBCCDD
 		"punpcklbw %%mm2, %%mm2\n\t" // srca AAAABBBB
+		"psrlq  $8, %%mm2\n\t" // srca AAABBBB0
 		"movq	%%mm2, %%mm3\n\t"
-		"punpcklbw %%mm7, %%mm2\n\t" // srca 0A0A0A0A
-		"punpckhbw %%mm7, %%mm3\n\t" // srca 0B0B0B0B
+		"punpcklbw %%mm7, %%mm2\n\t" // srca 0A0A0A0B
+		"punpckhbw %%mm7, %%mm3\n\t" // srca 0B0B0B00
 		"pmullw	%%mm2, %%mm0\n\t"
 		"pmullw	%%mm3, %%mm1\n\t"
 		"psrlw	$8, %%mm0\n\t"
@@ -224,6 +225,7 @@
 		"movd %2, %%mm2	\n\t" // src ABCD0000
 		"punpcklbw %%mm2, %%mm2\n\t" // src AABBCCDD
 		"punpcklbw %%mm2, %%mm2\n\t" // src AAAABBBB
+		"psrlq  $8, %%mm2\n\t" // src AAABBBB0
 		"paddb	%%mm2, %%mm0\n\t"
 		"pand	%4, %%mm5\n\t"
 		"pand	%3, %%mm0\n\t"




More information about the MPlayer-cvslog mailing list