fs_message_show.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:7k
- /****************************************************
- linrc move FS(MP4/ID3...) OSD Display Message Here
- Move From:fs_nav_other.c/fs_nav_id3.c/fs_nav_mp3.c..
- *****************************************************/
- #include "global.h"
- #include "func.h"
- #include "file_if.h"
- #include "osd.h"
- #include "fsNAV.h"
- #include "fs_show.h"
- #ifdef SUPPORT_MP4
- /***********************************************************
- Functon:ShowMP4Message()
- Input: Diplay message type:1:MP4 initializing message...
- 2:MP4 A/V Unsupport message...
- 3:Mp4 format unsupport message...
- Output: viod...
- Description: It move from fs_nav_other
- Creat time:2004-11-6 10:46 linrc creat...
- ************************************************************/
- void ShowMP4Message(UINT8 message)
- {
- switch(message)
- {
- case MP4_INI:
- #ifdef SHOW_MP4_INIT_STR //wangwei-2004/4/28
- {
- PrintOsdMsg(STR_OS_MP4_INIT, REGION1, 0, 0); //mode 0: clear pre string
- }
- #else
- {
- psprintf(RegionValStr[REGION1], "INITIALIZING...");
- PrintOsdMsg(STR_OS_SPACE, REGION1, 0, 1);
- }
- #endif
- break;
-
- case UNSUPPORT_MESSAGE:
- if( FILE_UNSUPPORT_AUDIO() )
- {
- osdshow( REGION1, "UNSUPPORT AUDIO" );
- timeout_osd[ REGION1 ] = 1 * OSD_TIMEOUT;
- }
- else if( FILE_UNSUPPORT_VIDEO() )
- {
- osdshow( REGION1, "UNSUPPORT VIDEO" );
- timeout_osd[ REGION1 ] = 1 * OSD_TIMEOUT;
- }
- else
- {
- PrintOsdMsg(STR_OS_SPACE, REGION1, 1, 0); //fengjl edit 2004-05-01 17:24
- }
- break;
-
- case UNSUPPORT_FORMAT:
- if ( FILE_UNSUPPORT_AUDIO() && FILE_UNSUPPORT_VIDEO() )
- osdshow( REGION1, "UNSUPPORT FORMAT" );
- else
- osdshow( REGION1, "FILE ERROR" );
- timeout_osd[ REGION1 ] = 2 * OSD_TIMEOUT; // 2004/09/29 yltseng
- break;
-
- default : break;
- }
- }
- #endif //end SUPPORT_MP4
- /***************************************************************
- Function:DrawID3_GUI()
- Input: void
- Output: void
- Description: It move from fs_nav_mp3.c,in order to Draw ID3 GUI
- some content...
- creat time: 2004-11-6 11:29 linrc creat...
- ***************************************************************/
- #if defined(SUPPORT_ID3)||defined(SUPPORT_OSDID3)
- extern BYTE GetCurrentFileType();
- extern void FSGUI_FillFrameBuf();
- extern void osd_ClearOneRegion();
- extern void OSD_ShowString();
- extern void FSGUI_ShowString();
- extern ID3_TAG *pId3;
- extern LYR *lyr;// = (LYR *)ID3_MEM_START;
- #ifdef SUPPORT_OSDID3//liweihua and zhaoyanhua add 2004-1-9 18:12
- void show_id3(void)
- {
- if(full_scrn& SOUND)
- return;
-
- osd_ClearOneRegion(REGION3,0);
- if(lyr->id3_exist)
- {
- #ifdef SUPPORT_CHINESE_FONT
- #if defined( USE_BIG5_FONT ) || defined( USE_BIG5_COMMON_FONT )
- OSD_ShowString(5, 20, "簈Ρ: ", 2,3);
- OSD_ShowString(5, 50, "簈も: ", 2,3);
- #elif defined(USE_GB2312_FONT)
- OSD_ShowString(5, 20, "歌曲:", 2,3);
- OSD_ShowString(5, 50, "演唱:", 2,3);
- #endif
- OSD_ShowString(48, 20, lyr->song, 2,3);
- OSD_ShowString(48, 50, lyr->artist, 2,3);
- #else
- OSD_ShowString(5, 20, "SONG:", 2,3);
- OSD_ShowString(5, 50, "ARTIST:", 2,3);
- OSD_ShowString(54, 20, lyr->song, 2,3);
- OSD_ShowString(68, 50, lyr->artist, 2,3);
- #endif
- }
- #ifdef SUPPORT_OSDID3
- else//ID3 not exit , toggle off region3
- {
- printf("$$$$$$$$$$$Enter region3 toggle $$$$$$$$$$$n");
- osd_tog_region(REGION3, OSD_OFF);
- }
- #endif//SUPPORT_OSDID3
- }
- #endif
- void DrawID3_GUI(void)
- {
- #if !defined(SUPPORT_OSDID3)&&!defined(NO_LIRIC_ID3) //2004-5-5 02:33張宇P
- FSGUI_FillFrameBuf(36, 8, 316, 50, BK_GROUNDY, BK_GROUNDCRCB);
- #endif
-
- //#ifdef SUPPORT_MIX_MP3_CDDA //linrc change "SUPPORT_MIX_MP3_CDDA" to "SUPPORT_MIX_DATA_CDDA_DISC"
- #ifdef SUPPORT_MIX_DATA_CDDA_DISC //because we not only support this type mix mode disc 2004-12-15 15:53
- if (GetCurrentFileType() != CDDA)
- #endif
- {
- #ifdef NO_LIRIC_ID3 //2004-5-5 12:44張宇P
- FSGUI_FillFrameBuf(36, 240,320,40, BK_GROUNDY, BK_GROUNDCRCB);
- #endif
-
- #ifdef SUPPORT_OSDID3//liweihua add 20040107
- show_id3();
- #elif defined(SUPPORT_ID3)
- if (lyr->id3_exist)
- {
- #ifdef SUPPORT_CHINESE_FONT
-
- #if defined( USE_BIG5_FONT ) || defined( USE_BIG5_COMMON_FONT )
- FSGUI_ShowString(36, 8, "簈Ρ : ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36, 24, "簈も : ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- #else // GB font//#ifdef USE_BIG5_FONT
- FSGUI_ShowString(36, 8, "歌曲 : ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36, 24, "歌手 : ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- #endif//#ifdef USE_BIG5_FONT
-
- FSGUI_ShowString(36 + 56, 8, lyr->song, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36 + 56, 24, lyr->artist, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
-
- #else//#ifdef SUPPORT_CHINESE_FONT
-
- #ifdef NO_LIRIC_ID3 //2004-4-22 03:42张宇P
- //FSGUI_FillFrameBuf(96, 244, 250, 50, BK_GROUNDY, BK_GROUNDCRCB);
- FSGUI_ShowString(36, 240, "SONG: ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36 + 64, 240, lyr->song, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36, 260, "ARTIST: ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36 + 64, 260, lyr->artist, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- #else
- FSGUI_ShowString(36, 8+10, "SONG: ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36 + 64, 8+10, lyr->song, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36, 24+10, "ARTIST: ", FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- FSGUI_ShowString(36 + 64, 24+10, lyr->artist, FS_FONTCOLOR_FILE_Y, FS_FONTCOLOR_FILE_CrCb);
- #endif
-
- #endif//#ifdef SUPPORT_CHINESE_FONT
- }
- #endif//#ifdef SUPPORT_OSDID3//liweihua add 20040107
- }
- }
- #endif //end defined(SUPPORT_ID3)||defined(SUPPORT_OSDID3)