osdctrl.lst

来自「采用台湾MRT晶捷公司的MRT4方案的液晶电视的程序」· LST 代码 · 共 1,185 行 · 第 1/5 页

LST
1,185
字号
 434   2                      if (cursor > AUTOCONFIG_NO)
 435   2                              cursor = AUTOCONFIG_YES;
 436   2                      if (cursor < AUTOCONFIG_YES)
 437   2                              cursor = AUTOCONFIG_NO;
 438   2                      subSelect(Select);
 439   2              }
 440   1              else if(cursor >= OSDSETUP_HPOS && cursor <= OSDSETUP_TIME)
 441   1              {
 442   2                      subSelect(UnSelect);
 443   2                      cursor = cursor + (step * 2);
 444   2                      if (cursor > OSDSETUP_TIME)
 445   2                              cursor = OSDSETUP_HPOS;
 446   2                      if (cursor < OSDSETUP_HPOS)
 447   2                              cursor = OSDSETUP_TIME;
 448   2                      subSelect(Select);
 449   2              }
 450   1              else if(cursor >= LANGUAGE_ENGLISH && cursor <= LANGUAGE_SCHINESE)
 451   1              {
 452   2                      subSelect(UnSelect);
 453   2                      cursor += step;
 454   2                      if (cursor > LANGUAGE_SCHINESE)
 455   2                              cursor = LANGUAGE_ENGLISH;
 456   2                      if (cursor < LANGUAGE_ENGLISH)
 457   2                              cursor = LANGUAGE_SCHINESE;
 458   2                      subSelect(Select);
 459   2              }
 460   1              else if(cursor >= RESET_YES && cursor <= RESET_NO)
 461   1              {
 462   2                      subSelect(UnSelect);
 463   2                      cursor += step;
 464   2                      if (cursor > RESET_NO)
 465   2                              cursor = RESET_YES;
 466   2                      if (cursor < RESET_YES)
 467   2                              cursor = RESET_NO;
 468   2                      subSelect(Select);
 469   2              }
 470   1      //==================================== FACTORY ==========================================
 471   1              else if (cursor >= AUTO_LEVEL && cursor <= F_RETURN)
C51 COMPILER V6.23a  OSDCTRL                                                               09/10/2004 16:09:03 PAGE 9   

 472   1              {
 473   2                      factorySelect(UnSelect);
 474   2                      cursor += step;
 475   2                      if (cursor > F_RETURN)
 476   2                              cursor = AUTO_LEVEL;
 477   2                      if (cursor < AUTO_LEVEL)
 478   2                              cursor = F_RETURN;
 479   2                      factorySelect(Select);
 480   2                      if ((cursor >= C1_R) && (cursor <= C1_CON))
 481   2                      {
 482   3                              if (eepData.colorPos != COLOR_6500)
 483   3                              {
 484   4                                      eepData.colorPos = COLOR_6500;
 485   4                                      eepData.brightness = eepData.brightness65;
 486   4                                      setBrightness(eepData.brightness);
 487   4                                      eepData.contrast = eepData.contrast65;
 488   4                                      setColorTemp();
 489   4                              }
 490   3                      }
 491   2                      else if ((cursor >= C2_R) && (cursor <= C2_CON))
 492   2                      {
 493   3                              if (eepData.colorPos != COLOR_7500)
 494   3                              {
 495   4                                      eepData.colorPos = COLOR_7500;
 496   4                                      eepData.brightness = eepData.brightness75;
 497   4                                      setBrightness(eepData.brightness);
 498   4                                      eepData.contrast = eepData.contrast75;
 499   4                                      setColorTemp();
 500   4                              }
 501   3                      }
 502   2                      else if (eepData.colorPos != COLOR_NATIVE)
 503   2                      {
 504   3                              eepData.colorPos = COLOR_NATIVE;
 505   3                              eepData.brightness = DEF_brightness;
 506   3                              setBrightness(eepData.brightness);
 507   3                              eepData.contrast = DEF_contrast;
 508   3                              setColorTemp();
 509   3                      }
 510   2                                      
 511   2              }
 512   1              else if(cursor == INFORMATION_SET || cursor == INFORMATION_R)
 513   1              {
 514   2                      factorySelect(UnSelect);
 515   2                      if (cursor == INFORMATION_SET)
 516   2                              cursor = INFORMATION_R;
 517   2                      else
 518   2                              cursor = INFORMATION_SET;
 519   2                      factorySelect(Select);
 520   2              }
 521   1              else if(cursor >= SET_PAGE && cursor <= SET_EXIT)
 522   1              {
 523   2                      factorySelect(UnSelect);
 524   2                      cursor += step;
 525   2                      if (cursor > SET_EXIT)
 526   2                              cursor = SET_PAGE;
 527   2                      if (cursor < SET_PAGE)
 528   2                              cursor = SET_EXIT;
 529   2                      factorySelect(Select);
 530   2              }
 531   1      }
 532          
 533          
