Mercurial > mplayer.hg
comparison vidix/drivers/mach64_vid.c @ 4851:f85d5a17d782
colorkey support
author | michael |
---|---|
date | Sun, 24 Feb 2002 21:27:47 +0000 |
parents | 75f2935e9984 |
children | 2853640cea58 |
comparison
equal
deleted
inserted
replaced
4850:13ea8fab37dd | 4851:f85d5a17d782 |
---|---|
528 // bit 5-6 gamma correction | 528 // bit 5-6 gamma correction |
529 // bit 7 nothing visible if set | 529 // bit 7 nothing visible if set |
530 // bit 8-27 no effect | 530 // bit 8-27 no effect |
531 // bit 28-31 nothing interresting just crashed my system when i played with them :( | 531 // bit 28-31 nothing interresting just crashed my system when i played with them :( |
532 | 532 |
533 mach64_fifo_wait(3); | |
534 if(besr.ckey_on) | |
535 { | |
536 OUTREG(OVERLAY_GRAPHICS_KEY_MSK, besr.graphics_key_msk); | |
537 OUTREG(OVERLAY_GRAPHICS_KEY_CLR, besr.graphics_key_clr); | |
538 OUTREG(OVERLAY_KEY_CNTL,0x50); | |
539 } | |
540 else | |
541 { | |
542 OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0ULL); | |
543 OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0ULL); | |
544 OUTREG(OVERLAY_KEY_CNTL,0x50); | |
545 } | |
546 | |
533 mach64_wait_for_idle(); | 547 mach64_wait_for_idle(); |
534 vf = INREG(VIDEO_FORMAT); | 548 vf = INREG(VIDEO_FORMAT); |
535 | 549 |
536 // Bits 16-19 seem to select the format | 550 // Bits 16-19 seem to select the format |
537 // 0x0 dunno behaves strange | 551 // 0x0 dunno behaves strange |