printf("\r\nClock:OutputHTotal=%d", wOutputHTotal);
printf("\r\nClock:OutputVTotal=%d", wOutputVTotal);
dwClockFactor =
((float)wInputHPeriod*wInputVTotal*524288ul*PANEL_MASTER_PLL_DIVIDER)/
((float)wOutputHTotal*wOutputVTotal);
if( IsSrcUseDigitalPort() || bInterlaceMode )
dwClockFactor /= 2;
printf("\r\nSET=%x,", (dwClockFactor>>16) );
printf("%x", (WORD)dwClockFactor );
dwClockFactor = ( ((DWORD)wInputVTotal-1) * 1048576ul / (wOutputVTotal-1) +
1 );
if( IsSrcUseDigitalPort() || bInterlaceMode )
dwClockFactor /= 2;
printf("\r\nV ScalingRatio=%x,", (dwClockFactor>>16) );
printf("%x", (WORD)dwClockFactor );
1)*524288ul*PANEL_MASTER_PLL_DIVIDER) /
// ((float)wOutputHTotal * (540 - 1));
// if( IsSrcUseDigitalPort() || bInterlaceMode )
// dwClockFactor /= 2;
// printf("\r\nSET2=%x,", (dwClockFactor>>16) );
// printf("%x", (WORD)dwClockFactor );
// dwClockFactor = ( ((DWORD)wImgHeight-1) * 1048576ul / (540-1) +
msWriteByte( BK0_00, ucBank );