C51 COMPILER V6.23a  OSDCTRL                                                               09/10/2004 16:09:03 PAGE 10  

 534          /********************************************************
 535          * Moving ENTER button to select menu item       *
 536          *********************************************************/
 537          void menuCtrl(void)             
 538          {
 539   1              switch(cursor)
 540   1              {
 541   2                      case HOT_BRIGHTNESS:
 542   2                      case HOT_CONTRAST:
 543   2                              disableOSD();
 544   2                              return;
 545   2      
 546   2                      case MAIN_LUMINANCE:
 547   2                              //mainUnSelect();
 548   2                              cursor = LUMINANCE_CONTRAST;
 549   2                              subMenu();
 550   2                              subSelect(Select);
 551   2                              adjContrast(0,SHOW);
 552   2                              adjBrightness(0,SHOW);
 553   2                              return;
 554   2      
 555   2                      case MAIN_IMAGESETUP:
 556   2                              mainSelect(UnSelect);
 557   2                              cursor = IMAGESETUP_FOUCS;
 558   2                              subMenu();
 559   2                              subSelect(Select);
 560   2                              adjPhase(0,SHOW);
 561   2                              adjPitch(0,SHOW);
 562   2                              return;
 563   2      
 564   2                      case MAIN_IMAGEPOSITION:
 565   2                              mainSelect(UnSelect);
 566   2                              cursor = IMAGEPOSITION_H;
 567   2                              subMenu();
 568   2                              subSelect(Select);
 569   2                              adjHPos(0,SHOW);
 570   2                              adjVPos(0,SHOW);
 571   2                              return;
 572   2      
 573   2                      case MAIN_COLORTEMP:
 574   2                              mainSelect(UnSelect);
 575   2                              if (eepData.colorPos == COLOR_6500)
 576   2                                      cursor = COLORTEMP_WARM;
 577   2                              else if (eepData.colorPos == COLOR_7500)
 578   2                                      cursor = COLORTEMP_COOL;
 579   2                              else
 580   2                                      cursor = COLORTEMP_USER;
 581   2                              subMenu();
 582   2                              subSelect(Select);
 583   2                              return;
 584   2      
 585   2                      case MAIN_AUTOCONFIG:
 586   2                              mainSelect(UnSelect);
 587   2                              cursor = AUTOCONFIG_YES;
 588   2                              subMenu();
 589   2                              subSelect(Select);
 590   2                              return;
 591   2      
 592   2                      case MAIN_OSDSETUP:
 593   2                              mainSelect(UnSelect);
 594   2                              cursor = OSDSETUP_HPOS;
 595   2                              subMenu();
C51 COMPILER V6.23a  OSDCTRL                                                               09/10/2004 16:09:03 PAGE 11  

 596   2                              subSelect(Select);
 597   2                              adjOSDPosH(0,SHOW);
 598   2                              adjOSDPosV(0,SHOW);
 599   2                              adjOSDTime(0,SHOW);
 600   2                              return;
 601   2      
 602   2                      case MAIN_LANGUAGE:
 603   2                              mainSelect(UnSelect);
 604   2                              cursor = eepData.language + 0x80;
 605   2                              subMenu();
 606   2                              subSelect(Select);
 607   2                              return;
 608   2      
 609   2                      case MAIN_INFORMATION:
 610   2                              if (!AdjustFlag)
 611   2                              {
 612   3                                      mainSelect(UnSelect);
 613   3                                      subMenu();
 614   3                              }
 615   2                              else
 616   2                              {
 617   3                                      mainIcon();
 618   3                                      mainSelect(Select);
 619   3                              }
 620   2                              AdjustFlag ^= 1;
 621   2                              return;
 622   2      
 623   2                      case MAIN_RESET:
 624   2                              mainSelect(UnSelect);
 625   2                              cursor = RESET_YES;
 626   2                              subMenu();
 627   2                              subSelect(Select);
 628   2                              return;
 629   2      #if WITH_AUDIO
 630   2                      case MAIN_EXIT:                         
 631   2                              mainSelect(UnSelect);
 632   2                              AdjustFlag ^= 1;
 633   2                              if (AdjustFlag)
 634   2                               {    
 635   3                                   PortDataOut((MainMenuCols+1)*1+11,UPDATE_CODE,blankData,7);
 636   3                                   subMenu();
 637   3                                   subSelect(Select);
 638   3                                   adjVolume(0,SHOW);
 639   3                               }    
 640   2                              else 
 641   2                               {
 642   3                                   PortDataOut((MainMenuCols+1)*6+3, UPDATE_ATTR, mainIconAttrData[UnSelect],3);
 643   3                                   PortDataOut((MainMenuCols+1)*7+3, UPDATE_ATTR, mainIconAttrData[UnSelect],3);
 644   3                                   
 645   3                                   mainIcon();
 646   3                                   mainSelect(Select);
 647   3                                   PortDataOut((MainMenuCols+1)*1+11,UPDATE_CODE,volumeData[eepData.language],sizeof(volumeData[0]) /
             - sizeof(char));       
 648   3                                                                                        
 649   3                               }
 650   2                              return;                 
 651   2      #else
                              case MAIN_EXIT:
                                      disableOSD();
                                      return;
              #endif                  
 656   2      
C51 COMPILER V6.23a  OSDCTRL                                                               09/10/2004 16:09:03 PAGE 12  

 657   2                      case LUMINANCE_BRIGHTNESS:
 658   2                      case LUMINANCE_CONTRAST:
 659   2                      case IMAGESETUP_FOUCS:
 660   2                      case IMAGESETUP_CLOCK:
 661   2                      case IMAGEPOSITION_H:

⌨️ 快捷键说明

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