[MPlayer-cvslog] r31221 - trunk/libvo/osd.c
diego
subversion at mplayerhq.hu
Wed May 26 02:47:23 CEST 2010
Author: diego
Date: Wed May 26 02:47:22 2010
New Revision: 31221
Log:
Add missing RGB12 version of the fast OSD table.
patch by Janusz Krzysztofik, jkrzyszt tis.icnet pl
Modified:
trunk/libvo/osd.c
Modified: trunk/libvo/osd.c
==============================================================================
--- trunk/libvo/osd.c Wed May 26 01:41:30 2010 (r31220)
+++ trunk/libvo/osd.c Wed May 26 02:47:22 2010 (r31221)
@@ -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-cvslog
mailing list