comparison vidix/drivers/mach64_vid.c @ 4760:34573271ffb2

meaning of some bits figured out
author michael
date Tue, 19 Feb 2002 20:54:58 +0000
parents d681c1b1c193
children bc69f5fc18fe
comparison
equal deleted inserted replaced
4759:d681c1b1c193 4760:34573271ffb2
517 OUTREG(SCALER_BUF0_OFFSET_V, besr.vid_buf2_base_adrs); 517 OUTREG(SCALER_BUF0_OFFSET_V, besr.vid_buf2_base_adrs);
518 OUTREG(SCALER_BUF1_OFFSET, besr.vid_buf3_base_adrs); 518 OUTREG(SCALER_BUF1_OFFSET, besr.vid_buf3_base_adrs);
519 OUTREG(SCALER_BUF1_OFFSET_U, besr.vid_buf4_base_adrs); 519 OUTREG(SCALER_BUF1_OFFSET_U, besr.vid_buf4_base_adrs);
520 OUTREG(SCALER_BUF1_OFFSET_V, besr.vid_buf5_base_adrs); 520 OUTREG(SCALER_BUF1_OFFSET_V, besr.vid_buf5_base_adrs);
521 OUTREG(OVERLAY_SCALE_CNTL, 0xC4000003); 521 OUTREG(OVERLAY_SCALE_CNTL, 0xC4000003);
522 // OVERLAY_SCALE_CNTL bits & what they seem to affect
523 // bit 0 no effect
524 // bit 1 yuv2rgb coeff related
525 // bit 2 horizontal interpolation if 0
526 // bit 3 vertical interpolation if 0
527 // bit 4 chroma related
528 // bit 5-6 gamma correction
529 // bit 7 nothing visible if set
530 // bit 8-27 no effect
531 // bit 28-31 nothing interresting just crashed my system when i played with them :(
532
522 mach64_wait_for_idle(); 533 mach64_wait_for_idle();
523 vf = INREG(VIDEO_FORMAT); 534 vf = INREG(VIDEO_FORMAT);
524 535
525 // Bits 16-19 seem to select the format 536 // Bits 16-19 seem to select the format
526 // Bit 28 seems to toggle the chroma encoding 537 // Bit 28 seems to toggle something affects luma & chroma
527 // the remaining bits seem to have no effect 538 // the remaining bits seem to have no effect
528 539
529 switch(besr.fourcc) 540 switch(besr.fourcc)
530 { 541 {
531 /* 4:2:0 */ 542 /* 4:2:0 */