comparison libvo/vo_svga.c @ 11158:85f4534d1edb

Colorkeying can be disabled. Fbdev, svga and vesa vidix colorkeying support by Jake Page <jake@CS.Stanford.EDU>
author alex
date Fri, 17 Oct 2003 09:08:37 +0000
parents 6e35326c742f
children 30eccb0d1a64
comparison
equal deleted inserted replaced
11157:c470a29b500b 11158:85f4534d1edb
103 "" 103 ""
104 }; 104 };
105 105
106 #ifdef CONFIG_VIDIX 106 #ifdef CONFIG_VIDIX
107 static char vidix_name[32] = ""; 107 static char vidix_name[32] = "";
108 static vidix_grkey_t gr_key;
108 #endif 109 #endif
109 110
110 LIBVO_EXTERN(svga) 111 LIBVO_EXTERN(svga)
111 112
112 113
524 vidix_init(width, height, x_pos, y_pos, modeinfo->width, modeinfo->height, 525 vidix_init(width, height, x_pos, y_pos, modeinfo->width, modeinfo->height,
525 format, mode_bpp, modeinfo->width,modeinfo->height); 526 format, mode_bpp, modeinfo->width,modeinfo->height);
526 printf("vo_svga: Using VIDIX. w=%i h=%i mw=%i mh=%i\n",width,height, 527 printf("vo_svga: Using VIDIX. w=%i h=%i mw=%i mh=%i\n",width,height,
527 modeinfo->width,modeinfo->height); 528 modeinfo->width,modeinfo->height);
528 vidix_start(); 529 vidix_start();
530 /*set colorkey*/
531 if(vidix_grkey_support()){
532 vidix_grkey_get(&gr_key);
533 gr_key.key_op = KEYS_PUT;
534 if (vo_colorkey != 0xFF000000) {
535 gr_key.ckey.op = CKEY_TRUE;
536 gr_key.ckey.red = (vo_colorkey & 0x00FF0000) >> 16;
537 gr_key.ckey.green = (vo_colorkey & 0x0000FF00) >> 8;
538 gr_key.ckey.blue = vo_colorkey & 0x000000FF;
539 } else
540 gr_key.ckey.op = CKEY_FALSE;
541 vidix_grkey_set(&gr_key);
542 }
529 } 543 }
530 #endif 544 #endif
531 545
532 vga_setdisplaystart(0); 546 vga_setdisplaystart(0);
533 return (0); 547 return (0);