⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osd_dat.h

📁 液晶电视OSD代码
💻 H
字号:
////////////////////////////////////////////////////////////////////////////////
//    Genesis Microchip, Inc.
// This file was generated by Genesis Workbench. PLEASE DO NOT EDIT MANUALLY
////////////////////////////////////////////////////////////////////////////////

#ifndef OSD_DAT_H_DEFINED
#define OSD_DAT_H_DEFINED

// User Events defenition

extern BYTE ROM B_OE_EnterState;
extern BYTE ROM B_OE_ExitState;
extern BYTE ROM B_OE_RemoveOSD;
extern BYTE ROM B_OE_ValidMode;
extern BYTE ROM B_OE_NoSync;
extern BYTE ROM B_OE_OutOfRange;
extern BYTE ROM B_OE_NoCable;
extern BYTE ROM B_OE_OSDTimeout;
extern BYTE ROM B_OE_AnyEvent;
extern BYTE ROM B_OE_Idle;
extern BYTE ROM B_OE_TransitionComplete;

typedef enum UserEventsEnum
{
	// OE_None = 0,
	OE_EnterState = 1,
	OE_ExitState = 2,
	OE_RightDown = 3,
	OE_LeftDown = 4,
	OE_OneDown = 5,
	OE_TwoDown = 6,
	OE_OsdCustomTimeOut = 7,
	OE_Exit = 8,
	OE_NextInputSource = 9,// to select next available source
	OE_Aging = 10,
	OE_PowerOff = 11,
	OE_PowerOn = 12,
	OE_RemoveOSD = 13,
	OE_ValidMode = 14,
	OE_NoSync = 15,
	OE_OutOfRange = 16,
	OE_NoCable = 17,
	OE_OSDTimeout = 18,
	OE_SplashScreenTimeout = 19,
	OE_AutoAdjustComplete = 20,// auto adjust was successful
	OE_Factory = 21,
	OE_AnyEvent = 22,
	OE_OneUp = 23,
	OE_PowerDownNotice = 24,
	OE_PseudoMode = 25,// Sent by the mode handler when the mode is not recognized but is close to a valid mode
	OE_SplashScreen = 26,
	OE_StartPowerDown = 27,// system decided to go to Power OFF mode
	OE_AnalogInput = 28,// signal detected on VGA port
	OE_AutoAdjSuccess = 29,
	OE_AutoAdjustFailed = 30,// auto adjust failed
	OE_AutoAdjustStart = 31,// system is going to start auto adjust on the next pass of the main loop
	OE_DigitalInput = 32,// signal detected on DVI port
	OE_ExitPowerSaving = 33,// system is coming out of DPMS mode
	OE_Idle = 34,
	OE_InternalPatterns = 35,
	OE_InvalidMode = 36,
	OE_PowerDownNow = 37,// system will enter the power OFF state on the next pass of the main loop
	OE_PowerSavingNow = 38,// system will enter the DPMS state on the next pass of the main loop
	OE_PowerUp = 39,// coming out Power OFF mode
	OE_Sleep = 40,
	OE_StartPowerSaving = 41,// system decided to enter DPMS mode
	OE_SystemStartUp = 42,// coming out of AC power off or hard reset
	OE_TransitionComplete = 43
} UserEvents;

/*

Begin block defined in libs

#define SAT_CB_00_EVT_SHIFT		0x0003
#define SAT_CB_10_EVT_SHIFT		0x0002
#define SAT_CB_11_MAC_SHIFT		0x0002

#define SAT_CB_00_EVT_MASK		(BIT3 | BIT4 | BIT5)
#define SAT_CB_00_ACT_MASK		(BIT0 | BIT1 | BIT2)

#define SAT_CB_10_EVT_MASK		(BIT2 | BIT3 | BIT4 | BIT5)
#define SAT_CB_10_CND_MASK		(BIT0 | BIT1)

#define SAT_CB_11_MAC_MASK		(BIT2 | BIT3 | BIT4)
#define SAT_CB_11_CND_MASK		(BIT0 | BIT1)
#define SAT_CB_11_ATREF		(BIT5)
#define SAT_CB_11_ATREF_MASK		(BIT4 | BIT3 | BIT2 | BIT1 | BIT0)

#define SAT_CB_MASK		(BIT7 | BIT6)

#define Fit_00(Event,Action)		(((Event) << SAT_CB_00_EVT_SHIFT) | (Action))
#define Fit_10(Event,CndCtrl)		(((Event) << SAT_CB_10_EVT_SHIFT) | (CndCtrl))
#define Fit_11(CndCtrl, MultiActn)		(((MultiActn) << SAT_CB_11_MAC_SHIFT) | (CndCtrl))



End block defined in libs*/

