Mercurial > mplayer.hg
comparison vidix/mach64_vid.c @ 23048:7973a6935234
removed useless code from vidix drivers
author | ben |
---|---|
date | Sun, 22 Apr 2007 15:18:48 +0000 |
parents | 82216ef041e0 |
children | a74bda857a3c |
comparison
equal
deleted
inserted
replaced
23047:702085652768 | 23048:7973a6935234 |
---|---|
768 } | 768 } |
769 dest_w = config->dest.w; | 769 dest_w = config->dest.w; |
770 dest_h = config->dest.h; | 770 dest_h = config->dest.h; |
771 besr.fourcc = config->fourcc; | 771 besr.fourcc = config->fourcc; |
772 ecp = (INPLL(PLL_VCLK_CNTL) & PLL_ECP_DIV) >> 4; | 772 ecp = (INPLL(PLL_VCLK_CNTL) & PLL_ECP_DIV) >> 4; |
773 #if 0 | 773 |
774 { | |
775 int i; | |
776 for(i=0; i<32; i++){ | |
777 printf("%X ", INPLL(i)); | |
778 } | |
779 } | |
780 #endif | |
781 if(__verbose>0) printf("[mach64] ecp: %d\n", ecp); | 774 if(__verbose>0) printf("[mach64] ecp: %d\n", ecp); |
782 v_inc = src_h * mach64_get_vert_stretch(); | 775 v_inc = src_h * mach64_get_vert_stretch(); |
783 | 776 |
784 if(mach64_is_interlace()) v_inc<<=1; | 777 if(mach64_is_interlace()) v_inc<<=1; |
785 if(mach64_is_dbl_scan() ) v_inc>>=1; | 778 if(mach64_is_dbl_scan() ) v_inc>>=1; |
947 for(i=0; i<3; i++) | 940 for(i=0; i<3; i++) |
948 { | 941 { |
949 off[i] = mach64_buffer_base[frame][i]; | 942 off[i] = mach64_buffer_base[frame][i]; |
950 off[i+3]= mach64_buffer_base[last_frame][i]; | 943 off[i+3]= mach64_buffer_base[last_frame][i]; |
951 } | 944 } |
952 | |
953 #if 0 // delay routine so the individual frames can be ssen better | |
954 { | |
955 volatile int i=0; | |
956 for(i=0; i<10000000; i++); | |
957 } | |
958 #endif | |
959 | 945 |
960 mach64_wait_for_idle(); | 946 mach64_wait_for_idle(); |
961 mach64_fifo_wait(7); | 947 mach64_fifo_wait(7); |
962 | 948 |
963 OUTREG(SCALER_BUF0_OFFSET, off[0]); | 949 OUTREG(SCALER_BUF0_OFFSET, off[0]); |