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

📄 al320_osddisplay.lst

📁 基于averlogic公司的AL320的AUO 2.4" SRGB屏的驱动程序
💻 LST
📖 第 1 页 / 共 5 页
字号:
 730                          
 731                                          EEPROMWrite(BANK0, PAL_YUV_COLOR_SAVE, ucDx);
 732                                          }
 733                                  }
 734                          else {
 735          
C51 COMPILER V7.50   AL320_OSDDISPLAY                                                      06/25/2008 18:08:09 PAGE 13  

 736                                  if (gucVideoStandard == NTSC_MODE){
 737          
 738                          EEPROMWrite(BANK0, NTSC_COLOR_SAVE, ucDx);
 739                          }
 740                  else if (gucVideoStandard == PAL_MODE){
 741                          
 742                                  EEPROMWrite(BANK0, PAL_COLOR_SAVE, ucDx);
 743                          }
 744                                  }
 745                  }
 746              else if (gbHue == 1){
 747          
 748                          I2CWrite(SLAVE_ADDRESS_AL320, 0x0b, ucDx);
 749          
 750                          if (gucVideoStandard == NTSC_MODE){
 751          
 752                          EEPROMWrite(BANK0, NTSC_TINT_SAVE, ucDx);
 753                          }
 754                          else if (gucVideoStandard == PAL_MODE){
 755                          
 756                                  EEPROMWrite(BANK0, PAL_TINT_SAVE, ucDx);
 757                          }
 758                  }
 759          
 760                  SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);
 761          
 762          }
 763          */
 764          
 765          // ********************************************************************************
 766          // Function: AL320_SetupSharpnessLevel
 767          // Description: Setup Sharpness Level   
 768          // Input parameters:   None
 769          // Return values:      None
 770          // ********************************************************************************
 771          /*
 772          void AL320_SetupSharpnessLevel(void){
 773          
 774                  Byte ucTemp;
 775          
 776                  SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);
 777          
 778              if (gucBarCounter == 0){
 779                          ucTemp = 0;
 780                  }
 781                  else if (gucBarCounter == 1){
 782                          ucTemp = 0x77;
 783                  }
 784              else if (gucBarCounter == 2){
 785                          ucTemp = 0x66;
 786                  }
 787                  else if (gucBarCounter == 3){
 788                          ucTemp = 0x55;
 789                  }
 790              else if (gucBarCounter == 4){
 791                          ucTemp = 0x44;
 792                  }
 793                  else if (gucBarCounter == 5){
 794                          ucTemp = 0x33;
 795                  }
 796              else if (gucBarCounter == 6){
 797                          ucTemp = 0x22;
C51 COMPILER V7.50   AL320_OSDDISPLAY                                                      06/25/2008 18:08:09 PAGE 14  

 798                  }
 799              else if (gucBarCounter == 7){
 800                          ucTemp = 0x11;
 801                  }
 802          
 803                  SetReg(SLAVE_ADDRESS_AL320, 0x1d, ucTemp);
 804          
 805                  if (gucVideoStandard == NTSC_MODE){
 806          
 807                          EEPROMWrite(BANK0, NTSC_SHARPNESS_SAVE, ucTemp);
 808                  EEPROMWrite(BANK0, NTSC_SHARPNESS_BARLEVEL, gucBarCounter);
 809              }
 810                  else if (gucVideoStandard == PAL_MODE){
 811          
 812                          EEPROMWrite(BANK0, PAL_SHARPNESS_SAVE, ucTemp);
 813                  EEPROMWrite(BANK0, PAL_SHARPNESS_BARLEVEL, gucBarCounter);
 814                  }
 815          }
 816          */
 817          // ********************************************************************************
 818          // Function: AL320_OSDBarIconChange
 819          // Description: Change OSD Icon and Display   
 820          // Input parameters:   None
 821          // Return values:      None
 822          // ********************************************************************************
 823          /*
 824          void AL320_OSDBarIconChange(void){
 825          
 826                  Byte  ucTemp;
 827          
 828          
 829                  if (gbBarIconDiscrease == 1){       //Draw the Level Icon
 830                                  if ((gucBarCounter%2) == 0) {           //jason 07/03/28  don't dispaly odd number
 831                                          AL320_SetIconAddress(((gucBarCounter>>1) + 2), 3, OSD_Icon_HTotal);
 832                                          AL320_SetOSDIcon(SPACE_12_8);
 833                                          }
 834              }
 835                  else{
 836                                  if ((gucBarCounter%2) == 0) {           //jason 07/03/28  don't dispaly odd number
 837                                          AL320_SetIconAddress(((gucBarCounter>>1)+1), 3, OSD_Icon_HTotal);
 838                                          AL320_SetOSDIcon(BAR_12_8);
 839                                                  //printf("%02x\n", (int)gucBarCounter);
 840                                          }
 841                  }
 842              
 843                  ucTemp = _0_12_8 + (gucBarCounter/10);
 844                  AL320_SetIconAddress(15, 2, OSD_Icon_HTotal);
 845                  AL320_SetOSDIcon(ucTemp);
 846          
 847                  ucTemp = _0_12_8 + (gucBarCounter%10);                      //Drew the Value Level           
 848              AL320_SetIconAddress(16, 2, OSD_Icon_HTotal);
 849              AL320_SetOSDIcon(ucTemp);
 850          
 851                  if (gbContrast == 1){
 852                  
 853                     if (gucVideoStandard == NTSC_MODE){
 854          
 855                         EEPROMWrite(BANK0, NTSC_CONTRAST_BARLEVEL, gucBarCounter);
 856                     }
 857                     else if (gucVideoStandard == PAL_MODE){
 858           
 859                             EEPROMWrite(BANK0, PAL_CONTRAST_BARLEVEL, gucBarCounter);
C51 COMPILER V7.50   AL320_OSDDISPLAY                                                      06/25/2008 18:08:09 PAGE 15  

 860                     }
 861                  }
 862                  else if (gbBrightness == 1){
 863                  
 864                          if (gucVideoStandard == NTSC_MODE){
 865                    
 866                                  EEPROMWrite(BANK0, NTSC_BRIGHTNESS_BARLEVEL, gucBarCounter);
 867                          }
 868                          else if (gucVideoStandard == PAL_MODE){
 869           
 870                             EEPROMWrite(BANK0, PAL_BRIGHTNESS_BARLEVEL, gucBarCounter);
 871                      }
 872                  }
 873              else if (gbSaturation == 1){
 874                  
 875                          if (gucVideoStandard == NTSC_MODE){
 876          
 877                              EEPROMWrite(BANK0, NTSC_COLOR_BARLEVEL, gucBarCounter);
 878                          }
 879                          else if (gucVideoStandard == PAL_MODE){
 880           
 881                             EEPROMWrite(BANK0, PAL_COLOR_BARLEVEL, gucBarCounter);
 882                      }
 883                  }
 884              else if (gbHue == 1){
 885                  
 886                     if (gucVideoStandard == NTSC_MODE){
 887          
 888                             EEPROMWrite(BANK0, NTSC_TINT_BARLEVEL, gucBarCounter);
 889                     }
 890                 else if (gucVideoStandard == PAL_MODE){
 891           
 892                             EEPROMWrite(BANK0, PAL_TINT_BARLEVEL, gucBarCounter);
 893                     }
 894                  }
 895                  
 896          }
 897          */
 898          // ********************************************************************************
 899          // Function: AL320_SetupOSDMode_QualityBar
 900          // Description: Setup OSD Mode for Contrast/Brightness/Color/Hue/Sharpness   
 901          // Input parameters:   None
 902          // Return values:      None
 903          // ********************************************************************************
 904          /*
 905          void AL320_SetupOSDMode_QualityBar(void){
 906          
 907                  AL320_EnableOSD(OSD_OFF);
 908                  AL320_EnableOSDBlinking(BLINK_OFF);
 909                  AL320_SetOSDFontContext(0x02);
 910              AL320_SetOSDFontPixelDepth(OSD_FONT_DEPTH_1);
 911                  if (gucVideoStandard == NTSC_MODE){
 912                  
 913                      if (gucDisplayMode == MODE1){
 914          
 915                          AL320_SetOSDDisplayStart(0x07, 0x52);   //jack
 916                          }
 917                          else if (gucDisplayMode == MODE2){
 918          
 919                          AL320_SetOSDDisplayStart(0x20, 0x52);
 920                          }
 921                  }
C51 COMPILER V7.50   AL320_OSDDISPLAY                                                      06/25/2008 18:08:09 PAGE 16  

 922                  else{
 923                      if (gucDisplayMode == MODE1){
 924          
 925                          AL320_SetOSDDisplayStart(0x07, 0x55);      //jack
 926                          }
 927                          else if (gucDisplayMode == MODE2){
 928          
 929                          AL320_SetOSDDisplayStart(0x20, 0x55);
 930                          }
 931                  }
 932                  AL320_SetOSDSize(OSD_Icon_HTotal-1, 2);
 933                  AL320_SetOSDTransparent(OSD_TRANSPARENT_ON|OSD_TRANSPAREN_COLOR_0); 
 934                  AL320_SetOSDZoom(OSD_HORIZONTAL_ZOOM_X2 | OSD_VERTICAL_ZOOM_X2);
 935          }
 936          */
 937          // ********************************************************************************
 938          // Function: AL320_OSDEnterFunction
 939          // Description: Enter Function for OSD Menu   
 940          // Input parameters:   None
 941          // Return values:      None
 942          // ********************************************************************************
 943          /*
 944          void AL320_OSDEnterFunction(void){
 945          
 946                  AL320_EnableOSD(OSD_OFF);
 947                  
 948                  if (gbSecondMenu == 0 && gbQualityAdjustment == 0){ //for Main Menu to Second Menu
 949                  
 950                          AL320_SetOSDMainMenuToSecondMenu();
 951                  }
 952                  else{                                               //for Execute Function of Second Menu 
 953                  
 954                          AL320_ExecuteOSDSecondMenuFunction();  
 955                  }
 956          
 957                  if (gbOSDMenu == 0) {
 958                  
 959                          AL320_EnableOSD(OSD_ON);
 960          
 961                  }
 962          }         
 963          */
 964          // ********************************************************************************
 965          // Function: AL320_OSDExitFunction
 966          // Description: Exit Function for OSD Menu   
 967          // Input parameters:   None
 968          // Return values:      None
 969          // ********************************************************************************
 970          /*
 971          void AL320_OSDExitFunction(void){
 972          
 973                  if (gbHMoving ==1 || gbVMoving ==1){
 974          
 975                  gbHMoving = 0;

⌨️ 快捷键说明

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