Mercurial > mplayer.hg
comparison libvo/vo_vesa.c @ 12926:6eb8d78e2d47
10l query format at least when used with vidix, disable colorkeying with vidix, should fix #38 and #33
author | faust3 |
---|---|
date | Sun, 01 Aug 2004 11:17:27 +0000 |
parents | 430a71a762b4 |
children | c10922751a8e |
comparison
equal
deleted
inserted
replaced
12925:2abd8e24eb69 | 12926:6eb8d78e2d47 |
---|---|
463 | 463 |
464 static uint32_t query_format(uint32_t format) | 464 static uint32_t query_format(uint32_t format) |
465 { | 465 { |
466 if(verbose > 2) | 466 if(verbose > 2) |
467 printf("vo_vesa: query_format was called: %x (%s)\n",format,vo_format_name(format)); | 467 printf("vo_vesa: query_format was called: %x (%s)\n",format,vo_format_name(format)); |
468 #ifdef CONFIG_VIDIX | |
469 if(vidix_name)return(vidix_query_fourcc(format)); | |
470 #endif | |
468 return 1 | VFCAP_OSD | VFCAP_SWSCALE | VFCAP_ACCEPT_STRIDE; /* due new SwScale code */ | 471 return 1 | VFCAP_OSD | VFCAP_SWSCALE | VFCAP_ACCEPT_STRIDE; /* due new SwScale code */ |
469 } | 472 } |
470 | 473 |
471 static void paintBkGnd( void ) | 474 static void paintBkGnd( void ) |
472 { | 475 { |
980 /* set colorkey */ | 983 /* set colorkey */ |
981 if (vidix_grkey_support()) | 984 if (vidix_grkey_support()) |
982 { | 985 { |
983 vidix_grkey_get(&gr_key); | 986 vidix_grkey_get(&gr_key); |
984 gr_key.key_op = KEYS_PUT; | 987 gr_key.key_op = KEYS_PUT; |
988 #if 0 | |
985 if (!(vo_colorkey & 0xFF000000)) | 989 if (!(vo_colorkey & 0xFF000000)) |
986 { | 990 { |
987 gr_key.ckey.op = CKEY_TRUE; | 991 gr_key.ckey.op = CKEY_TRUE; |
988 gr_key.ckey.red = (vo_colorkey & 0x00FF0000) >> 16; | 992 gr_key.ckey.red = (vo_colorkey & 0x00FF0000) >> 16; |
989 gr_key.ckey.green = (vo_colorkey & 0x0000FF00) >> 8; | 993 gr_key.ckey.green = (vo_colorkey & 0x0000FF00) >> 8; |
990 gr_key.ckey.blue = vo_colorkey & 0x000000FF; | 994 gr_key.ckey.blue = vo_colorkey & 0x000000FF; |
991 } else | 995 } else |
996 #endif | |
992 gr_key.ckey.op = CKEY_FALSE; | 997 gr_key.ckey.op = CKEY_FALSE; |
993 vidix_grkey_set(&gr_key); | 998 vidix_grkey_set(&gr_key); |
994 } | 999 } |
995 vidix_opened = 1; | 1000 vidix_opened = 1; |
996 } | 1001 } |