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

📄 movie_display.lst

📁 智原mp3 SDK 开发包 与巨力 有mp3 wma ogg decoder
💻 LST
字号:
C51 COMPILER V7.50   MOVIE_DISPLAY                                                         08/18/2008 14:06:46 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE MOVIE_DISPLAY
OBJECT MODULE PLACED IN ..\output\output_bin\output_movie\movie_display.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\code\ap_movie\src\movie_display.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDI
                    -R(..\..\..\bsp\include;..\..\code\ap_movie\src\include;..\..\code\global;..\..\code\include) DEFINE(CONFIG_ASIC,dynamic_
                    -load) DEBUG OBJECTEXTEND PRINT(..\output\output_bin\output_movie\movie_display.lst) OBJECT(..\output\output_bin\output_m
                    -ovie\movie_display.obj)

line level    source

   1          /************************
   2           *   mp3_display.c
   3           ************************/
   4          
   5          #include <string.h>
   6          #include "api.h"
   7          #include "lcd.h"
   8          #include "common.h"
   9          #include "display.h"
  10          #include "file_brower.h"
  11          #include "movie_main.h"
  12          //#include "lrc_parse.h"
  13          #include "movie_display.h"
  14          #include "movie_utile.h"
  15          #include "res.h"
  16          #include "res_show.h"
  17          #include "ap_common.h"
  18          #include "ui_main.h"
  19          #include "prefer.h"
  20          #include "global_user.h"
  21          
  22          #define PROGRESS_Y  24
  23          #define PROGRESS_X  4
  24          #define FILE_NAME_X 2
  25          #define FILE_NAME_Y 95
  26          
  27          INT16U code loop_id[3] ={MLOOP1,MLOOP2,MLOOP5};
  28          extern void song_timeon(SONGTIME type);
  29          
  30          #if 0
              void gfx_progress(UINT8 pct)
              {
                      UINT8 i, w;
                      //UINT16 pitch;
              
                      /* Draw background process bar */
                      bResShowPic(SCROT,PROGRESS_X,PROGRESS_Y);
                      
                      if(pct > 100)
                              pct = 100;
                      else if(pct == 0)
                              return;
              
                      /* Alignment to even */
                      w = ((UINT16)pct * 120) / 100;
                      w = (w + 1) & (~0x1);
                      
                      lcd_set_rw_area(PROGRESS_X,PROGRESS_Y, w, 4);
                      
                      for(i=0;i<(w<<1);i++)
                      {
                              pixel_buf[i] = Color_RED_def;
C51 COMPILER V7.50   MOVIE_DISPLAY                                                         08/18/2008 14:06:46 PAGE 2   

                      }
                      /* Draw percentage */
                      for(i = 0; i < 4; i++) {
                              lcd_put_data((UINT16)pixel_buf, (UINT16)w << 1);
                      }
                      
              }
              #endif
  61          
  62          void vShowMusicType()
  63          {
  64   1              //ui_show_a(MMUSIC);
  65   1               ui_show_a(MAMV);   
  66   1      }
  67          
  68          void vShowLoop()
  69          {
  70   1              ui_show_b(loop_id[tUserPreference.u8RepeatMode]);       
  71   1      }
  72          
  73          void vShowEq()
  74          {
  75   1              ui_show_c(tUserPreference.u8EqMode+MEQICON1);
  76   1      }
  77          
  78          #if 0
              void vShowRepeat()
              {
                      if(api_eGetRepeatMode() == REPEAT_MODE_SETA_OK)
                              ui_show_a(MRPLNOA);
                      else if(api_eGetRepeatMode() == REPEAT_MODE_SETAB_OK)
                              ui_show_a(MRPLNOB);
                      else  
                              vShowBitrate();         
              }
              #endif
  89          void ui_show_data3(char *buf, UINT8 x, UINT8 y)
  90          {
  91   1          //          if(scr_en2) return;
  92   1                  
  93   1          while(1)
  94   1          {
  95   2              if(*buf!=0)bResShowPic(MNUM0+*buf-0x30, x, y);
  96   2              else
  97   2                  break;
  98   2              buf++;
  99   2              x+=5;
 100   2          }
 101   1      }
 102          
 103          
 104          void vShowSequence()
 105          {
 106   1              my_sprintf(_buf, "%03d", curr_music.u16Order);  
 107   1              _buf[3] = ';';
 108   1              my_sprintf(&_buf[4], "%03d",totfile);
 109   1              ui_show_data2(_buf,3, 115);
 110   1      }
 111          
 112          
 113          void vShowTotalTime()
 114          {
C51 COMPILER V7.50   MOVIE_DISPLAY                                                         08/18/2008 14:06:46 PAGE 3   

 115   1              //song_timeon(TIME_TOTAL);
 116   1              //ui_show_d(_buf, 1); 
 117   1      }
 118          
 119          void vShowCurrentTime()
 120          {
 121   1              //song_timeon(TIME_PLAY);
 122   1              //ui_show_d(_buf, 0);   
 123   1      }
 124          
 125          void ui_draw(void)
 126          {
 127   1              //shoud show background now
 128   1              bResShowPic(BACKDROP,0,0);
 129   1              bResShowPic(RPLAY3,2,51);
 130   1              
 131   1              if(!api_bGetCurrMusicInfo(&curr_music))
 132   1                      return; 
 133   1              //show music type.
 134   1              vShowMusicType();
 135   1              //show loop type
 136   1              vShowLoop();
 137   1              //show music order
 138   1              vShowSequence();
 139   1                      
 140   1              //show file name.
 141   1              gfx_songname();
 142   1              ui_show_vol();
 143   1              //show battary
 144   1              ui_show_batt();
 145   1              
 146   1              //show media type
 147   1              bg_color = 0x1d1f;
 148   1              fg_color = COLOR_WHITE;
 149   1              if(my_disk==0)  //sd
 150   1              {
 151   2                      lcd_puts(56, 17, "SD",FONTSIZE_HYPER);
 152   2              }
 153   1              else      //nand
 154   1              {
 155   2                      lcd_puts(48, 17, "NAND", FONTSIZE_HYPER);
 156   2              }
 157   1      }
 158          
 159          
 160          void play_time_update(void)
 161          {
 162   1              static UINT32 last_time;
 163   1              INT32U data time;
 164   1              
 165   1              time = api_u32GetPlayingTime();
 166   1              if(last_time != time) {
 167   2                      if(curr_screen->id == SCREEN_MOVIE) {
 168   3                              last_time = api_u32GetPlayingTime();
 169   3                      }
 170   2              }
 171   1      }
 172          
 173          void gfx_songname(void)
 174          {
 175   1              bg_color = COLOR_BLACK;
 176   1              gfx_set_bg(COLOR_BLACK);
C51 COMPILER V7.50   MOVIE_DISPLAY                                                         08/18/2008 14:06:46 PAGE 4   

 177   1              gfx_bg_rectangle(0, 34, 128, 16);       
 178   1              fg_color = COLOR_UNSELECT;
 179   1              /* Draw song file name */
 180   1              lcd_max_str = 12;
 181   1              gfx_filename(0,34);
 182   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    397    ----
   CONSTANT SIZE    =     19    ----
   XDATA SIZE       =      4       5
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       4
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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