资源简介
Realtek-RTD2660源代码源程序-适用于7至19寸
代码片段和文件信息
/*===========================================================
* Copyright (c) Realtek Semiconductor Corporation 2005
* All rights reserved.
* ========================================================== */
/*==================== File Description ===================== */
/**
* @file
* This file is osd control declaration related functions.
*
* @author $Author: hillwang $
* @date $Date: 2006-09-07 19:38:12 +0800 (?熸??? 07 涔濇? 2006) $
* @version $Revision: 1187 $
* @ingroup Auto
*/
/**
* @addtogroup Auto
* @{
*/
#define _ADJUST_C
/*===================== Module dependency ================== */
#include “Core\Header\Include.h“
/*======================= Private Types ===================== */
/*======================== Definitions ====================== */
/*========================== Variables ====================== */
BYTE idata ucAdjustCtrl = 0;
/*=================== Local Functions Phototype ==============*/
static void CAdjustSetSharpnessTable(bit scalingBYTE code *pArray0 BYTE code *pArray1);
void CAdjustPeakingCoring(void);
void CAdjustPeakingFilter(SBYTE ucPeaking);
/*=========================== Functions ===================== */
//--------------------------------------------------
// Description : Adjust IHS delay
// Input Value : IHS delay
// Output Value : None
//--------------------------------------------------
void CAdjustIHSDelay(WORD usIHSDelay)
{
CScalerSetBit(_VGIP_HV_DELAY_1E ~_BIT0 HIBYTE(usIHSDelay) & _BIT0);
CScalerSetByte(_IHS_DELAY_1D LOBYTE(usIHSDelay));
}
//--------------------------------------------------
// Description : Adjust IVS delay
// Input Value : IVS delay
// Output Value : None
//--------------------------------------------------
void CAdjustIVSDelay(WORD usIVSDelay)
{
CScalerSetBit(_VGIP_HV_DELAY_1E ~_BIT1 (usIVSDelay >> 7) & _BIT1);
CScalerSetByte(_IVS_DELAY_1C LOBYTE(usIVSDelay));
}
//--------------------------------------------------
// Description : Adjust Dclk offset
// Input Value : Dclk offset
// Output Value : None
//--------------------------------------------------
void CAdjustDclkOffset(WORD usDclkOffset)
{
CScalerPageSelect(_PAGE1);
CScalerSetBit(_P1_DCLK_FINE_TUNE_OFFSET_MSB_C4 0xf0 HIBYTE(usDclkOffset) & 0x0f);
CScalerSetByte(_P1_DCLK_FINE_TUNE_OFFSET_LSB_C5 LOBYTE(usDclkOffset));
CScalerSetBit(_P1_DCLK_SPREAD_SPECTRUM_C6 ~_BIT2 _BIT2);
}
//--------------------------------------------------
// Description : Adjust spread spectrum range
// Input Value : Spread spectrum range
// Output Value : None
//--------------------------------------------------
void CAdjustSpreadSpectrumRange(BYTE ucSpreadRange)
{
CScalerPageSelect(_PAGE1);
CScalerSetBit(_P1_DCLK_SPREAD_SPECTRUM_C6 0x0f (ucSpreadRange << 4) & 0xf0);
CScalerSetBit(_P1_DCLK_SPREAD_SPECTRUM_C6 ~_BIT2 _BIT2);
}
//--------------------------------------------------
// D
评论
共有 条评论