[MPlayer-dev-eng] [PATCH] Add missing rgb12 version of the fast osd table
Janusz Krzysztofik
jkrzyszt at tis.icnet.pl
Wed May 26 01:19:38 CEST 2010
Fast osd table is apparently missing from recently added rgb12 video output
support. Add it for completness.
Created against mplayer svn revision 31217.
Signed-off-by: Janusz Krzysztofik <jkrzyszt at tis.icnet.pl>
---
--- libvo/osd.c.orig 2010-05-25 19:24:35.000000000 +0200
+++ libvo/osd.c 2010-05-26 00:57:49.000000000 +0200
@@ -284,6 +284,7 @@ void vo_draw_alpha_rgb32(int w,int h, un
}
#ifdef FAST_OSD_TABLE
+static unsigned short fast_osd_12bpp_table[256];
static unsigned short fast_osd_15bpp_table[256];
static unsigned short fast_osd_16bpp_table[256];
#endif
@@ -292,6 +293,7 @@ void vo_draw_alpha_init(void){
#ifdef FAST_OSD_TABLE
int i;
for(i=0;i<256;i++){
+ fast_osd_12bpp_table[i]=((i>>4)<< 8)|((i>>4)<<4)|(i>>4);
fast_osd_15bpp_table[i]=((i>>3)<<10)|((i>>3)<<5)|(i>>3);
fast_osd_16bpp_table[i]=((i>>3)<<11)|((i>>2)<<5)|(i>>3);
}
More information about the MPlayer-dev-eng
mailing list