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

📄 vosd.lst

📁 一个LCD TV的源程序, 用的是realtek的IC
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.07   VOSD                                                                  05/03/2006 14:05:39 PAGE 1   


C51 COMPILER V7.07, COMPILATION OF MODULE VOSD
OBJECT MODULE PLACED IN VOSD.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE VOSD.C BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          /*******************************************************************************
   2            AOSD.C
   3            Copyright (c) Himax, Inc. All rights reserved.
   4          *******************************************************************************/
   5          #include "intrins.h"
   6          #include "MCU_IO.h"
   7          #include "COMMON.H"
   8          #include "Key.H"
   9          #include "MAIN.H"
  10          #include "i2c_control.h"
  11          #include "HX8824.h"
  12          #include "OSD.h"
  13          #include "OSD_Font.h"
  14          /*==============================================================================
  15          
  16          ==============================================================================*/
  17          void Video_OSD(void)
  18          {
  19   1      //  unsigned int value;
  20   1        if(Osd_Status != 1)    //Turn On OSD if OSD is OFF
  21   1        {
  22   2            Item = 0;
  23   2            Select_Item();
  24   2            OSD_ON();
  25   2            return;
  26   2        }
  27   1      /*
  28   1        else {
  29   1          if(bbrg_con_hot&&bosd) {
  30   1            Page=PageTemp;
  31   1            OSD_Show(0, 0, 0, 0, 0);
  32   1            Clear_Screen();
  33   1            bbrg_con_hot=bpage_enter=0;
  34   1            Window_Control(3, 0, 9, 0, 29, WHITE);
  35   1            Window_Control(2, 0, 9, 0, 1, BLUE);
  36   1            Draw_Video_Left_Menu();
  37   1            return;
  38   1            }
  39   1          }
  40   1        if(bpage_enter) {
  41   1          if(bosd) {
  42   1            bpage_enter=0;
  43   1            OSD_Show(0,0,0,0,0);
  44   1            Clear_Screen();
  45   1            return;
  46   1            }
  47   1          if(bauto_reset && (!bbrg_con_hot)) {
  48   1            bpage_enter=bbrg_con_hot=0;
  49   1            Clear_Right_Window();
  50   1            Window_Control(0, 1, 10, 3, 3, WHITE);
  51   1            Draw_Video_Menu(0);
  52   1            return;
  53   1            }
  54   1          switch(Page) {
  55   1            case(0):
C51 COMPILER V7.07   VOSD                                                                  05/03/2006 14:05:39 PAGE 2   

  56   1            //======================== Picture start ==================//
  57   1              if(bup||bdown) {
  58   1                Draw_Video_Menu(0);
  59   1                if(bup)
  60   1                  Item=(Item+4)%5;
  61   1                else
  62   1                  Item=(Item+1)%5;
  63   1                Select_Video_Item();
  64   1                }
  65   1              if(bleft||bright) {
  66   1                switch(Item) {
  67   1                  case(0): // Brightness
  68   1                    if(bleft)
  69   1                      if(Video_Brightness>VIDEO_BRIGHTNESS_MIN)
  70   1                        Video_Brightness--;
  71   1                    if(bright)
  72   1                      if(Video_Brightness<VIDEO_BRIGHTNESS_MAX)
  73   1                        Video_Brightness++;
  74   1                    Adjust_BL_Brightness(Video_Brightness);
  75   1                    EE_MCU_Byte_Write(EE_VIDEO_BRIGHTNESS, Video_Brightness);
  76   1                    Print_Char(3+Item, 25, Video_Brightness, RED);
  77   1                    break;
  78   1                  case(1): // Contrast
  79   1                    if(bleft)
  80   1                      if(Video_Contrast>VIDEO_CONTRAST_MIN)
  81   1                        Video_Contrast--;
  82   1                    if(bright)
  83   1                      if(Video_Contrast<VIDEO_CONTRAST_MAX)
  84   1                        Video_Contrast++;
  85   1                    Adjust_ASIC_Contrast(Video_Contrast);
  86   1                    EE_MCU_Byte_Write(EE_VIDEO_CONTRAST, Video_Contrast);
  87   1                    Print_Char(3+Item, 25, (unsigned int)Video_Contrast*100/VIDEO_CONTRAST_MAX, RED);
  88   1                    break;
  89   1                  case(2): // Color / Saturation
  90   1                    if(bleft)
  91   1                      if(Video_Saturation>VIDEO_SATURATION_MIN)
  92   1                        Video_Saturation--;
  93   1                    if(bright)
  94   1                      if(Video_Saturation<VIDEO_SATURATION_MAX)
  95   1                        Video_Saturation++;
  96   1                    SAA_Byte_Write(0x0c, Video_Saturation);
  97   1                    EE_MCU_Byte_Write(EE_VIDEO_SATURATION, Video_Saturation);
  98   1                    Print_Char(3+Item, 25, (unsigned int)Video_Saturation*100/VIDEO_SATURATION_MAX, RED);
  99   1                    break;
 100   1                  case(3): // HUE / Tint
 101   1                    if(bleft)
 102   1                      if(Video_HUE>VIDEO_HUE_MIN)
 103   1                        Video_HUE--;
 104   1                    if(bright)
 105   1                      if(Video_HUE<VIDEO_HUE_MAX)
 106   1                        Video_HUE++;
 107   1                    SAA_Byte_Write(0x0D, Video_HUE);
 108   1                    EE_MCU_Byte_Write(EE_VIDEO_HUE, Video_HUE);
 109   1                    Print_Char(3+Item, 25, ((int)Video_HUE*50/VIDEO_HUE_MAX)+50, RED);
 110   1                    break;
 111   1                  case(4): // Sharpness
 112   1                    if(bleft)
 113   1                      if(Video_Sharpness>VIDEO_SHARPNESS_MIN)
 114   1                        Video_Sharpness--;
 115   1                    if(bright)
 116   1                      if(Video_Sharpness<VIDEO_SHARPNESS_MAX)
 117   1                        Video_Sharpness++;
C51 COMPILER V7.07   VOSD                                                                  05/03/2006 14:05:39 PAGE 3   

 118   1                    Adjust_ASIC_Sharpness(Video_Sharpness);
 119   1                    EE_MCU_Byte_Write(EE_VIDEO_SHARPNESS, Video_Sharpness);
 120   1                    Print_Char(3+Item, 25, Video_Sharpness, RED);
 121   1                    break;
 122   1                  }
 123   1                }
 124   1      
 125   1            //======================== Picture End   ==================//
 126   1              break;
 127   1            case(1):
 128   1            //======================== Volum start ==================//
 129   1              if(bup||bdown) {
 130   1                if(bup)
 131   1                  Item=(Item+1)%2;
 132   1                else
 133   1                  Item=(Item+1)%2;
 134   1                Select_Video_Item();
 135   1                }
 136   1              if(bleft||bright) // contrast
 137   1                switch(Item) {
 138   1                  case(0): // Volumn
 139   1                    if(bright) {
 140   1                      if(Audio_Vol<VOLUMN_MAX)
 141   1                        Audio_Vol++;
 142   1                      }
 143   1                    if(bleft) {
 144   1                      if(Audio_Vol>VOLUMN_MIN)
 145   1                        Audio_Vol--;
 146   1                     }
 147   1                    Adjust_Volumn(Audio_Vol);
 148   1      TunerSetting(Audio_Vol);
 149   1                    EE_MCU_Byte_Write(EE_VOLUMN, Audio_Vol);
 150   1                    Print_Char(3, 25, (unsigned int)(Audio_Vol-VOLUMN_MIN)*100/(VOLUMN_MAX-VOLUMN_MIN), RED);
 151   1                    break;
 152   1                  case(1): // Mute
 153   1                    bmute=!bmute;
 154   1                    Audio_Mute(bmute);
 155   1                    EE_MCU_Byte_Write(EE_MUTE, bmute);
 156   1                    if(bmute)
 157   1                      Print_String(4, 26, *(LinkPointer+36), RED);
 158   1                    else
 159   1                      Print_String(4, 26, *(LinkPointer+37), RED);

⌨️ 快捷键说明

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