#define OSD_WB_USED		
#define NO_OPERAND		0

// States enum definition
typedef enum MainThreadStateEnum
{
	SID_DefaultState = 0,// SID_DefaultState
	SID_MainDlg = 1,// SID_MainDlg
	SID_YesNoDlg = 2,// SID_YesNoDlg
	SID_NoSignalDlg = 3,// SID_NoSignalDlg
	SID_OutOfRangeDlg = 4,// SID_OutOfRangeDlg
	SID_YesNoAutoColorDlg = 5,// SID_YesNoAutoColorDlg
	SID_ValidModeState = 6,// SID_ValidModeState
	SID_SleepState = 7,// SID_SleepState
	SID_PowerOffState = 8,// SID_PowerOffState
	SID_SplashScreenState = 9,// SID_SplashScreenState
	SID_NoCableDlg = 10,// SID_NoCableDlg
	SID_UpdateOsdDrectionState = 11,// SID_UpdateOsdDrectionState
	SID_FactoryDialog = 12,// SID_FactoryDialog
	SID_MLockTransitState = 13,// SID_MLockTransitState
	SID_MLockedMenu = 14,// SID_MLockedMenu
	SID_FactoryResetTransitState = 15,// SID_FactoryResetTransitState
	SID_TestPatternAging = 16,// SID_TestPatternAging
	SID_AutoAdjustWait = 17,// SID_AutoAdjustWait
	SID_VolumaAdjust = 18,// SID_VolumaAdjust
	SID_DoAutoAdjust = 19,// SID_DoAutoAdjust
	SID_brightadjust = 20,// SID_brightadjust
	SID_contrasadjust = 21,// SID_contrasadjust
	SID_Rectangle0 = 22,// SID_Rectangle0
	SID_InvMainDil = 23,// SID_InvMainDil
	SID_InvColorDlg = 24,// SID_InvColorDlg
	SID_InvLangDlg = 25,// SID_InvLangDlg
	SID_Osd = 26,// SID_Osd
	SID_mask1 = 27,// SID_mask1
	SID_mask2 = 28,// SID_mask2
	SID_mask3 = 29,// SID_mask3
	SID_TimingInfo0 = 30,// SID_TimingInfo0
	SID_Brightness = 31,// SID_Brightness
	SID_Contrast = 32,// SID_Contrast
	SID_Hpos = 33,// SID_Hpos
	SID_Vpos = 34,// SID_Vpos
	SID_Hsize = 35,// SID_Hsize
	SID_Phase = 36,// SID_Phase
	SID_MainAuto = 37,// SID_MainAuto
	SID_Color = 38,// SID_Color
	SID_Lang = 39,// SID_Lang
	SID_OSDSet = 40,// SID_OSDSet
	SID_MainRst = 41,// SID_MainRst
	SID_MainExit = 42,// SID_MainExit
	SID_InvBright = 43,// SID_InvBright
	SID_BrightText = 44,// SID_BrightText
	SID_BrightSlider = 45,// SID_BrightSlider
	SID_BrightValue = 46,// SID_BrightValue
	SID_InvContrast = 47,// SID_InvContrast
	SID_ContrastText = 48,// SID_ContrastText
	SID_ContrastSlider = 49,// SID_ContrastSlider
	SID_ContrastValue = 50,// SID_ContrastValue
	SID_InvHpos = 51,// SID_InvHpos
	SID_HposText = 52,// SID_HposText
	SID_HposSlider = 53,// SID_HposSlider
	SID_HposValue = 54,// SID_HposValue
	SID_InvVpos = 55,// SID_InvVpos
	SID_VposText = 56,// SID_VposText
	SID_VposSlider = 57,// SID_VposSlider
	SID_VposValue = 58,// SID_VposValue
	SID_InvHsize = 59,// SID_InvHsize
	SID_HsizeText = 60,// SID_HsizeText
	SID_HsizeSlider = 61,// SID_HsizeSlider
	SID_HsizeValue = 62,// SID_HsizeValue
	SID_InvPhase = 63,// SID_InvPhase
	SID_PhaseText = 64,// SID_PhaseText
	SID_PhaseSlider = 65,// SID_PhaseSlider
	SID_PhaValuese = 66,// SID_PhaValuese
	SID_MainAutoText = 67,// SID_MainAutoText
	SID_ColorText = 68,// SID_ColorText
	SID_LangText = 69,// SID_LangText
	SID_OSDSetText = 70,// SID_OSDSetText
	SID_MainRstText = 71,// SID_MainRstText
	SID_MainExitText = 72,// SID_MainExitText
	SID_Red = 73,// SID_Red
	SID_Green = 74,// SID_Green
	SID_Blue = 75,// SID_Blue
	SID_6500k = 76,// SID_6500k
	SID_9300k = 77,// SID_9300k
	SID_sRGB = 78,// SID_sRGB
	SID_CAutoColor = 79,// SID_CAutoColor
	SID_ColorExit = 80,// SID_ColorExit
	SID_InvRed = 81,// SID_InvRed
	SID_RedText = 82,// SID_RedText
	SID_RedSlider = 83,// SID_RedSlider
	SID_RedValue = 84,// SID_RedValue
	SID_InvGreen = 85,// SID_InvGreen
	SID_GreenText = 86,// SID_GreenText
	SID_GreenSlider = 87,// SID_GreenSlider
	SID_GreenValue = 88,// SID_GreenValue
	SID_InvBlue = 89,// SID_InvBlue
	SID_BlueText = 90,// SID_BlueText
	SID_BlueSlider = 91,// SID_BlueSlider
	SID_BlueValue = 92,// SID_BlueValue
	SID_6500kText = 93,// SID_6500kText
	SID_9300kText = 94,// SID_9300kText
	SID_sRGBText = 95,// SID_sRGBText
	SID_AColorText = 96,// SID_AColorText
	SID_CExitText = 97,// SID_CExitText
	SID_English = 98,// SID_English
	SID_ChineseS = 99,// SID_ChineseS
	SID_ChineseT = 100,// SID_ChineseT
	SID_France = 101,// SID_France
	SID_German = 102,// SID_German
	SID_Italian = 103,// SID_Italian
	SID_Spanish = 104,// SID_Spanish
	SID_LangExit = 105,// SID_LangExit
	SID_EnglishText = 106,// SID_EnglishText
	SID_ChineseSText = 107,// SID_ChineseSText
	SID_ChineseTText = 108,// SID_ChineseTText
	SID_FranceText = 109,// SID_FranceText
	SID_GermanText = 110,// SID_GermanText
	SID_ItalianText = 111,// SID_ItalianText
	SID_SpanishText = 112,// SID_SpanishText
	SID_LangExitText = 113,// SID_LangExitText
	SID_OSDHpos = 114,// SID_OSDHpos
	SID_OSDVpos = 115,// SID_OSDVpos
	SID_OSDTime = 116,// SID_OSDTime
	SID_720Mode = 117,// SID_720Mode
	SID_Beep = 118,// SID_Beep
	SID_DVIVGA = 119,// SID_DVIVGA
	SID_OSDExit = 120,// SID_OSDExit
	SID_InvOSDHpos = 121,// SID_InvOSDHpos
	SID_OSDHposText = 122,// SID_OSDHposText
	SID_OSDHposSlider = 123,// SID_OSDHposSlider
	SID_OSDHposValue = 124,// SID_OSDHposValue
	SID_InvOSDVpos = 125,// SID_InvOSDVpos
	SID_OSDVposText = 126,// SID_OSDVposText
	SID_OSDVposSlider = 127,// SID_OSDVposSlider
	SID_OSDVposValue = 128,// SID_OSDVposValue
	SID_InvOSDTime = 129,// SID_InvOSDTime
	SID_OSDTimeText = 130,// SID_OSDTimeText
	SID_OSDTimeValue = 131,// SID_OSDTimeValue
	SID_OSDTimeSlider = 132,// SID_OSDTimeSlider
	SID_DOSModeText = 133,// SID_DOSModeText
	SID_BeepText = 134,// SID_BeepText
	SID_DVIVGAText = 135,// SID_DVIVGAText
	SID_OSDExitText = 136,// SID_OSDExitText
	SID_Happy = 137,// SID_Happy
	SID_Sad = 138,// SID_Sad
	SID_OutOfRangeText1 = 139,// SID_OutOfRangeText1
	SID_HappyAutoColor = 140,// SID_HappyAutoColor
	SID_SadAutoColor = 141,// SID_SadAutoColor
	SID_LogoBitmap = 142,// SID_LogoBitmap
	SID_InvFactorySetup = 143,// SID_InvFactorySetup
	SID_InvADC = 144,// SID_InvADC
	SID_InvColorTemperature = 145,// SID_InvColorTemperature
	SID_InvTimer = 146,// SID_InvTimer
	SID_InvChipAccess = 147,// SID_InvChipAccess
	SID_Blending = 148,// SID_Blending
	SID_Timer = 149,// SID_Timer
	SID_BurnInMode = 150,// SID_BurnInMode
	SID_ChipAccess = 151,// SID_ChipAccess
	SID_ClearUserPrefNVRAM = 152,// SID_ClearUserPrefNVRAM
	SID_FactorysetupADC = 153,// SID_FactorysetupADC
	SID_FactorysetupColorTemp = 154,// SID_FactorysetupColorTemp
	SID_RestoreFactoryDefaultNVRAM = 155,// SID_RestoreFactoryDefaultNVRAM
	SID_AllowHDSource = 156,// SID_AllowHDSource
	SID_InvBlend = 157,// SID_InvBlend
	SID_BlendValue = 158,// SID_BlendValue
	SID_ON = 159,// SID_ON
	SID_OFF = 160,// SID_OFF
	SID_Yes = 161,// SID_Yes
	SID_No = 162,// SID_No
	SID_RestoreYes = 163,// SID_RestoreYes
	SID_RestoreNo = 164,// SID_RestoreNo
	SID_HDYes = 165,// SID_HDYes
	SID_HDNo = 166,// SID_HDNo
	SID_Gain = 167,// SID_Gain
	SID_AutoColor = 168,// SID_AutoColor
	SID_AutoADCCalib = 169,// SID_AutoADCCalib
	SID_FactoryGainSetting = 170,// SID_FactoryGainSetting
	SID_RGainslider = 171,// SID_RGainslider
	SID_GGainSlider = 172,// SID_GGainSlider
	SID_BGainSlider = 173,// SID_BGainSlider
	SID_AutoYes = 174,// SID_AutoYes
	SID_AutoNo = 175,// SID_AutoNo
	SID_4200K = 176,// SID_4200K
	SID_5000K = 177,// SID_5000K
	SID_6500K = 178,// SID_6500K
	SID_7500K = 179,// SID_7500K
	SID_9300K = 180,// SID_9300K
	SID_sRGBButton = 181,// SID_sRGBButton
	SID_UserButton = 182,// SID_UserButton
	SID_BrightnessControl = 183,// SID_BrightnessControl
	SID_ContrastsRGBControl = 184,// SID_ContrastsRGBControl
	SID_Inv4200K = 185,// SID_Inv4200K
	SID_Red4200KBtn = 186,// SID_Red4200KBtn
	SID_Green4200KBtn = 187,// SID_Green4200KBtn
	SID_Blue4200KBtn = 188,// SID_Blue4200KBtn
	SID_Inv5000K = 189,// SID_Inv5000K
	SID_Red5000KBtn = 190,// SID_Red5000KBtn
	SID_Green5000KBtn = 191,// SID_Green5000KBtn
	SID_Blue5000KBtn = 192,// SID_Blue5000KBtn
	SID_Inv6500K = 193,// SID_Inv6500K
	SID_Red6500KBtn = 194,// SID_Red6500KBtn
	SID_Green6500KBtn = 195,// SID_Green6500KBtn
	SID_Blue6500KBtn = 196,// SID_Blue6500KBtn
	SID_Inv7500K = 197,// SID_Inv7500K
	SID_Red7500KBtn = 198,// SID_Red7500KBtn
	SID_Green7500KBtn = 199,// SID_Green7500KBtn
	SID_Blue7500KBtn = 200,// SID_Blue7500KBtn
	SID_Inv9300K = 201,// SID_Inv9300K
	SID_Red9300KBtn = 202,// SID_Red9300KBtn
	SID_Green9300KBtn = 203,// SID_Green9300KBtn
	SID_Blue9300KBtn = 204,// SID_Blue9300KBtn
	SID_InvsRGB = 205,// SID_InvsRGB
	SID_RedsRGBBtn = 206,// SID_RedsRGBBtn
	SID_GreensRGBBtn = 207,// SID_GreensRGBBtn
	SID_BluesRGBBtn = 208,// SID_BluesRGBBtn
	SID_InvUser = 209,// SID_InvUser
	SID_RedUserBtn = 210,// SID_RedUserBtn
	SID_GreenUserBtn = 211,// SID_GreenUserBtn
	SID_BlueUserBtn = 212,// SID_BlueUserBtn
	SID_InvBrightControl = 213,// SID_InvBrightControl
	SID_FactoryBrightnessValue = 214,// SID_FactoryBrightnessValue
	SID_InvcontrastsRGBControl = 215,// SID_InvcontrastsRGBControl
	SID_FactorysRGBContrastValue = 216,// SID_FactorysRGBContrastValue
	SID_MonitorOnTime = 217,// SID_MonitorOnTime
	SID_MonitorOnTimeValue = 218,// SID_MonitorOnTimeValue
	SID_BackLightOnTime = 219,// SID_BackLightOnTime
	SID_BackLightOnTimeValue = 220,// SID_BackLightOnTimeValue
	SID_PowerOnTimes = 221,// SID_PowerOnTimes
	SID_PowerOnTimeValue = 222,// SID_PowerOnTimeValue
	SID_AddressEntry = 223,// SID_AddressEntry
	SID_ValueEntry = 224,// SID_ValueEntry
	SID_gmChipRead = 225,// SID_gmChipRead
	SID_gmChipWrite = 226,// SID_gmChipWrite
	SID_MLockedIcon = 227,// SID_MLockedIcon
	SID_VolumaAdjustSlide = 228,// SID_VolumaAdjustSlide
	SID_VolumaValue = 229,// SID_VolumaValue
	SID_VolumaText = 230,// SID_VolumaText
	SID_VolumaIcon = 231,// SID_VolumaIcon
	SID_DoAutoAdjustText = 232,// SID_DoAutoAdjustText
	SID_brightAdjustSlide1 = 233,// SID_brightAdjustSlide1
	SID_brightaValue1 = 234,// SID_brightaValue1
	SID_brightText1 = 235,// SID_brightText1
	SID_brightaIcon1 = 236,// SID_brightaIcon1
	SID_contrasAdjustSlide2 = 237,// SID_contrasAdjustSlide2
	SID_contrasValue2 = 238,// SID_contrasValue2
	SID_contrasText2 = 239,// SID_contrasText2
	SID_contrasIcon2 = 240// SID_contrasIcon2
};

