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

📄 osd_uset.h

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

#ifndef OSD_USET_H_DEFINED
#define OSD_USET_H_DEFINED

/*

Begin block defined in libs


typedef struct UP_StructureDefStruct
{
	void*	ptr;
} UP_StructureDef;


typedef struct UP_ModeSwitchersDefStruct
{
	BYTE*	ptr;
	BYTE	Number;
} UP_ModeSwitchersDef;

#define VT_MASK_TYPE		(BIT0 | BIT1)
#define VT_MASK_MIN		(BIT5)
#define VT_MASK_MAX		(BIT6)
#define VT_GROUP_IND(val)		((val >> 2) & (BIT0 | BIT1 | BIT2))
#define VT_MASK_CALC		(BIT7)



End block defined in libs*/

typedef struct ModeIndependentUserPrefTypeStruct
{
	BYTE	Brightness;
	BYTE	Contrast;
	BYTE	Color;
	WORD	HPosOSD;
	WORD	VPosOSD;
	BYTE	Switches;
	BYTE	OSDTimeout;
	BYTE	OverlappedMode;
	BYTE	AdcRedOffset2;
	BYTE	AdcGreenOffset2;
	BYTE	AdcBlueOffset2;
	WORD	AdcRedGain;
	WORD	AdcGreenGain;
	WORD	AdcBlueGain;
	SBYTE	ACMFleshToneGain;
	SBYTE	ACMColorGain;
	SBYTE	ACMGreenGain;
	BYTE	RedColor;
	BYTE	GreenColor;
	BYTE	BlueColor;
	BYTE	OSDLanguage;
	SBYTE	TestPatternStatus;
	SBYTE	Sharpness;
	BYTE	Hue;
	BYTE	Saturation;
	WORD	W_OsdAccAcmFlag;
	SBYTE	AllowHDSource;
	BYTE	LockUnlockOSD;
	SBYTE	AdcRedOffset2YUV;
	SBYTE	AdcGreenOffset2YUV;
	SBYTE	AdcBlueOffset2YUV;
	SWORD	AdcRedGainYUV;
	SWORD	AdcGreenGainYUV;
	SWORD	AdcBlueGainYUV;
	BYTE	ACMMode;
	BYTE	BeepOn;
	BYTE	Volume;
	BYTE	mHad_init;
} ModeIndependentUserPrefType;

#define ModeIndependentUserPrefSize		(sizeof(ModeIndependentUserPrefType))

typedef enum ModeIndependentOffsets
{
	Brightness_offset = 0,
	Contrast_offset = Brightness_offset + BYTE_SIZE,
	Color_offset = Contrast_offset + BYTE_SIZE,
	HPosOSD_offset = Color_offset + BYTE_SIZE,
	VPosOSD_offset = HPosOSD_offset + WORD_SIZE,
	Switches_offset = VPosOSD_offset + WORD_SIZE,
	OSDTimeout_offset = Switches_offset + BYTE_SIZE,
	OverlappedMode_offset = OSDTimeout_offset + BYTE_SIZE,
	AdcRedOffset2_offset = OverlappedMode_offset + BYTE_SIZE,
	AdcGreenOffset2_offset = AdcRedOffset2_offset + BYTE_SIZE,
	AdcBlueOffset2_offset = AdcGreenOffset2_offset + BYTE_SIZE,
	AdcRedGain_offset = AdcBlueOffset2_offset + BYTE_SIZE,
	AdcGreenGain_offset = AdcRedGain_offset + WORD_SIZE,
	AdcBlueGain_offset = AdcGreenGain_offset + WORD_SIZE,
	ACMFleshToneGain_offset = AdcBlueGain_offset + WORD_SIZE,
	ACMColorGain_offset = ACMFleshToneGain_offset + BYTE_SIZE,
	ACMGreenGain_offset = ACMColorGain_offset + BYTE_SIZE,
	RedColor_offset = ACMGreenGain_offset + BYTE_SIZE,
	GreenColor_offset = RedColor_offset + BYTE_SIZE,
	BlueColor_offset = GreenColor_offset + BYTE_SIZE,
	OSDLanguage_offset = BlueColor_offset + BYTE_SIZE,
	TestPatternStatus_offset = OSDLanguage_offset + BYTE_SIZE,
	Sharpness_offset = TestPatternStatus_offset + BYTE_SIZE,
	Hue_offset = Sharpness_offset + BYTE_SIZE,
	Saturation_offset = Hue_offset + BYTE_SIZE,
	W_OsdAccAcmFlag_offset = Saturation_offset + BYTE_SIZE,
	AllowHDSource_offset = W_OsdAccAcmFlag_offset + WORD_SIZE,
	LockUnlockOSD_offset = AllowHDSource_offset + BYTE_SIZE,
	AdcRedOffset2YUV_offset = LockUnlockOSD_offset + BYTE_SIZE,
	AdcGreenOffset2YUV_offset = AdcRedOffset2YUV_offset + BYTE_SIZE,
	AdcBlueOffset2YUV_offset = AdcGreenOffset2YUV_offset + BYTE_SIZE,
	AdcRedGainYUV_offset = AdcBlueOffset2YUV_offset + BYTE_SIZE,
	AdcGreenGainYUV_offset = AdcRedGainYUV_offset + WORD_SIZE,
	AdcBlueGainYUV_offset = AdcGreenGainYUV_offset + WORD_SIZE,
	ACMMode_offset = AdcBlueGainYUV_offset + WORD_SIZE,
	BeepOn_offset = ACMMode_offset + BYTE_SIZE,
	Volume_offset = BeepOn_offset + BYTE_SIZE,
	mHad_init_offset = Volume_offset + BYTE_SIZE
};

extern ModeIndependentUserPrefType ModeIndependentUserPreferences;

extern ModeIndependentUserPrefType ROM FactoryDefaultInROM;
typedef struct ModeDependentUserPrefTypeStruct
{
	WORD	HTotal;
	WORD	HStart;
	WORD	VStart;
	WORD	HSyncPhase;
	SWORD	PhaseSkew;
} ModeDependentUserPrefType;

#define ModeDependentUserPrefSize		(sizeof(ModeDependentUserPrefType))

typedef enum ModeDependentOffsets
{
	HTotal_offset = 0,
	HStart_offset = HTotal_offset + WORD_SIZE,
	VStart_offset = HStart_offset + WORD_SIZE,
	HSyncPhase_offset = VStart_offset + WORD_SIZE,
	PhaseSkew_offset = HSyncPhase_offset + WORD_SIZE
};

extern ModeDependentUserPrefType ModeDependentUserPreferences;

typedef struct GlobalUserPrefTypeStruct
{
	WORD	MenuXPos;
	WORD	MenuYPos;
	WORD	PtrSegment;
	WORD	PtrOffset;
} GlobalUserPrefType;

#define GlobalUserPrefSize		(sizeof(GlobalUserPrefType))

typedef enum GlobalOffsets
{
	MenuXPos_offset = 0,
	MenuYPos_offset = MenuXPos_offset + WORD_SIZE,
	PtrSegment_offset = MenuYPos_offset + WORD_SIZE,
	PtrOffset_offset = PtrSegment_offset + WORD_SIZE
};

extern GlobalUserPrefType GlobalUserPreferences;

typedef struct FactoryMenuGlobalsUserPrefTypeStruct
{
	BYTE	FactoryColor;
	BYTE	FactoryGainRed;
	BYTE	FactoryGainGreen;
	BYTE	FactoryGainBlue;
	BYTE	FactoryColorTempAdjRed;
	BYTE	FactoryColorTempAdjGreen;
	BYTE	FactoryColorTempAdjBlue;
	BYTE	FactorysRGBBrightnessValue;
	BYTE	FactorysRGBContrastValue;
	BYTE	FactoryBrightnessMaxSetting;
	BYTE	FactoryContrastMaxSetting;
	BYTE	FactoryBrightnessMinSetting;
	BYTE	FactoryContrastMinSetting;
	WORD	MonitorOnTime;
	WORD	BacklightOnTime;
	WORD	PowerOnTimes;
	WORD	FactoryGmRegAddress;
	BYTE	FactoryGmRegValue;
	SBYTE	FactoryBurnInMode;
	BYTE	FactoryBlendValue;
} FactoryMenuGlobalsUserPrefType;

#define FactoryMenuGlobalsUserPrefSize		(sizeof(FactoryMenuGlobalsUserPrefType))

typedef enum FactoryMenuGlobalsOffsets
{
	FactoryColor_offset = 0,
	FactoryGainRed_offset = FactoryColor_offset + BYTE_SIZE,
	FactoryGainGreen_offset = FactoryGainRed_offset + BYTE_SIZE,
	FactoryGainBlue_offset = FactoryGainGreen_offset + BYTE_SIZE,
	FactoryColorTempAdjRed_offset = FactoryGainBlue_offset + BYTE_SIZE,
	FactoryColorTempAdjGreen_offset = FactoryColorTempAdjRed_offset + BYTE_SIZE,
	FactoryColorTempAdjBlue_offset = FactoryColorTempAdjGreen_offset + BYTE_SIZE,
	FactorysRGBBrightnessValue_offset = FactoryColorTempAdjBlue_offset + BYTE_SIZE,
	FactorysRGBContrastValue_offset = FactorysRGBBrightnessValue_offset + BYTE_SIZE,
	FactoryBrightnessMaxSetting_offset = FactorysRGBContrastValue_offset + BYTE_SIZE,
	FactoryContrastMaxSetting_offset = FactoryBrightnessMaxSetting_offset + BYTE_SIZE,
	FactoryBrightnessMinSetting_offset = FactoryContrastMaxSetting_offset + BYTE_SIZE,
	FactoryContrastMinSetting_offset = FactoryBrightnessMinSetting_offset + BYTE_SIZE,
	MonitorOnTime_offset = FactoryContrastMinSetting_offset + BYTE_SIZE,
	BacklightOnTime_offset = MonitorOnTime_offset + WORD_SIZE,
	PowerOnTimes_offset = BacklightOnTime_offset + WORD_SIZE,
	FactoryGmRegAddress_offset = PowerOnTimes_offset + WORD_SIZE,

⌨️ 快捷键说明

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