mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
Add missing RGB12 version of the fast OSD table.
patch by Janusz Krzysztofik, jkrzyszt tis.icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31221 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ab1c858071
commit
7bb3c3b681
@ -284,6 +284,7 @@ void vo_draw_alpha_rgb32(int w,int h, unsigned char* src, unsigned char *srca, i
|
||||
}
|
||||
|
||||
#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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user