📄 osd.lst
字号:
C51 COMPILER V7.20 OSD 09/14/2004 12:21:05 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE OSD
OBJECT MODULE PLACED IN .\BIN\OSD.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE SRC\OSD.C OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE SYMB
-OLS PRINT(.\LST\OSD.lst) PREPRINT(.\LST\OSD.i) OBJECT(.\BIN\OSD.obj)
line level source
1 #include "OSD.H"
1 =1 #ifndef _OSD_H
2 =1 #define _OSD_H
3 =1
4 =1 // OSD Palette Data
5 =1 #define BLACK 0x0000
6 =1 #define RED 0xf800//
7 =1 #define GREEN 0x07e0//
8 =1 #define BLUE 0x001F
9 =1 #define CYAN 0x871c//(BLUE|GREEN)
10 =1 #define MAGENTA 0xdfff//(RED|BLUE)
11 =1 #define YELLOW (RED|GREEN)
12 =1 #define WHITE (RED|GREEN|BLUE)
13 =1 #define TBLACK 0x0000
14 =1 #define TRED 0x4000
15 =1 #define TGREEN 0x0200
16 =1 #define TBLUE 0x000c
17 =1 #define TCYAN 0x036d//(TBLUE|TGREEN)
18 =1 #define TMAGENTA (TRED|TBLUE)
19 =1 #define TYELLOW (TRED|TGREEN)
20 =1 #define GRAY 0x8410//0x4210
21 =1
22 =1 #define iBLACK 0
23 =1 #define iRED 1
24 =1 #define iGREEN 2
25 =1 #define iBLUE 3
26 =1 #define iCYAN 4
27 =1 #define iMAGENTA 5
28 =1 #define iYELLOW 6
29 =1 #define iWHITE 7
30 =1 #define iTBLACK 8
31 =1 #define iTRED 9
32 =1 #define iTGREEN 10
33 =1 #define iTBLUE 11
34 =1 #define iTCYAN 12
35 =1 #define iTMAGENTA 13
36 =1 #define iTYELLOW 14
37 =1 #define iGRAY 15
38 =1
39 =1 #define FrameColor (((iBLACK-1)<<8)|(iCYAN<<4))
40 =1 #define FactoryColor (((iBLACK-1)<<8)|(iGREEN<<4))
41 =1 #define FrameMColor ((iCYAN<<4)|0x0c)
42 =1 #define FactoryMColor ((iGREEN<<4)|0x0c)
43 =1 #define TitleColor (((iWHITE-1)<<8)|(iTCYAN<<4))
44 =1 #define TextColor (((iTBLUE-1)<<8)|(iMAGENTA<<4))
45 =1 #define TextSelColor (((iTBLUE-1)<<8)|(iYELLOW<<4))
46 =1 #define IconColor (((iBLACK-1)<<8)|(iYELLOW<<4))
47 =1 #define IconRedColor (((iRED-1)<<8)|(iYELLOW<<4))
48 =1 #define IconGreenColor (((iGREEN-1)<<8)|(iYELLOW<<4))
49 =1 #define IconBlueColor (((iBLUE-1)<<8)|(iYELLOW<<4))
50 =1 #define IconMColor ((iYELLOW<<4)|0x0c)
51 =1 #define RedFrameColor (((iGREEN-1)<<8)|(iRED<<4))
52 =1 #define MsgColor1 (((iTBLUE-1)<<8)|(iCYAN<<4))
53 =1 #define MsgColor2 (((iTBLUE-1)<<8)|(iGREEN<<4))
C51 COMPILER V7.20 OSD 09/14/2004 12:21:05 PAGE 2
54 =1 #define DisIconColor (((iWHITE-1)<<8)|(iCYAN<<4))
55 =1 #define DisIconMColor ((iCYAN<<4)|0x100c)
56 =1 #define ChannelColor (((iGREEN-1)<<8)|(iBLACK<<4))
57 =1 #define RedColor (((iRED-1)<<8)|(iCYAN<<4))
58 =1 #define GreenColor (((iGREEN-1)<<8)|(iCYAN<<4))
59 =1 #define BlueColor (((iBLUE-1)<<8)|(iCYAN<<4))
60 =1 //
61 =1 #define OSD_WIDTH 32//22
62 =1 #define OSD_HIGHT 15
63 =1 #define OSD2_WIDTH 32//22
64 =1 #define OSD2_HIGHT 5
65 =1 #define OSD3_WIDTH 8
66 =1 #define OSD3_HIGHT 1
67 =1 #define OSD4_HIGHT 10
68 =1
69 =1 #define OSD_ZoomX 1
70 =1 #define OSD_ZoomY 1
71 =1 #define CR9e 0
72 =1 //#define CR9e 1
73 =1 //#define CR9e 2
74 =1 //#define CR9e 3
75 =1 #define OSD_RBx (PanelWidth - (12 * OSD_ZoomX * OSD_WIDTH))
76 =1 #define OSD_RBy (PanelHeight - (18 * OSD_ZoomY * OSD_HIGHT))
77 =1 #define OSD_RBx1 (PanelWidth - (18 * OSD_ZoomX * OSD_HIGHT))
78 =1 #define OSD_RBy1 (PanelHeight - (12 * OSD_ZoomY * OSD_WIDTH))
79 =1 //
80 =1 #define OSD2_CCx (PanelWidth - (12 * OSD_ZoomX * OSD2_WIDTH)) / 2
81 =1 #define OSD2_CCy (PanelHeight - (18 * OSD_ZoomY * OSD2_HIGHT)) / 2
82 =1 #define OSD2_CCx1 (PanelWidth - (18 * OSD_ZoomX * OSD2_HIGHT)) / 2
83 =1 #define OSD2_CCy1 (PanelHeight - (12 * OSD_ZoomY * OSD2_WIDTH)) / 2
84 =1 #define OSD2_RBx (PanelWidth - (12 * OSD_ZoomX * OSD2_WIDTH))
85 =1 #define OSD2_RBy (PanelHeight - (18 * OSD_ZoomY * OSD2_HIGHT))
86 =1 //
87 =1 #define OSD3_Px (PanelWidth - (12 * 2 * OSD3_WIDTH))
88 =1 #define OSD3_Py 0
89 =1
90 =1 extern code unsigned char IconPosition[];
91 =1 extern code unsigned char ClearLine1[];
92 =1 extern code unsigned char ClearLine2[];
93 =1 extern code unsigned char ClearLine3[];
94 =1 extern code unsigned char MenuItem[];
95 =1 extern code unsigned char *SourceTab[];
96 =1
97 =1 void OsdInit(void);
98 =1 void Osd2Init(void);
99 =1 void Osd3Init(void);
100 =1 void Osd4Init(void);
101 =1 void LoadFont(void);
102 =1 void ShowMainMenu(void);
103 =1 void MainMenu(void);
104 =1 void ClearOSD(void);
105 =1 void OSD_OFF(void);
106 =1 void ShowSubMenu(void);
107 =1 void ValueUp(void);
108 =1 void ValueDown(void);
109 =1 void ShowT_Bar(void);
110 =1 void ShowBrightness(void);
111 =1 void ShowContrast(void);
112 =1 void ShowClock(void);
113 =1 void ShowPhase(void);
114 =1 void ShowHP(void);
115 =1 void ShowVP(void);
C51 COMPILER V7.20 OSD 09/14/2004 12:21:05 PAGE 3
116 =1 void ShowNO_YES(unsigned char i);
117 =1 void SetPosition(void);
118 =1 void ShowVersion(void);
119 =1 void ClearText(void);
120 =1 void ShowOutOfRange(void);
121 =1 void ShowNoSync(void);
122 =1 void ShowDisconnector(void);
123 =1 void SaveData(void);
124 =1 void ShowAutoAdj1(void);
125 =1 void ShowAutoAdj(void);
126 =1 void ShowRGB(void);
127 =1 void ShowOSD_X(void);
128 =1 void ShowOSD_Y(void);
129 =1 void ShowOSD_Timer(void);
130 =1 void ShowColorTemperature(void);
131 =1 void ShowLanguage(void);
132 =1 void SelectItem(void);
133 =1 void WriteSequenceScaler(unsigned char addr,unsigned char *p);
134 =1 void WriteStringScaler(unsigned char Attr,unsigned char *p);
135 =1 void WriteXY_StrScaler(unsigned char Attr,unsigned char x,unsigned char y,unsigned char *p);
136 =1 void FillLineAttr(unsigned char x,unsigned char y,unsigned char l,unsigned short Attr);
137 =1 void UnselectIcon(void);
138 =1 void WriteXY_CStrScaler(unsigned char Attr,unsigned char x,unsigned char y,unsigned char w,unsigned char *
-p);
139 =1 void CheckRGB(void);
140 =1 void ShowMisceMenu(void);
141 =1 void ShowInverter(void);
142 =1 void ShowSaturation(void);
143 =1 void ShowTint(void);
144 =1 void ShowSharpness(void);
145 =1 void SetMovePosition(void);
146 =1 void ShowVolume();
147 =1 void DirectVolume();
148 =1 void ShowValue(unsigned char Attr,unsigned char value);
149 =1 void ShowSliderBar(unsigned char x,unsigned char y,unsigned char value);
150 =1 void ShowFreq(void);
151 =1 void ShowResolution(void);
152 =1 void ShowNum(unsigned char Attr,unsigned char xx,unsigned char yy,unsigned char value);
153 =1 void ShowInputSource(void);
154 =1 void VideoMenu(void);
155 =1 void ShowVideoMenu(void);
156 =1 void ShowVideoSubMenu(void);
157 =1 void VideoValueUp(void);
158 =1 void VideoValueDown(void);
159 =1 void VideoUnSelectIcon(void);
160 =1 void VideoSelectItem(void);
161 =1
162 =1 enum{
163 =1 NotSaveSaveFlag,
164 =1 BrightnessSaveFlag,
165 =1 ContrastSaveFlag,
166 =1 ClockSaveFlag,
167 =1 PhaseSaveFlag,
168 =1 HP_SaveFlag,
169 =1 VP_SaveFlag,
170 =1 //ColorTempSaveFlag, /*调整函数中自己更新EEPAM */
171 =1 R_GainSaveFlag,
172 =1 G_GainSaveFlag,
173 =1 B_GainSaveFlag,
174 =1 VolumeSaveFlag,
175 =1 //LanguageSaveFlag, /*调整函数中自己更新EEPAM */
176 =1 OSD_X_SaveFlag,
C51 COMPILER V7.20 OSD 09/14/2004 12:21:05 PAGE 4
177 =1 OSD_Y_SaveFlag,
178 =1 OSD_TimerSaveFlag,
179 =1 SaturationSaveFlag,
180 =1 TintSaveFlag,
181 =1 SharpnessSaveFlag,
182 =1 InverterSaveFlag,
183 =1 Osd_ControlSaveFlag //OSD_RotationSaveFlag,OSD_FlipSaveFlag,OSD_MirrorSaveFlag
184 =1
185 =1 };
186 =1
187 =1 /* VGA MENU NODE INDEX*/
188 =1 enum{
189 =1 BrightnessNode,
190 =1 ContrastNode,
191 =1 PhaseNode,
192 =1 ClockNode,
193 =1 HP_Node,
194 =1 VP_Node,
195 =1 RecallNode,
196 =1 ColorTempNode,
197 =1 R_GainNode,
198 =1 G_GainNode,
199 =1 B_GainNode,
200 =1 LanguageNode,
201 =1 MisceNode,
202 =1 ExitMainMenuNode,
203 =1 ExitMisceMenuNode,
204 =1 OSD_X_Node,
205 =1 OSD_Y_Node,
206 =1 OSD_TimerNode,
207 =1 OSD_RotationNode,
208 =1 OSD_FlipNode,
209 =1 OSD_MirrorNode,
210 =1 AutoColorNode,
211 =1 SaturationNode,
212 =1 TintNode,
213 =1 SharpnessNode
214 =1 };
215 =1
216 =1
217 =1 /* AV MENU NODE INDEX*/
218 =1 enum{
219 =1 AvBrightnessNode,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -