📄 mmp_show.c
字号:
VOID MmpShowAlbum(BYTE2 select, BYTE1 draw_history)
{
//gaoping 20060405
//gpstMmp_ctrl->estSetup_state_prev.dsp_prev=DISPLAY_IMAGE_ALBUM;
OSD_DrawAlbum(select, draw_history, SYS_WAIT); /* Draw Album OSD */
}
/******************************************************************************
* Function name : MmpShowUpdateAlbumSelect
* Arguments :
* IN
* BYTE2 select
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowUpdateAlbumSelect(BYTE2 select)
{
BYTE2 prev_select = GetMmpAlbumSelect();
OsdCtrl_st ctrl;
ctrl.p.sub.value1 = prev_select;
ctrl.p.sub.value2 = select;
OSD_ChangeExplore(OSD_CTRL_UPDATE_ALBUM_SEL,&ctrl, SYS_WAIT);
SetVfdJpegNumber(select+1);
}
#if _APP_CAP_OSD_SHOW_CURRENT_ITEM_NUM //By QQ 050720
/******************************************************************************
* Function name : MmpUpdateImgInfoNumDisp
* Arguments :
* IN
* BYTE2 select
* OUT
* I/O
* Return :
* VOID
* By : Qian qiang
* Description :
* Revision :
******************************************************************************
*/
VOID MmpUpdateImgInfoNumDisp(UINT cur_num,UINT total_num)
{
OsdCtrl_st ctrl;
ctrl.p.sub.value1 = cur_num;
ctrl.p.sub.value2 = total_num;
OSD_ChangeExplore(OSD_CTRL_UPDATE_IMG_FILE_INFO, &ctrl, SYS_WAIT);
SetVfdJpegNumber(cur_num);
}
#endif /*_APP_CAP_OSD_SHOW_CURRENT_ITEM_NUM*/
/******************************************************************************
* Function name : MmpShowSetupInfoToVfd
* Arguments :
* IN
* OUT
*
* INOUT
* Return :
*
* By :
* Description : rainbow.zhang
*
* Revisions :
******************************************************************************/
#if _APP_CAP_PERI_VFD
VOID MmpShowSetupInfoToVfd(VOID)
{
SetupDisplay_t display_info;
#if _APP_CAP_AUD_KARAOKE
SetupKaraoke_t karaoke_info;
#endif
S5H_AdmChnCont_t audio_info;
SetupInfoGetMenuDisplay(&display_info);
SetVfdTvMode(display_info.tv_system);
if(FS_CAP_FILE_PICTURE( gpstMmp_ctrl->eiFile_page_type ))
{
ClrVfdAudio();
SetVfdKaraoke(0);
}
else
{
#if _APP_CAP_AUD_KARAOKE
SetupInfoGetMenuKaraoke(&karaoke_info);
SetVfdKaraoke(karaoke_info.mic_setup);
#endif
audio_info = GetMmpAudioState();
SetVfdAudio(audio_info);
}
SaveFp();
}
#endif /* _APP_CAP_PERI_VFD */
/******************************************************************************
* Function name : MmpShowImageInfo
* Arguments :
* IN
* BOOL show
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowImageInfo(BOOL show)
{
OSD_State_st *osd_state;
osd_state = OSD_GetState();
if(show) /* Draw Image Info OSD */
{
//gaoping 20060405
//gpstMmp_ctrl->estSetup_state_prev.dsp_prev = DISPLAY_IMAGE_INFO;
if(osd_state->etCur_dsp != DISPLAY_IMAGE_INFO)
{
OSD_SetMainDisplay(DISPLAY_IMAGE_INFO, SYS_WAIT);
}
#if _APP_CAP_OSD_SHOW_CURRENT_ITEM_NUM //BY gaoping 20060419 problem 137 playing jpeg, press osd info key twice, the picture play again but no number osd.
#if _APP_CAP_JPG_ASV //SSCR xuhui 061019
if((gASV_SetupMode != ASV_OFF) && Asv_on)
// if (Asv_on)
MmpUpdateImgInfoNumDisp(GetMmpAsvFilecursor()+1,GetMmpAsvFiletotal());
else
#endif
MmpUpdateImgInfoNumDisp(GetMmpFileCursor()+1, GetMmpTotalFiles()); // cydrain 20060415
#endif /*_APP_CAP_OSD_SHOW_CURRENT_ITEM_NUM*/
}
else /* Clear Image Info OSD */
{
//gaoping 20060403
//SH_GfxShowCanvas(SH_CANV1, FALSE);
OSD_SetMainDisplay(DISPLAY_OFF, SYS_WAIT);
//gaoping 20060405
//gpstMmp_ctrl->estSetup_state_prev.dsp_prev=DISPLAY_OFF;
}
// Qian liping 051026: move to MmpGuiExploreEnter().
}
/******************************************************************************
* Function name : MmpShowTrickPlay
* Arguments :
* IN
* BYTE1 play_prameter
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowTrickPlay(BYTE1 play_prameter)
{
char tmp_str[10];
switch(play_prameter)
{
case MMN_PARAM_TRICK_F1:
case MMN_PARAM_TRICK_F2:
case MMN_PARAM_TRICK_F3:
case MMN_PARAM_TRICK_F4:
case MMN_PARAM_TRICK_F5:
case MMN_PARAM_TRICK_F6:
#if _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE
if(GetMmpFileType()==MMP_VIDEO_FILE) //(weilf)20060406
{
MmpShowVideoCursorIcon( ICON_FF);
}
else
#endif
{
sprintf(tmp_str,"%s%d","X", 0x1<<(play_prameter));
MmpShowNoticeString(MMP_NOTICE_FF, tmp_str);
}
break;
case MMN_PARAM_TRICK_R1:
case MMN_PARAM_TRICK_R2:
case MMN_PARAM_TRICK_R3:
case MMN_PARAM_TRICK_R4:
case MMN_PARAM_TRICK_R5:
case MMN_PARAM_TRICK_R6:
#if _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE
if(GetMmpFileType()==MMP_VIDEO_FILE) //(weilf)20060406
{
MmpShowVideoCursorIcon( ICON_FR); //(weilf)20060104
}
else
#endif
{
sprintf(tmp_str,"%s%d","X", 0x1<<(play_prameter-0x10));
MmpShowNoticeString(MMP_NOTICE_FR, tmp_str);
}
break;
case MMN_PARAM_SLOW_F1:
case MMN_PARAM_SLOW_F2:
case MMN_PARAM_SLOW_F3:
case MMN_PARAM_SLOW_F4:
case MMN_PARAM_SLOW_F5:
case MMN_PARAM_SLOW_F6:
#if _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE // cydrain 20060412
if (GetMmpFileType() == MMP_VIDEO_FILE)
{
MmpShowVideoCursorIcon(ICON_SLOW_FOR);
}
#endif
break;
default:
#if _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE
if (GetMmpFileType()== MMP_VIDEO_FILE) // cydrain 20060412
{
MmpShowVideoCursorIcon( ICON_PLAY);
}
else
#endif
{
MmpShowNoticeString(MMP_NOTICE_PLAY, NULL);
}
break;
}
}
#if 0 //no use any more azureming@060817
/******************************************************************************
* Function name : MmpShowCenterWarning
* Arguments :
* IN
* BOOL on_off
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowCenterWarning(BOOL on_off)
{
if(on_off)
{
OSD_SetIconDisplay(ICON_CENTER_WARN, NULL, SYS_NO_WAIT);
}
else
{
SH_GfxShowCanvas(SH_CANV2, FALSE);
}
}
#endif
/******************************************************************************
* Function name :
* Arguments :
* IN
* BYTE2
* OUT
* I/O
* Return :
* VOID
* By : Liu renliang
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowNumSel(BYTE2 num)
{
/* <<< @: 5008CHN-6163.KDY 050630, MMN: Numeric key input more than 99 make system halt */
char tmp_str[15];
/* >>> @: 5008CHN-6163.KDY 050630, MMN: Numeric key input more than 99 make system halt */
if(num != MMP_NO_SELECTION)
{
sprintf(tmp_str,"%s %d",gpSelect[MENU_LANG], num);// Qian liping 060112
MmpShowNoticeString(MMP_NOTICE_NUM, tmp_str);
}
else
MmpShowNoticeString(MMP_NOTICE_PLAY, NULL);
}
/******************************************************************************
* Function name : MmpShowUpdateFileCursor
* Arguments :
* IN
* BYTE2 old_file_index, BYTE2 new_file_index
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowUpdateFileCursor(BYTE2 old_file_index, BYTE2 new_file_index)
{
OsdCtrl_st ctrl;
OSD_State_st* osd_state = OSD_GetState(); // cydrain 20060907
if(osd_state->etExp_state.etInfo1 == EXPLORER_MODE_INFO1SEARCH) // cydrain 20060907
return;
ctrl.p.sub.value1 = old_file_index;
ctrl.p.sub.value2 = new_file_index;
OSD_ChangeExplore(OSD_CTRL_UPDATE_FILE_CURSOR, &ctrl, SYS_WAIT);
}
/******************************************************************************
* Function name : MmpShowExploreInfo2UpdateFilePath
* Arguments :
* IN BYTE2 folder_index, BYTE2 file_index
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowExploreInfo2UpdateFilePath(BYTE2 folder_index, BYTE2 file_index)
{
OsdCtrl_st ctrl;
ctrl.p.sub.value1 = folder_index;
ctrl.p.sub.value2 = file_index;
OSD_ChangeExplore(OSD_CTRL_EXPLORE_UPDATE_FILE_PATH, &ctrl, SYS_WAIT);
}
/******************************************************************************
* Function name : MmpShowExploreInfo1SetModeIcon
* Arguments :
* IN VOID
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowExploreInfo1SetModeIcon(VOID)
{
//OSD_ChangeExplore(OSD_CTRL_UPDATE_MODE_ICON, NULL, SYS_NO_WAIT);
if(GetDisplayMainState()== DISPLAY_EXPLORER) // cydrain 20060425
OSD_ChangeExplore(OSD_CTRL_UPDATE_MODE_ICON, NULL, SYS_NO_WAIT);
if(GetDisplayMainState()==DISPLAY_INFO && GetDisplayInfoState()== INFO_FIRST)
OSD_ChangeDisplay(OSD_CTRL_UPDATE_INFO, NULL, SYS_NO_WAIT);
}
/******************************************************************************
* Function name : MmpShowExploreInfo2
* Arguments :
* IN OSD_MainType_et info2_type
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowExploreInfo2(OsdControl_et info2_type)
{
OSD_ChangeExplore(info2_type, NULL, SYS_WAIT);
}
/******************************************************************************
* Function name : MmpShowExploreInfo1SetRepeatIcon
* Arguments :
* IN VOID
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowExploreInfo1SetRepeatIcon(VOID)
{
if(GetDisplayMainState()== DISPLAY_EXPLORER) // cydrain 20060425
OSD_ChangeExplore(OSD_CTRL_UPDATE_REPEAT_ICON, NULL, SYS_NO_WAIT);
if(GetDisplayMainState()==DISPLAY_INFO && GetDisplayInfoState()== INFO_FIRST)
OSD_ChangeDisplay(OSD_CTRL_UPDATE_INFO, NULL, SYS_NO_WAIT);
}
/******************************************************************************
* Function name : MmpShowCursorMsgOn
* Arguments :
* IN IconState_et icon
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowCursorMsgOn(IconState_et icon)
{
OSD_SetIconDisplay(icon, NULL, SYS_NO_WAIT);
}
/******************************************************************************
* Function name : MmpShowUpdateFolderInfo
* Arguments :
* IN BYTE2 folder_num, BYTE2 folder_total
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
******************************************************************************
*/
VOID MmpShowUpdateFolderInfo(BYTE2 folder_num, BYTE2 folder_total)
{
OsdCtrl_st ctrl;
ctrl.p.sub.value1 = folder_num; //azureming@060405
ctrl.p.sub.value2 = folder_total;
OSD_ChangeExplore(OSD_CTRL_UPDATE_FOLDER_NUM, &ctrl, SYS_WAIT);
}
/******************************************************************************
* Function name : MmpShowUpdateFileInfo
* Arguments :
* IN BYTE2 file_num, BYTE2 file_total
*
* OUT
* I/O
* Return :
* VOID
* By : Kim Do Yeon
* Description :
* Revision :
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -