Mercurial > mplayer.hg
changeset 31164:4ab80ac9c2d1
Add missing RGB12 version of the fast OSD table.
patch by Janusz Krzysztofik, jkrzyszt tis.icnet pl
author | diego |
---|---|
date | Wed, 26 May 2010 00:47:22 +0000 |
parents | 07faae7acdfa |
children | 1b0e34bfb35a |
files | libvo/osd.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/osd.c Tue May 25 23:41:30 2010 +0000 +++ b/libvo/osd.c Wed May 26 00:47:22 2010 +0000 @@ -284,6 +284,7 @@ } #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 @@ #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); }