📄 nmnvlib.c
字号:
#include <comsub.h>
#include <ui.h>
#include <ui_sub.h>
#include <nv.h>
#include <panel.h>
//#include "normal.h"
#include "nmnvlib.h"
/*****************************************************************************
Function : NextPrevWorkProc
Description : let user-input next prev work
Arguments : None
Return value : None
*****************************************************************************/
BOOL NextPrevWorkProc(int iInVal)/* ??? for ChkIsPlay */
{
BOOL BFlag;
PLAYPOINT CrnPoint;
extern BOOL bIsKaraDVD;
if (iInVal == 0)
{
NextPrevStatus = 0;
return TRUE;// just ok, but do nothing; tom gao
}
switch (ChkNXPRE(iInVal,&CrnPoint)) //ChkNXPRE(A,&B): A must not 0; tom gao
{
case NXPRE_NORMAL:
//bUserStopOpr = C_STOP_SKIPPG;
AP2PEOprParam.JPGRotateAngle=0;
BFlag = NVSkipPG(iInVal);
if(g_UiCoreState != UI_CORE_PLAY&&BFlag)
{/* if core state is pause, when next, transfer to PLAY */
if( DiscType==C_DVD && (g_UiCoreState == UI_CORE_PAUSE))
;//do nothing
else
NVPlayModeChg(C_NV_Play,0/*NO USE FOR PLAY*/);
g_UiCoreState = UI_CORE_PLAY;
SendVFDPart1Show();
bActionCtl = 0;// add by sidney for hanyang1122
}
RotationCount=0;
RotationState=0;
//cliff 30528-01cf fix bug:play PictureCD ,after next or prev can not rotate
JpgUserRotateState = 360;
JpgRotateStateNow = 360;
//end cliff 30528-01cf fix bug:play PictureCD ,after next or prev can not rotate
break;
case NXPRE_OK:
//bUserStopOpr = C_STOP_SKIPPG;
AP2PEOprParam.JPGRotateAngle=0;
if(DiscType == C_DVD && bIsKaraDVD)
CmdVOBUMsg(C_NV_Stop, 1);
BFlag = NVPTTPlay(&CrnPoint, C_STOP_SKIPPG,KEY_NULL);
//for lg bug2916:repeatall,pbc off,end next to head,playmode change to normal play
if(((DiscType==C_VCD20||DiscType==C_SVCD)&&(g_UiPBCState==C_OFF))||(DiscType==C_VCD10))
{
if(BFlag && g_UiCoreState!=UI_CORE_PLAY)
{
NVPlayModeChg(C_NV_Play,0);
g_UiCoreState=UI_CORE_PLAY;
bActionCtl=0;
SendVFDPart1Show();
}
}
RotationState=0;
//cliff 30528-01cf fix bug:play PictureCD ,after next or prev can not rotate
JpgUserRotateState = 360;
JpgRotateStateNow = 360;
//end cliff 30528-01cf fix bug:play PictureCD ,after next or prev can not rotate
//<<30311Wo for revslow&revstep
if((g_UiCoreState == UI_CORE_PAUSE)||(g_UiCoreState == UI_CORE_STEP || g_UiCoreState == UI_CORE_REVSTEP))
// if((g_UiCoreState == UI_CORE_PAUSE)||(g_UiCoreState == UI_CORE_STEP))
//>>
{/* if core state is pause, when next, transfer to PLAY */
g_UiCoreState = UI_CORE_PLAY;
// CmdFPTypeOp(C_KEY, C_KEY_PLAY);
//change by gamble
SendVFDPart1Show();
}
break;
case NXPRE_NONExist:
BFlag = FALSE;/*ShowMsg2TopBlk(MSG_INVALID,MSG_NULL);*/
break;
case NXPRE_NONE:
BFlag = TRUE;
break;
}
return BFlag;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -