diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-13 21:41:44 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-13 21:41:44 +0000 |
commit | 2f5698c9cb7f3194933ac47c01ae08b3fb9c013f (patch) | |
tree | bd336b7b6041b0cd6eba172090c28e247f41910e | |
parent | 60ee2df9921b3e3abbb0e97327e682c765fe3974 (diff) |
Fix MMX accelerated RGB24 OSD, fixes "ugly OSD with -vo gl2".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16484 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/osd_template.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libvo/osd_template.c b/libvo/osd_template.c index e2ada2ccaf..af014b9480 100644 --- a/libvo/osd_template.c +++ b/libvo/osd_template.c @@ -213,9 +213,10 @@ static inline void RENAME(vo_draw_alpha_rgb24)(int w,int h, unsigned char* src, "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 @@ static inline void RENAME(vo_draw_alpha_rgb24)(int w,int h, unsigned char* src, "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" |