Mercurial > mplayer.hg
comparison libmenu/menu.c @ 31082:92f88bb315c5
Add support for 12-bit color mode on framebuffer devices.
Patch Janusz Krzysztofik, jkrzyszt A tis icnet pl
author | cehoyos |
---|---|
date | Thu, 06 May 2010 10:18:25 +0000 |
parents | d218228dc74d |
children | 7f16631c1de0 |
comparison
equal
deleted
inserted
replaced
31081:09b714720a80 | 31082:92f88bb315c5 |
---|---|
374 | 374 |
375 typedef void (*draw_alpha_f)(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride); | 375 typedef void (*draw_alpha_f)(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride); |
376 | 376 |
377 inline static draw_alpha_f get_draw_alpha(uint32_t fmt) { | 377 inline static draw_alpha_f get_draw_alpha(uint32_t fmt) { |
378 switch(fmt) { | 378 switch(fmt) { |
379 case IMGFMT_BGR12: | |
380 case IMGFMT_RGB12: | |
381 return vo_draw_alpha_rgb12; | |
379 case IMGFMT_BGR15: | 382 case IMGFMT_BGR15: |
380 case IMGFMT_RGB15: | 383 case IMGFMT_RGB15: |
381 return vo_draw_alpha_rgb15; | 384 return vo_draw_alpha_rgb15; |
382 case IMGFMT_BGR16: | 385 case IMGFMT_BGR16: |
383 case IMGFMT_RGB16: | 386 case IMGFMT_RGB16: |