extern BYTE ROM St_DefaultState[];

extern BYTE ROM * ROM GlobalStateSet[];

#define MainThreadGlobalStateSet		GlobalStateSet
#define NUMBER_OF_THREADS 1

// User Timers definition

extern BYTE ROM B_OSD_TimeoutTid;
typedef enum TimerOpIDEnum
{
	B_OsdCustomTimerTid = 0,
	B_OsdSplashScreenTimerTid = 1
};


extern WORD ROM W_OsdTimerResolution;

#define OSD_TIMERS_NUM		3
extern WORD gW_OsdTimers[OSD_TIMERS_NUM];

extern BYTE gB_OsdTimerStart[OSD_TIMERS_NUM];

extern BYTE ROM gB_OsdTimerEvents[];


// State Action Table definition
typedef enum ActionTableEnum
{
	ATID_PowerOffEVT,
	ATID_RemoveMenuEVT,
	ATID_OsdTimeOut,
	ATID_ResetOsdTimerTbl,
	ATID_AutoAndExitEVT,
	ATID_AutoAndExitEVT_SubColor,
	ATID_AutoAndExitEVT_SubLang,
	ATID_AutoAndExitEVT_SubMisc,
	ATID_AutoEVT
};

extern BYTE ROM * ROM ActTableSet[];

// Block ID Enum
// Block ID Enum
// Block ID Enum

#endif  // ifndef OSD_DAT_H_DEFINED

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -