jpegeffect_help.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:22k
源码类别:

DVD

开发平台:

C/C++

  1. //liulifeng 2004-6-30 14:17
  2. #include "user_init.h"
  3. #include "global.h"
  4. #include "avd.h"
  5. #include "osd.h"
  6. #include "fsNAV.h"
  7. #include "fsGUI.h"
  8. #include "memcfg.h"
  9. #include "ircode.h"
  10. #include "timer.h"
  11. #include "jpegeffect.h"
  12. #include "kernel.h"
  13. #include "cfont.h"
  14. #ifdef NEW_MP3_GUI//nono 4-1-9 22:13
  15. #include "fsGUI1.h"
  16. //#include "fsGUI_new.h" //Maoyong 2004.04.16
  17. #endif
  18. #ifdef JPG_EFFECT
  19. extern UINT16 Is_JPEG_STATE(void);
  20. void jpeg_effect_draw_help(void)
  21. {
  22. #ifdef  CALL_JPGEFFECT_HELP
  23.     UINT16 i;
  24.     if(Is_JPEG_STATE())
  25.     {
  26. #ifdef USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  27.     #ifndef MP3_LARGE_GUI
  28. FSGUI_ShowString(60,20,"PRESS  TITLE  FOR JPEG HELP",0xc0, 0x9090);
  29. #else//#ifndef MP3_LARGE_GUI
  30. FSGUI_ShowString(120,20,"PRESS  TITLE  FOR JPEG HELP",0xc0, 0x9090);
  31. #endif//#ifndef MP3_LARGE_GUI
  32. #elif defined(USE_PREVIEW_KEY_TO_CALL_JPGEFFECT_HELP)
  33.     #ifndef MP3_LARGE_GUI
  34. FSGUI_ShowString(60,20,"PRESS PREVIEW FOR JPEG HELP",0xc0, 0x9090);
  35. #else//#ifndef MP3_LARGE_GUI
  36. FSGUI_ShowString(120,20,"PRESS PREVIEW FOR JPEG HELP",0xc0, 0x9090);
  37. #endif//#ifndef MP3_LARGE_GUI
  38. #endif//USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  39. //FSGUI_ShowString(60,25,"___________________________",0xc0, 0x8080);
  40. //  FSGUI_ShowString(60,25,"-------------",0xc0, 0x8080);
  41. #if !defined(MP3_LARGE_GUI)
  42. #ifndef AD_TCL//2004-3-29 14:16 lijd
  43. for(i=60;i<295;i++)
  44. {
  45.             FSGUI_ShowChar(0,i++,28,'-',0x20,0x8080);
  46. }
  47. #endif
  48. #endif
  49.     }
  50.     else
  51.     {
  52. #ifdef NEW_MP3_GUI//nono 20040109
  53. #ifdef USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  54. #ifndef MP3_LARGE_GUI
  55.         FSGUI_ShowString(60,20,"PRESS  TITLE  FOR JPEG HELP",BK_GROUNDY, BK_CRCB);
  56.         #else//#ifndef MP3_LARGE_GUI
  57.         FSGUI_ShowString(120,20,"PRESS  TITLE  FOR JPEG HELP",BK_GROUNDY, BK_CRCB);
  58.         #endif//#ifndef MP3_LARGE_GUI
  59. #elif defined(USE_PREVIEW_KEY_TO_CALL_JPGEFFECT_HELP)
  60. #ifndef MP3_LARGE_GUI
  61.         FSGUI_ShowString(60,20,"PRESS PREVIEW FOR JPEG HELP",BK_GROUNDY, BK_CRCB);
  62.         #else//#ifndef MP3_LARGE_GUI
  63.         FSGUI_ShowString(120,20,"PRESS PREVIEW FOR JPEG HELP",BK_GROUNDY, BK_CRCB);
  64.         #endif//#ifndef MP3_LARGE_GUI
  65. #endif//#ifdef USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  66. #ifndef MP3_LARGE_GUI
  67. for(i=60;i<295;i++)
  68. {
  69.             FSGUI_ShowChar(0,i++,28,'-',BK_GROUNDY,BK_CRCB);
  70. }
  71. #endif//#ifndef MP3_LARGE_GUI
  72. #else//#ifdef NEW_MP3_GUI
  73. #ifdef USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  74. #ifndef MP3_LARGE_GUI
  75.         FSGUI_ShowString(60,20,"PRESS  TITLE  FOR JPEG HELP",BK_GROUNDY, BK_GROUNDCRCB);
  76.         #else//#ifndef MP3_LARGE_GUI
  77.         FSGUI_ShowString(120,20,"PRESS  TITLE  FOR JPEG HELP",BK_GROUNDY, BK_GROUNDCRCB);
  78.         #endif//#ifndef MP3_LARGE_GUI
  79. #elif defined(USE_PREVIEW_KEY_TO_CALL_JPGEFFECT_HELP)
  80. #ifndef MP3_LARGE_GUI
  81.         FSGUI_ShowString(60,20,"PRESS PREVIEW FOR JPEG HELP",BK_GROUNDY, BK_GROUNDCRCB);
  82.         #else//#ifndef MP3_LARGE_GUI
  83.         FSGUI_ShowString(120,20,"PRESS PREVIEW FOR JPEG HELP",BK_GROUNDY, BK_GROUNDCRCB);
  84.         #endif//#ifndef MP3_LARGE_GUI
  85. #endif//#ifdef USE_TITLE_KEY_TO_CALL_JPGEFFECT_HELP
  86. #ifndef MP3_LARGE_GUI
  87. for(i=60;i<295;i++)
  88. {
  89.             FSGUI_ShowChar(0,i++,28,'-',BK_GROUNDY,BK_GROUNDCRCB);
  90. }
  91. #endif//#ifndef MP3_LARGE_GUI
  92. #endif//#ifdef NEW_MP3_GUI
  93.     }
  94. #endif//CALL_JPGEFFECT_HELP
  95. }
  96. #ifndef HELP_BMP_GUI
  97. #if 1//ndef JPG_EFFECT_ONLY_ROTATE
  98. //
  99. // USAGE:
  100. // potatooo: please try to change this into command format
  101. //
  102. void Jpg_Show_Usage()//liulifeng move from "\jpegjpegeffect.c" to here
  103. {
  104. #ifdef MP3_LARGE_GUI //Maoyong 2003.12.29 for Large MP3 GUI
  105. set_disbuf(0);
  106. config_memory(MEMORY_GRAPH_NTSC);
  107. #else//#ifdef MP3_LARGE_GUI
  108. config_memory(MEMORY_GRAPH_SMALL);
  109. #endif//#ifdef MP3_LARGE_GUI
  110. if(Jpg_Show_Usage_Flag)
  111. {
  112.     if(Jpg_Show_Usage_Page==0)
  113.     {
  114.     #ifdef MP3_LARGE_GUI
  115.            FSGUI_FillFrameBuf(0, 0, 720, 480, 0x50, 0x4040); //Back Ground
  116.     // first line
  117.     FSGUI_FillFrameBuf(0, 0, 720, 100, 0x20, 0x8080);
  118.     FSGUI_FillFrameBuf(0, 100, 720, LINE_HEIGHT+4, WHITE_Y, WHITE_CRCB);
  119.     //second line
  120.     FSGUI_FillFrameBuf(0, 372, 720, LINE_HEIGHT+4, WHITE_Y, WHITE_CRCB);
  121.     FSGUI_FillFrameBuf(0, 380, 720, 100, 0x20, 0x8080);
  122.     //FSGUI_FillFrameBuf(0, 44, 720, 100, 0x50, 0x4040);
  123.     FSGUI_ShowString(260,120,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  124.     FSGUI_ShowString(100,148,"PROGRAM:  PICTURE PLAY MODE---",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  125.     FSGUI_ShowString(100,176,"  LEFT<->RIGHT     UP<->DOWN",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  126.     FSGUI_ShowString(100,204,"  LEFT TOP<->RIGHT BOTTOM",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  127.     FSGUI_ShowString(100,232,"  LEFT BOTTOM<->RIGHT TOP",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  128.     FSGUI_ShowString(100,260,"  H-WINDOW         V-WINDOW",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  129.     FSGUI_ShowString(196,320,"'ENTER' TO CONTINUE"  ,0x70, 0x5050);
  130.     FSGUI_ShowString(196,348,"'STOP' TO BREAK"  ,0x70, 0x5050);
  131.     #else//#ifdef MP3_LARGE_GUI
  132.     FSGUI_FillFrameBuf(0, 0, 352, 288, 0x50, 0x4040);
  133.     // first line
  134.     FSGUI_FillFrameBuf(0, 0, 352, 40, 0x20, 0x8080);
  135.     FSGUI_FillFrameBuf(0, 40, 352, LINE_HEIGHT, WHITE_Y, WHITE_CRCB);
  136.     //second line
  137.     FSGUI_FillFrameBuf(0, 250, 352, LINE_HEIGHT, WHITE_Y, WHITE_CRCB);
  138.     FSGUI_FillFrameBuf(0, 254, 352, 30, 0x20, 0x8080);
  139.     FSGUI_FillFrameBuf(0, 44, 352, 206, 0x50, 0x4040);
  140. FSGUI_ShowString(100,60,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  141.     FSGUI_ShowString(40,100,"PROGRAM:  PICTURE PLAY MODE---",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  142.     FSGUI_ShowString(40,120,"  LEFT<->RIGHT     UP<->DOWN",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  143.     FSGUI_ShowString(40,140,"  LEFT TOP<->RIGHT BOTTOM",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  144.     FSGUI_ShowString(40,160,"  LEFT BOTTOM<->RIGHT TOP",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  145.     FSGUI_ShowString(40,180,"  H-WINDOW         V-WINDOW",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  146.     FSGUI_ShowString(100,210,"'ENTER' TO CONTINUE"  ,0x70, 0x5050);
  147.     FSGUI_ShowString(100,230,"'STOP' TO BREAK"  ,0x70, 0x5050);
  148.      #endif//#ifdef MP3_LARGE_GUI
  149. }
  150. else if(Jpg_Show_Usage_Page==1)
  151. {
  152. #ifdef MP3_LARGE_GUI
  153.     FSGUI_FillFrameBuf(0, 108, 720, 264, 0x50, 0x4040);
  154.     FSGUI_ShowString(260,120,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  155.     FSGUI_ShowString(100,148,"PROGRAM:  PICTURE PLAY MODE---",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  156.     FSGUI_ShowString(100,176,"  LEFT BOTTOM<->RIGHT TOP",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  157.     FSGUI_ShowString(100,204,"  CENTER<->UP-DOWN",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  158.     FSGUI_ShowString(100,232,"  CENTER<->LEFT-RIGHT",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  159.         FSGUI_ShowString(100,260,"  EDGE->CENTER   RANDOM  NONE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  160.     FSGUI_ShowString(220,320,"CONTINUE"  ,0x70, 0x5050);
  161. #else//MP3_LARGE_GUI
  162.   //  FSGUI_FillFrameBuf(0, 44, 352, 206, 0x30, 0x8080);
  163.     FSGUI_FillFrameBuf(0, 44, 352, 206, 0x50, 0x4040);
  164. FSGUI_ShowString(100,60,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  165.     FSGUI_ShowString(40,100,"PROGRAM:  PICTURE PLAY MODE---",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  166.     FSGUI_ShowString(40,120,"  LEFT BOTTOM<->RIGHT TOP",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  167.     FSGUI_ShowString(40,140,"  CENTER<->UP-DOWN",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  168.     FSGUI_ShowString(40,160,"  CENTER<->LEFT-RIGHT",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  169.         FSGUI_ShowString(40,180,"  EDGE->CENTER   RANDOM  NONE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  170.     FSGUI_ShowString(200,220,"CONTINUE"  ,0x70, 0x5050);
  171. #endif//MP3_LARGE_GUI
  172. }
  173. else if(Jpg_Show_Usage_Page==2)
  174. {
  175. #ifdef MP3_LARGE_GUI
  176.     FSGUI_FillFrameBuf(0, 108, 720, 264, 0x50, 0x4040);
  177.     FSGUI_ShowString(240,120,"JPG FUNC  KEY USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  178.     FSGUI_ShowString(100,148,"STOP:     RETURN TO MENU",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  179.     FSGUI_ShowString(100,176,"NEXT:     NEXT PICTURE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  180.     FSGUI_ShowString(100,204,"PREV:     PREVIOUS PICTURE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  181.     FSGUI_ShowString(100,232,"PLAY:     PLAY SEQUENTIALLY",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  182.     FSGUI_ShowString(220,320,"CONTINUE"  ,0x70, 0x5050);
  183. #else//MP3_LARGE_GUI
  184.  //   FSGUI_FillFrameBuf(0, 44, 352, 206, 0x30, 0x8080);
  185.     FSGUI_FillFrameBuf(0, 44, 352, 206, 0x50, 0x4040);
  186. FSGUI_ShowString(100,60,"JPG FUNC  KEY USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  187.     FSGUI_ShowString(40,100,"STOP:     RETURN TO MENU",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  188.     FSGUI_ShowString(40,120,"NEXT:     NEXT PICTURE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  189.     FSGUI_ShowString(40,140,"PREV:     PREVIOUS PICTURE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  190.     FSGUI_ShowString(40,160,"PLAY:     PLAY SEQUENTIALLY",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  191.     FSGUI_ShowString(200,220,"CONTINUE"  ,0x70, 0x5050);
  192.        #endif//MP3_LARGE_GUI
  193. }
  194.     else if(Jpg_Show_Usage_Page==3)
  195.     {
  196.     #ifdef MP3_LARGE_GUI
  197.          FSGUI_FillFrameBuf(0, 108, 720, 264, 0x50, 0x4040);
  198.     FSGUI_ShowString(260,120,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  199.     FSGUI_ShowString(100,148,"UP:      INVERT",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  200.     FSGUI_ShowString(100,176,"DOWN:    MIRROR",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  201. #ifdef NEXT_FORWARD_IN_A_KEY       //gerry,2004-6-17 21:14
  202.     FSGUI_ShowString(100,204,"ZOOM:    CHANGE ZOOM STATE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  203. #else
  204.     FSGUI_ShowString(100,204,"F-F:     ANTI-CLOCKWISE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  205.     FSGUI_ShowString(100,232,"F-B:     CLOCKWISE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  206.     FSGUI_ShowString(100,260,"ZOOM:    CHANGE ZOOM STATE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  207. #endif//NEXT_FORWARD_IN_A_KEY
  208.     FSGUI_ShowString(220,320,"LEAVE"  ,0x70, 0x5050);
  209.     #else//MP3_LARGE_GUI
  210.  //   FSGUI_FillFrameBuf(0, 44, 352, 206, 0x30, 0x8080);
  211.     FSGUI_FillFrameBuf(0, 44, 352, 206, 0x50, 0x4040);
  212. FSGUI_ShowString(100,60,"JPG FUNC USAGE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  213.     FSGUI_ShowString(40,100,"UP:      INVERT",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  214.     FSGUI_ShowString(40,120,"DOWN:    MIRROR",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  215. #ifdef NEXT_FORWARD_IN_A_KEY//gerry,2004-6-17 21:14
  216.     FSGUI_ShowString(40,140,"ZOOM:    CHANGE ZOOM STATE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  217. #else
  218.     FSGUI_ShowString(40,140,"F-F:     ANTI-CLOCKWISE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  219.     FSGUI_ShowString(40,160,"F-B:     CLOCKWISE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  220.     FSGUI_ShowString(40,180,"ZOOM:    CHANGE ZOOM STATE",FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
  221. #endif//NEXT_FORWARD_IN_A_KEY
  222.     FSGUI_ShowString(200,220,"LEAVE"  ,0x70, 0x5050);
  223.            #endif//MP3_LARGE_GUI 
  224.     }
  225. }
  226. }
  227. #endif//endif 1
  228. #else //#ifndef HELP_BMP_GUI
  229. #include "fsGUI_BmpUI.h"
  230. #include "FrameBuf_BmpUI.h"
  231. #define HELP_TITLE_BG_Y         RGB2Y(153, 138, 131)
  232. #define HELP_TITLE_BG_CRCB      (RGB2Cr(153, 138, 131)<<8)|(RGB2Cb(153, 138, 131))
  233. #define HELP_TITLE_FONT_Y       RGB2Y(49,62,68)
  234. #define HELP_TITLE_FONT_CRCB    (RGB2Cr(49,62,68)<<8)|(RGB2Cb(49,62,68))
  235. #define HELP_FILE_BG_Y          RGB2Y(125, 147, 170)
  236. #define HELP_FILE_BG_CRCB       (RGB2Cr(125, 147, 170)<<8)|(RGB2Cb(125, 147, 170))
  237. #define HELP_FILE_FONT_Y        RGB2Y(222,222,222)
  238. #define HELP_FILE_FONT_CRCB     (RGB2Cr(222,222,222)<<8)|(RGB2Cb(222,222,222))
  239. #define HELP_PAGE_RECT_Y            RGB2Y(81,96,153)
  240. #define HELP_PAGE_RECT_CRCB         (RGB2Cr(81,96,153)<<8)|(RGB2Cb(81,96,153))
  241. #define HELP_PAGE_RECT_EDGE_Y       RGB2Y(172,175,190)
  242. #define HELP_PAGE_RECT_EDGE_CRCB    (RGB2Cr(172,175,190)<<8)|(RGB2Cb(172,175,190))
  243. #define HELP_PAGE_FONT_Y            RGB2Y(157,157,157)
  244. #define HELP_PAGE_FONT_CRCB         (RGB2Cr(157,157,157)<<8)|(RGB2Cb(157,157,157))
  245. #define HELP_KEY_LEFT_X              277
  246. #define HELP_KEY_RIGHT_X             292
  247. #define HELP_KEY_Y                   180
  248. #define HELP_PROGRAM_X               157
  249. #define HELP_PROGRAM_Y               180
  250. #define HELP_PAGE_RECT_X1            361                  
  251. #define HELP_PAGE_RECT_Y1            426
  252. char s[60];
  253. UINT16 CenteredXStart;
  254. /*
  255.  Function: make sentences centered at x direction
  256.  input : xWidth ----- whole line width 
  257.          wFont  ----- displayed font width
  258.  output: xStart ----- centered start
  259. */
  260. UINT16 XStartLeft2Centered(UINT16 xWidth ,UINT16 wFont)
  261. {
  262.     UINT16 sLen,xStart;
  263.     sLen = wFont * strlen(s);
  264.     xStart = (xWidth - sLen)/2;
  265.     return xStart;
  266. }
  267. /*
  268.  Function: Draw Jpeg Help background
  269. */
  270. void Jpg_Usage_bg()
  271. {
  272.     FSGUI_FillFrameBuf(0, 0, 720, 29, HELP_FILE_BG_Y, HELP_FILE_BG_CRCB); //title background
  273.     
  274.     //show title progressive rect
  275.     FSGUI_DrawBackGround(0, 29, 719, 1,12);
  276.     //show title font 
  277.     strcpy(s,"'ENTER'TO CONTINUE /'STOP'TO BREAK");
  278.     CenteredXStart = XStartLeft2Centered(720 ,8);
  279.     FSGUI_ShowLittleString(CenteredXStart, 48,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  280.    
  281.     FSGUI_FillFrameBuf(0, 78, 720, 87, HELP_TITLE_BG_Y, HELP_TITLE_BG_CRCB); //title background
  282.     FSGUI_FillFrameBuf(0, 165, 720, 253, HELP_FILE_BG_Y, HELP_FILE_BG_CRCB); //all background
  283.     
  284.     //show bottom progressive rect
  285.     FSGUI_DrawBackGround(0, 418, 719, 1,12);
  286.     
  287.     FSGUI_FillFrameBuf(0, 467, 720, 12, HELP_FILE_BG_Y, HELP_FILE_BG_CRCB); //all background
  288.    
  289.     //show "help" font
  290.     FSGUI_ShowString(344 - 4*16,430,"HELP" ,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  291.     //show help page rect
  292.     FrameBuf_DrawRect(HELP_PAGE_RECT_X1, HELP_PAGE_RECT_Y1, 94, 30, HELP_PAGE_RECT_Y, HELP_PAGE_RECT_CRCB);      
  293.     
  294.     //show help page rect four outlines
  295.     FrameBuf_DrawLine(HELP_PAGE_RECT_X1, HELP_PAGE_RECT_Y1, 92, 1, HELP_PAGE_RECT_EDGE_Y, HELP_PAGE_RECT_EDGE_CRCB);
  296.     FrameBuf_DrawLine(HELP_PAGE_RECT_X1, HELP_PAGE_RECT_Y1 + 30, 92, 1, HELP_PAGE_RECT_EDGE_Y, HELP_PAGE_RECT_EDGE_CRCB);
  297.     FrameBuf_DrawLine(HELP_PAGE_RECT_X1, HELP_PAGE_RECT_Y1, 1, 28, HELP_PAGE_RECT_EDGE_Y, HELP_PAGE_RECT_EDGE_CRCB);
  298.     FrameBuf_DrawLine(HELP_PAGE_RECT_X1, HELP_PAGE_RECT_Y1 + 94, 1, 28, HELP_PAGE_RECT_EDGE_Y, HELP_PAGE_RECT_EDGE_CRCB);
  299. }
  300. void Jpg_Show_Usage()
  301. {
  302. #ifdef DISP_REGION_BOTTOM //feeling add for display region bottom to up when help, 2005-01-19
  303.     if(t_disp)
  304. {
  305.     osd_init();
  306.     DispCookOSD0(1);
  307. }
  308. #endif
  309.     //when enter JPEG state,use ref0 and GRAPH_NTSC memory.
  310.     if((pFsJpeg->gifsState == FS_STATE_JPEG) && (Jpg_Show_Usage_Page==0))
  311.         set_disbuf(0);
  312.     config_memory(MEMORY_GRAPH_NTSC);
  313.     }
  314. if(Jpg_Show_Usage_Flag)
  315. {
  316.     if(Jpg_Show_Usage_Page==0)
  317.     {
  318.         Jpg_Usage_bg();
  319.         
  320.         strcpy(s,"JPG FUNC KEY USAGE");
  321.             CenteredXStart = XStartLeft2Centered(720 ,16);
  322.     FSGUI_ShowString(CenteredXStart,108,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  323.     
  324.     FSGUI_ShowString(HELP_KEY_LEFT_X - 16*5,HELP_KEY_Y,"STOP:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  325.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y,"RETURN TO MENU",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  326.     FSGUI_ShowString(HELP_KEY_LEFT_X - 16*5,HELP_KEY_Y + 40,"NEXT:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  327.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y +40,"NEXT PICTURE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  328.     FSGUI_ShowString(HELP_KEY_LEFT_X - 16*5,HELP_KEY_Y + 80,"PREV:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  329.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 80,"PREVIOUS PICTURE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  330.     FSGUI_ShowString(HELP_KEY_LEFT_X - 16*5,HELP_KEY_Y + 120,"PLAY:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  331.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 120,"PLAY SEQUENTIALLY",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  332.         strcpy(s,"1/5");
  333.             CenteredXStart = XStartLeft2Centered(94 ,16);
  334.     FSGUI_ShowString(HELP_PAGE_RECT_X1 + CenteredXStart,HELP_PAGE_RECT_Y1 + 2,s,HELP_PAGE_FONT_Y, HELP_PAGE_FONT_CRCB);
  335. }
  336. else if(Jpg_Show_Usage_Page==1)
  337. {
  338.             Jpg_Usage_bg();
  339.             
  340.         strcpy(s,"JPG FUNC KEY USAGE");
  341.             CenteredXStart = XStartLeft2Centered(720 ,16);
  342.     FSGUI_ShowString(CenteredXStart,108,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  343.     
  344.     FSGUI_ShowString(HELP_KEY_LEFT_X - 3*16,HELP_KEY_Y,"UP:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  345.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y,"INVERT",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  346.     FSGUI_ShowString(HELP_KEY_LEFT_X - 5*16,HELP_KEY_Y + 40,"DOWN:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  347.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 40,"MIRROR",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  348.     FSGUI_ShowString(HELP_KEY_LEFT_X - 4*16,HELP_KEY_Y + 80,"F-F:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  349.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 80,"ANTI-CLOCKWISE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  350.     FSGUI_ShowString(HELP_KEY_LEFT_X - 4*16,HELP_KEY_Y + 120,"F-B:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  351.     FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 120,"CLOCKWISE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  352.     FSGUI_ShowString(HELP_KEY_LEFT_X - 5*16,HELP_KEY_Y + 160,"ZOOM:",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  353.         FSGUI_ShowString(HELP_KEY_RIGHT_X,HELP_KEY_Y + 160,"CHANGE ZOOM STATE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  354.         
  355.         strcpy(s,"2/5");
  356.             CenteredXStart = XStartLeft2Centered(94 ,16);
  357.     FSGUI_ShowString(HELP_PAGE_RECT_X1 + CenteredXStart,HELP_PAGE_RECT_Y1 + 2,s,HELP_PAGE_FONT_Y, HELP_PAGE_FONT_CRCB);
  358. }
  359. else if(Jpg_Show_Usage_Page==2)
  360. {
  361.             Jpg_Usage_bg();
  362.         strcpy(s,"JPG FUNC USAGE");
  363.             CenteredXStart = XStartLeft2Centered(720 ,16);
  364.     FSGUI_ShowString(CenteredXStart,88,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  365.         strcpy(s,"PROGRAM :PICTURE PLAY MODE");
  366.             CenteredXStart = XStartLeft2Centered(720 ,16);
  367.     FSGUI_ShowString(CenteredXStart,128,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  368.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y,"01.LEFT TOP > RIGHT BOTTOM",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  369.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 40,"02.RIGHT TOP > LEFT BOTTOM",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  370.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 80,"03.LEFT BUTTOM > RIGHT TOP",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  371.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 120,"04.UP > DOWN",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  372.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 160,"05.LEFT > RIGHT",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  373.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 200,"06.EDGE > CENTER",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  374.         strcpy(s,"3/5");
  375.             CenteredXStart = XStartLeft2Centered(94 ,16);
  376.     FSGUI_ShowString(HELP_PAGE_RECT_X1 + CenteredXStart,HELP_PAGE_RECT_Y1 + 2,s,HELP_PAGE_FONT_Y, HELP_PAGE_FONT_CRCB);
  377. }
  378.     else if(Jpg_Show_Usage_Page==3)
  379.     {
  380.             Jpg_Usage_bg();
  381.         strcpy(s,"JPG FUNC USAGE");
  382.             CenteredXStart = XStartLeft2Centered(720 ,16);
  383.     FSGUI_ShowString(CenteredXStart,88,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  384.         strcpy(s,"PROGRAM :PICTURE PLAY MODE");
  385.             CenteredXStart = XStartLeft2Centered(720 ,16);
  386.     FSGUI_ShowString(CenteredXStart,128,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  387.             
  388.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y,"07.EXPAND VERTICALLY OUTWARDS",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  389.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 40,"08.EXPAND HORIZONTALLY OUTWARDS",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  390.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 80,"09.SHUTTER_H",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  391.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 120,"10.SHUTTER_V",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  392.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 160,"11.RANDOM",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  393.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 200,"12.NONE",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  394.         strcpy(s,"4/5");
  395.             CenteredXStart = XStartLeft2Centered(94 ,16);
  396.     FSGUI_ShowString(HELP_PAGE_RECT_X1 + CenteredXStart,HELP_PAGE_RECT_Y1 + 2,s,HELP_PAGE_FONT_Y, HELP_PAGE_FONT_CRCB);
  397.     }
  398.     else if(Jpg_Show_Usage_Page==4)
  399.     {
  400.             Jpg_Usage_bg();
  401.             
  402.         strcpy(s,"JPG FUNC USAGE");
  403.             CenteredXStart = XStartLeft2Centered(720 ,16);
  404.     FSGUI_ShowString(CenteredXStart,88,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  405.         strcpy(s,"PROGRAM :PICTURE PLAY MODE");
  406.             CenteredXStart = XStartLeft2Centered(720 ,16);
  407.     FSGUI_ShowString(CenteredXStart,128,s,HELP_TITLE_FONT_Y, HELP_TITLE_FONT_CRCB);
  408.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y ,"13.RIGHT BUTTOM > LEFT TOP",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  409.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 40,"14.PULL VERTICALLY OUTWARDS",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  410.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 80,"15.DOWN > UP",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  411.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 120,"16.UP > DOWN",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  412.     FSGUI_ShowString(HELP_PROGRAM_X,HELP_PROGRAM_Y + 160,"17.RIGHT > LEFT",HELP_FILE_FONT_Y, HELP_FILE_FONT_CRCB);
  413.         strcpy(s,"5/5");
  414.             CenteredXStart = XStartLeft2Centered(94 ,16);
  415.     FSGUI_ShowString(HELP_PAGE_RECT_X1 + CenteredXStart,HELP_PAGE_RECT_Y1 + 2,s,HELP_PAGE_FONT_Y, HELP_PAGE_FONT_CRCB);
  416.     }
  417.     }   
  418. }
  419. #endif
  420. #endif//#ifdef JPG_EFFECT