📄 osd.lst
字号:
49 =2 #ifdef _MAIN_
=2
=2 unsigned char IR_Key;
=2 unsigned char byIRstateHighCount;
=2 unsigned char byIRstateLowCount;
=2 unsigned char IR_Data_Count;
=2 unsigned char IR_Step;
=2 unsigned char IR_OldKey;
=2 unsigned char IR_RepeatKey;
=2 unsigned char IR_RepeatFlag;
=2 unsigned long IR_DebugKey;
=2
C51 COMPILER V6.10 OSD 12/02/2004 10:58:52 PAGE 10
=2 union DW_TEMP IR_Value;
=2
=2 unsigned char code IRDecodeTable[]=
=2 {
=2 0xBF, IR_Power_Key,
=2 0xAF, IR_MTS_Key,
=2 0xCF, IR_Mute_Key,
=2 0x17, IR_Source_Key,
=2 0x7F, IR_Auto_Key,
=2 0xB7, IR_Up_Key,
=2 0x15, IR_Down_Key,
=2 0x07, IR_Menu_Key,
=2 0xD5, IR_Jump_Key,
=2 0xE5, IR_ChUp_Key,
=2 0x65, IR_ChDown_Key,
=2 0xE7, IR_VolUp_Key,
=2 0x25, IR_VolDown_Key,
=2 0x67, IR_Search_Key,
=2 0xA5, IR_PicLeft_Key,
=2 0xA7, IR_PicRight_Key,
=2 0x27, IR_Pic_Key,
=2
=2 0x55, IR_0_Key,
=2 0x4F, IR_1_Key,
=2 0x1F, IR_2_Key,
=2 0x9F, IR_3_Key,
=2 0x8F, IR_4_Key,
=2 0x5F, IR_5_Key,
=2 0xDF, IR_6_Key,
=2 0xC7, IR_7_Key,
=2 0x47, IR_8_Key,
=2 0x87, IR_9_Key,
=2 0x95, IR_100_Key,
=2 0xFF
=2 };
=2 #else
97 =2
98 =2 extern unsigned char byIRstateHighCount;
99 =2 extern unsigned char byIRstateLowCount;
100 =2 extern unsigned char IR_Data_Count;
101 =2 extern unsigned char IR_Step;
102 =2 extern unsigned char IR_OldKey;
103 =2 extern unsigned char IR_RepeatKey;
104 =2 extern unsigned char IR_RepeatFlag;
105 =2 extern unsigned char IR_Key;
106 =2 extern union DW_TEMP IR_Value;
107 =2 extern unsigned char code IRDecodeTable[];
108 =2 extern unsigned long IR_DebugKey;
109 =2 #endif
10 =1 #include "osd.h"
1 =2
2 =2 // osd address and attribute
3 =2 #define Address 0x00
4 =2 #define Attribute 0x40
5 =2 // osd control bit define
6 =2 #define OSDEN 0x80
7 =2 #define BSEN 0x40
8 =2 #define Shoadow 0x20
9 =2 #define FBEN 0x10
10 =2 #define Blend 0x08
11 =2 #define WENclr 0x04
12 =2 #define RAMclr 0x02
C51 COMPILER V6.10 OSD 12/02/2004 10:58:52 PAGE 11
13 =2 #define FBKGC 0x01
14 =2
15 =2 #define WEN 0x04
16 =2 #define WINT 0x02
17 =2 #define WSHD 0x01
18 =2 //--------------------
19 =2 //---------------------
20 =2 // osd color define
21 =2 #define Black 0x00
22 =2 #define Blue 0x01
23 =2 #define Green 0x02
24 =2 #define Cyan 0x03
25 =2 #define Red 0x04
26 =2 #define Magenta 0x05
27 =2 #define Yellow 0x06
28 =2 #define White 0x07
29 =2 //----------------------
30 =2 //define language item
31 =2 enum LanguageItem{
32 =2 English,
33 =2 Chinese,
34 =2 MaxLanguageItem
35 =2 };
36 =2 //define page item width
37 =2 enum MainPageItem{
38 =2 SaturatiOne, // Color
39 =2 BrightOne, // Bright
40 =2 HueOne, // TINT
41 =2 DimmerOne,//Dimmer
42 =2 FormatOne,//Format
43 =2 RecallItem,
44 =2 //ContrastOne, // ch15
45 =2 //HPositionOne,
46 =2 //VPositionOne,
47 =2 //OSDSetupItem,
48 =2 //RotateOne,
49 =2 //BrightItem,
50 =2 //ColorItem,
51 =2 //MiscItem,
52 =2 MaxMainPageItem
53 =2 };
54 =2
55 =2 enum BrightPageItem{
56 =2 BrightnessItem, // ch8
57 =2 ContrastItrm, // ch15
58 =2 MaxBrightPageItem
59 =2 };
60 =2
61 =2 enum ColorPageItem{
62 =2 SaturationItem, // ch5
63 =2 HueItem, // ch6
64 =2 MaxColorPageItem
65 =2 };
66 =2
67 =2 enum OSDPageItem{
68 =2 HPositionItem,
69 =2 VPositionItem,
70 =2 //LanguageItem,
71 =2 MaxOSDPageItem
72 =2 };
73 =2
74 =2 enum MiscPageItem{
C51 COMPILER V6.10 OSD 12/02/2004 10:58:52 PAGE 12
75 =2 //VsignalPosition,
76 =2 //HsignalPosition,
77 =2 //PWM,
78 =2 CommonPulse,
79 =2 YGain,
80 =2 BlackLevel,
81 =2 YaperGain,
82 =2 RsubBri,
83 =2 BsubBri,
84 =2 WhitePeakLevel,
85 =2 Gamma1,
86 =2 Gamma2,
87 =2 MaxMiscPageItem
88 =2 };
89 =2
90 =2 enum {
91 =2 NOTHING,
92 =2 BRIGHT_BRIGHTNESS,
93 =2 BRIGHT_CONTRAST,
94 =2 COLOR_HUE,
95 =2 COLOR_SATURATION,
96 =2 RunDimmer,
97 =2 RunFormat, //OSD_VPOS_U,
98 =2 RunRecall,//OSD_LANGUAGE_U,
99 =2 VIDEO_BRIGHTNESS,
100 =2 VIDEO_CONTRAST,
101 =2 VIDEO_HUE,
102 =2 VIDEO_SATURATION,
103 =2 VIDEO_Rotate
104 =2 };
105 =2 //----------------------
106 =2 // osd page define
107 =2 #define MainPageWinNo 3
108 =2 #define MainPageColor Black
109 =2 #define MainPageBarColor Cyan
110 =2 #define MainPageItemLength 15
111 =2 #define MainPageCharColor Green //White
112 =2 #define MainPageProcessColor Red
113 =2 #define MainPageExitColor Cyan
114 =2 //#define MainPageItemWidth MaxMainPageItem
115 =2 #define MainPageBarLength MainPageItemLength
116 =2 #define MainPageYStart 1 //row start
117 =2 #define MainPageYEnd 10 //row end
118 =2 #define MainPageXStart 0 //column start
119 =2 #define MainPageXEnd 15//cloumn end
120 =2
121 =2 #define BackGroundWinNo 4
122 =2 #define BackGroundColor Magenta
123 =2 #define BackGroundYStart 0
124 =2 #define BackGroundYEnd 11
125 =2 #define BackGroundXStart 0
126 =2 #define BackGroundXEnd 16
127 =2 /*
128 =2 #define SecondPageWinNo 2
129 =2 #define SecondPageColor Green
130 =2 #define SecondPageBarColor Cyan
131 =2 #define SecondPageItemLength MainPageItemLength
132 =2 #define SecondPageItemWidth ?
133 =2 #define SecondPageBarLength SecondPageItemLength
134 =2 #define SecondPageYStart (MainPageYStart+1)
135 =2 #define SecondPageYEnd (MainPageYEnd+1) //row end
136 =2 #define SecondPageXStart (MainPageXStart+1) //column start
C51 COMPILER V6.10 OSD 12/02/2004 10:58:52 PAGE 13
137 =2 #define SecondPageXEnd (MainPageXEnd+1) //cloumn end
138 =2
139 =2 #define ThirdPageWinNo 2
140 =2 #define ThirdPageColor Cyan
141 =2 #define ThirdPageBarColor Yellow
142 =2 #define ThirdPageItemLength MainPageItemLength
143 =2 #define ThirdPageItemWidth ?
144 =2 #define ThirdPageBarLength ThirdPageItemLength
145 =2 #define ThirdPageYStart (SecondPageYStart+1)
146 =2 #define ThirdPageYEnd (SecondPageYEnd+1) //row end
147 =2 #define ThirdPageXStart (SecondPageXStart+1) //column start
148 =2 #define ThirdPageXEnd (SecondPageXEnd+1) //cloumn end
149 =2 */
150 =2 //--------------------------
151 =2 #define EnableOSD() (byM230_OSDCON = OSDConVal|OSDEN)
152 =2 #define EnableOSDWinClr() (byM230_OSDCON = OSDConVal|WENclr)
153 =2 #define EnableOSDRAMClr() (byM230_OSDCON = OSDConVal|RAMclr)
154 =2 #define EnableOSDFBKGC() (byM230_OSDCON = OSDConVal|FBKGC)
155 =2 #define DisableOSD() (byM230_OSDCON = OSDConVal&(~OSDEN))
156 =2 #define DisableOSDWinClr() (byM230_OSDCON = OSDConVal&(~WENclr))
157 =2 #define DisableOSDRAMClr() (byM230_OSDCON = OSDConVal&(~RAMclr))
158 =2 #define DisableOSDFBKGC() (byM230_OSDCON = OSDConVal&(~FBKGC))
159 =2
160 =2 #define OSD_OFFTIME 10000
161 =2
162 =2 #define sOSDAddrSt 0x90
163 =2 #define sBrightAddrSt 0x93
164 =2 #define sColorAddrSt 0x95
165 =2
166 =2
167 =2 //-----------------------------------------------
168 =2 struct sPROGRESS{
169 =2 WORD value;
170 =2 WORD min;
171 =2 WORD max;
172 =2 };
173 =2 //-----------------------------------------------
174 =2 struct sMENUSTACK{
175 =2 void (*MenuProcess)(void);
176 =2 BYTE ItemIndex;
177 =2 };
178 =2 //--------------------------------------------
179 =2 struct OSDData{
180 =2 BYTE H_Pos;
181 =2 BYTE V_Pos;
182 =2 BYTE LANGUAGE;
183 =2 };
184 =2 //------------------------------------------------
185 =2
186 =2 extern BIT bFactoryflag;
187 =2 extern BIT bDEMOFlag;
188 =2 extern BIT bMenuFlag;
189 =2 extern WORD OsdTimer;
190 =2 extern BYTE ItemIndex;
191 =2 extern BYTE OSDStackPoint;
192 =2 extern struct sPROGRESS ItemValue;
193 =2 extern struct sMENUSTACK OSDStack[3];
194 =2 extern struct OSDData sOSD;
195 =2 extern void (*MenuProcess)(void);
196 =2 extern BYTE CursorX,CursorY;
197 =2 extern BYTE OSDConVal;
198 =2
C51 COMPILER V6.10 OSD 12/02/2004 10:58:52 PAGE 14
199 =2 extern void Disp_Nothing(void);
200 =2 extern void OSDProc(void);
201 =2
202 =2 extern void InitialOSD(void);
203 =2 extern void InitialFlag(void);
204 =2
205 =2 extern void OpenWindow(BYTE win_no, BYTE start_x, BYTE start_y, BYTE end_x, BYTE end_y, BYTE color);
206 =2 extern void CloseWindow(BYTE win_no);
207 =2
208 =2 //extern void Disp_Video_Entry(void);
209 =2 extern void Disp_Demo(void);
210 =2 extern void Disp_VideoMenu(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -