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

📄 lcd_osd.lst

📁 Realtek 公司的RTD2523A芯片原厂source code,没有被修改过的。
💻 LST
📖 第 1 页 / 共 5 页
字号:
1209   6      						case PAGE2_ITEM_SHARP :
1210   6      							ucOSD_Item_Index1   = stGUD1.FILTER + 1;
1211   6      							OSD_Line( 13, 36 + (ucOSD_Item_Index1-1)*(2+1), 1, 0x20, 2);
1212   6      							break;
1213   6      												
1214   6      					}
1215   5      				}
1216   4      			}
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 21  

1217   3      		}
1218   2      	}
1219   1      }
1220          
1221          void Page2_Left_Right_Key(unsigned char Key)
1222          {
1223   1      	if (ucOSD_Item_Index1)
1224   1      	{
1225   2      		switch (ucOSD_Item_Index0)
1226   2      		{
1227   3      			case PAGE2_ITEM_POSH :
1228   3      				if (NOTIFY_RIGHT_KEY == Key)
1229   3      				{
1230   4      					if ((128 - 50) >= stMUD.H_POSITION)
1231   4      						break;
1232   4      
1233   4      					if (KEY_TURBO_ENABLE > ucKey_Issued)
1234   4      						stMUD.H_POSITION    = stMUD.H_POSITION > (128 - 50) ? stMUD.H_POSITION - 1 : (128 - 50);
1235   4      					else
1236   4      						stMUD.H_POSITION    = stMUD.H_POSITION > ((128 - 50) + 2) ? stMUD.H_POSITION - 3 : (128 - 50);
1237   4      				}
1238   3      				else
1239   3      				{
1240   4      					if ((128 + 50) <= stMUD.H_POSITION)
1241   4      						break;
1242   4      
1243   4      					if (KEY_TURBO_ENABLE > ucKey_Issued)
1244   4      						stMUD.H_POSITION    = stMUD.H_POSITION < (128 + 50) ? stMUD.H_POSITION + 1 : (128 + 50);
1245   4      					else
1246   4      						stMUD.H_POSITION    = stMUD.H_POSITION < ((128 + 50) - 2) ? stMUD.H_POSITION + 3 : (128 + 50);
1247   4      				}
1248   3      
1249   3      				OSD_Slider(5, 31, 17, (128 + 50) - stMUD.H_POSITION, 100, 2, 14);
1250   3      				Set_H_Position();
1251   3      				Set_Phase(stMUD.PHASE);
1252   3      				Save_MUD(ucMode_Curr);
1253   3      				break;
1254   3      				
1255   3      			case PAGE2_ITEM_POSV :
1256   3      				if (NOTIFY_RIGHT_KEY == Key)
1257   3      				{
1258   4      					if ((unsigned int)256 - ucV_Min_Margin <= stMUD.V_POSITION)
1259   4      						break;
1260   4      
1261   4      					stMUD.V_POSITION    += 1;
1262   4      				}
1263   3      				else
1264   3      				{
1265   4      					if (ucV_Min_Margin >= stMUD.V_POSITION)
1266   4      						break;
1267   4      
1268   4      					stMUD.V_POSITION    -= 1;
1269   4      				}
1270   3      
1271   3      				OSD_Slider(7, 31, 17, (unsigned int)(stMUD.V_POSITION - ucV_Min_Margin) * 50 / (128 - ucV_Min_Margin),
             - 100, 2, 14);
1272   3      				Set_V_Position();
1273   3      				Save_MUD(ucMode_Curr);
1274   3      				break;
1275   3      								
1276   3      			case PAGE2_ITEM_PHASE :
1277   3      #if(MORE_PHASE)
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 22  

              				if (NOTIFY_RIGHT_KEY == Key)
              				{
              					if (0x7f <= stMUD.PHASE)
              						break;
              
              					stMUD.PHASE += 1;
              				}
              				else
              				{
              					if (0x00 == stMUD.PHASE)
              						break;
              
              					stMUD.PHASE -= 1;
              				}
              
              				OSD_Slider(9, 31, 17, stMUD.PHASE, 127, 2, 14);
              #else
1295   3      				stMUD.PHASE     &= 0x7c;
1296   3      				if (NOTIFY_RIGHT_KEY == Key)
1297   3      				{
1298   4      					if (0x7c <= stMUD.PHASE)
1299   4      						break;
1300   4      
1301   4      					stMUD.PHASE += 4;
1302   4      				}
1303   3      				else
1304   3      				{
1305   4      					if (0x00 == stMUD.PHASE)
1306   4      						break;
1307   4      
1308   4      					stMUD.PHASE -= 4;
1309   4      				}
1310   3      					
1311   3      				OSD_Slider(9, 31, 17, (stMUD.PHASE & 0x7c) >> 2, 31, 2, 14);
1312   3      #endif
1313   3      				Set_Phase(stMUD.PHASE);
1314   3      				Save_MUD(ucMode_Curr);
1315   3      				break;
1316   3      					
1317   3      			case PAGE2_ITEM_CLOCK :
1318   3                      if (NOTIFY_RIGHT_KEY == Key)
1319   3                      {
1320   4                          if (228 <= stMUD.CLOCK)     break;
1321   4      
1322   4                          if (KEY_TURBO_ENABLE > ucKey_Issued)
1323   4                              stMUD.CLOCK = (227 >= stMUD.CLOCK) ? stMUD.CLOCK + 1 : 228;
1324   4                          else
1325   4                              stMUD.CLOCK = (224 >= stMUD.CLOCK) ? stMUD.CLOCK + 4 : 228;                   
1326   4                      }
1327   3                      else
1328   3                      {
1329   4                          if (28 >= stMUD.CLOCK)      break;
1330   4      
1331   4                          if (KEY_TURBO_ENABLE > ucKey_Issued)
1332   4                              stMUD.CLOCK = (29 <= stMUD.CLOCK) ? stMUD.CLOCK - 1 : 28;
1333   4                          else
1334   4                              stMUD.CLOCK = (32 <= stMUD.CLOCK) ? stMUD.CLOCK - 4 : 28;
1335   4                      }
1336   3                      OSD_Slider(11, 31, 17, stMUD.CLOCK - 28, 200, 2, 14);
1337   3                      Set_Clock();
1338   3      				Save_MUD(ucMode_Curr);
1339   3      				break;
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 23  

1340   3      
1341   3      			case PAGE2_ITEM_SHARP :
1342   3      				if (NOTIFY_RIGHT_KEY == Key)
1343   3      				{
1344   4      					if (5 <= ucOSD_Item_Index1)
1345   4      						break;
1346   4      
1347   4      					ucOSD_Item_Index1   = ucOSD_Item_Index1 + 1;
1348   4      				}
1349   3      				else
1350   3      				{
1351   4      					if (1 >= ucOSD_Item_Index1)
1352   4      						break;
1353   4      
1354   4      					ucOSD_Item_Index1   = ucOSD_Item_Index1 - 1;
1355   4      				}
1356   3      
1357   3      				OSD_Line( 13, 36, 14, 0x40, 2);	//Set color to black
1358   3      				OSD_Line( 13, 36 + (ucOSD_Item_Index1-1)*(2+1), 1, 0x20, 2);
1359   3      				
1360   3      				stGUD1.FILTER    = ucOSD_Item_Index1 - 1;
1361   3      				Sharpness();
1362   3                      
1363   3      				if((usIPH_ACT_WID == 1280) && (DISP_SIZE == DISP_1280x1024) && (stGUD1.FILTER == 0x02))
1364   3      					RTDSetBit(SCALE_CTRL_15, 0xff, 0x01);   // Turn on H scale-up
1365   3      				else if((usIPH_ACT_WID == 1280) && (DISP_SIZE == DISP_1280x1024) && (stGUD1.FILTER != 0x02))
1366   3      					RTDSetBit(SCALE_CTRL_15, 0xfe, 0x00);   // Turn off H scale-up
1367   3      
1368   3                      		Save_GUD1();
1369   3      				break;
1370   3      			
1371   3      					
1372   3      		}
1373   2      	}
1374   1      	else
1375   1      	{
1376   2      		Osd_Change_Item(Key,PAGE2_ITEM_NUM);
1377   2      	}
1378   1      }
1379          
1380          
1381          void Page2_Show()
1382          {
1383   1      	Show_Osd_Page(1,Page2_Atb,1);
1384   1      
1385   1      	//Set Window 5 to select "Picture"
1386   1      	OSD_Window( 5, 10, 136, 87, 117, 1, 1, 14, 251, 0, 1, 25);
1387   1      
1388   1      	if (MODE_NOSIGNAL == ucMode_Curr || MODE_NOSUPPORT == ucMode_Curr)
1389   1      	{
1390   2      		ucOSD_Item_Index0   = 0;
1391   2      		ucOSD_Item_Index1   = 0;
1392   2      	}
1393   1      
1394   1      	if (SOURCE_VGA != (stGUD1.INPUT_SOURCE & 0x07) && PAGE2_ITEM_SHARP != ucOSD_Item_Index0)
1395   1      	{
1396   2      		ucOSD_Item_Index1   = 0;
1397   2      	}
1398   1      
1399   1      	if (0 == ucOSD_Item_Index1)
1400   1      	{
1401   2      		OSD_Slider(5, 31, 17, (128 + 50) - stMUD.H_POSITION, 100, 4, 14);
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 24  

1402   2      		OSD_Slider(7, 31, 17, (unsigned int)(stMUD.V_POSITION - ucV_Min_Margin) * 50 / (128 - ucV_Min_Margin), 1
             -00, 4, 14);
1403   2      #if(MORE_PHASE)
              		OSD_Slider(9, 31, 17, stMUD.PHASE, 127, 4, 14);
              #else
1406   2      		OSD_Slider(9, 31, 17, (stMUD.PHASE & 0x7c) >> 2, 31, 4, 14);
1407   2      #endif
1408   2      
1409   2      		OSD_Slider(11, 31, 17, stMUD.CLOCK - 28, 200, 4, 14);
1410   2      	}
1411   1      	else
1412   1      	{
1413   2      		switch (ucOSD_Item_Index0)
1414   2      		{
1415   3      			case PAGE2_ITEM_POSH :
1416   3      				break;
1417   3      				
1418   3      			case PAGE2_ITEM_POSV :
1419   3      				break;
1420   3      				
1421   3      			case PAGE2_ITEM_PHASE :
1422   3      				break;
1423   3      				
1424   3      			case PAGE2_ITEM_CLOCK :
1425   3      				break;
1426   3      
1427   3      			case PAGE2_ITEM_SHARP :
1428   3      				break;
1429   3      		}
1430   2      	}
1431   1      }
1432          
1433          bit Page3_Enter_Key(void)
1434          {
1435   1      	if (0 == ucOSD_Item_Index0)
1436   1      	{
1437   2      		if ((MODE_NOSIGNAL != ucMode_Curr) && (MODE_NOSUPPORT != ucMode_Curr) && (SOURCE_VGA == (stGUD1.INPUT_SO
             -URCE & 0x07)))
1438   2      		{
1439   3      			// Select and highlight the first item
1440   3      			ucOSD_Item_Index0   = PAGE3_ITEM_AUTOCFG;
1441   3      			ucOSD_Item_Index1   = 0;
1442   3      			
1443   3      			OSD_Window( 6, 150, 282, 54, 84, 1, 1, 14, 251, 0, 1, 25);
1444   3      		}
1445   2      	}
1446   1      	else
1447   1      	{
1448   2      		if (PAGE3_ITEM_EXIT == ucOSD_Item_Index0)
1449   2      		{
1450   3      			// Disable highlight window
1451   3      			OSD_Window( 6, 150, 282, (54 + (ucOSD_Item_Index0-1)*(29+4)), (84 + (ucOSD_Item_Index0-1)*(29+4))
1452   3      				, 0, 0, 14, 251, 0, 1, 0);
1453   3      			// De-select the page item and disable the hightlight window
1454   3      			ucOSD_Item_Index0   = 0;
1455   3      			ucOSD_Item_Index1   = 0;
1456   3      		}
1457   2      		else if (ucOSD_Item_Index1)
1458   2      		{
1459   3      			if (1 == ucOSD_Item_Index1)
1460   3      			{
1461   4      				switch (ucOSD_Item_Index0)
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 25  

1462   4      				{
1463   5      					case PAGE3_ITEM_AUTOCFG :
1464   5                              /*
1465   5      						if (MODE_0640x0350x70HZ <= ucMode_Curr && MODE_0720x0400x70HZ >= ucMode_Curr)
1466   5      						{
1467   5      							unsigned char ucResult;
1468   5      
1469   5      							stMUD.CLOCK = 128;
1470   5      
1471   5      							Set_H_Position();
1472   5      							Set_Clock();
1473   5      							Save_MUD(ucMode_Curr);
1474   5      
1475   5      							ucResult    = Auto_Phase();
1476   5      
1477   5      							if (ERROR_SUCCEED == ucResult)
1478   5      							{
1479   5      								ucResult    = Auto_Position();
1480   5      							}
1481   5      							
1482   5      							if (ERROR_INPUT == ucResult)
1483   5      							{
1484   5      								ucMode_Curr = MODE_OSDFORCE;
1485   5      								return 0;
1486   5      							}
1487   5      						}
1488   5      						else
1489   5      						{
1490   5      							if (ERROR_INPUT == Auto_Config())
1491   5                                  {
1492   5      								ucMode_Curr = MODE_OSDFORCE;
1493   5      								return 0;
1494   5      							}
1495   5      						}
1496   5                              */
1497   5                              if (ERROR_INPUT == Auto_Config())
1498   5                              {
1499   6                                  ucMode_Curr = MODE_OSDFORCE;
1500   6                                  return 0;
1501   6                              }
1502   5      						OSD_Line( 5, 36 + (ucOSD_Item_Index1-1)*(6+1), 4, 0x40, 2);
1503   5      						break;
1504   5      
1505   5      					case PAGE3_ITEM_AUTOBAL :
1506   5      						if (ERROR_INPUT == Auto_Balance())
1507   5      						{
1508   6      							ucMode_Curr = MODE_OSDFORCE;
1509   6      							r

⌨️ 快捷键说明

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