stepbackward,stepforward,steponward和stepdownward分别什么意思

龚婷婷 2019-11-05 21:51:00

推荐回答

CDigitalvideo::CDigitalvideo{//初始化成员变量m_Open=m_Pause=m_Playing=FALSE;m_DeviceID=0;}CDigitalvideo::~CDigitalvideo{Close;}BOOLCDigitalvideo::GetPause//是否暂停{returnm_Pause;}BOOLCDigitalvideo::OpenCStringFilename,CWnd*pWnd,intleft,inttop,intwidth,intheight{if!m_Open{//如果m_Open=false,没有打开设备//初始化成员变量m_Open=m_Pause=m_Playing=FALSE;m_DeviceID=0;//文件是否存在CFileStatusStatus;if!CFile::GetStatusFilename,StatusreturnFALSE;//打开设备MCI_DGV_OPEN_PARMSMCIOpen;MCIOpen.lpstrDeviceType="avivideo";//设置播放设备为视频播放设备MCIOpen.lpstrElementName=LPSTRFilename.GetBuffer0;//文件名MCIOpen.wDeviceID=NULL;MCIOpen.hWndParent=pWnd->m_hWnd;//可播放视频文件窗口指针MCIOpen.dwStyle=WS_CHILD|WS_VISIBLE;ifmciSendCommandNULL,MCI_OPEN,MCI_WAIT|MCI_OPEN_TYPE|MCI_OPEN_ELEMENT|MCI_DGV_OPEN_PARENT|MCI_DGV_OPEN_WS,DWORDLPVOID&MCIOpenreturnFALSE;m_DeviceID=MCIOpen.wDeviceID;m_Open=TRUE;//将文件长度设置为帧MCI_DGV_SET_PARMSMCISet;MCISet.dwTimeFormat=MCI_FORMAT_FRAMES;ifmciSendCommandm_DeviceID,MCI_SET,MCI_SET_TIME_FORMAT,DWORDLPVOID&MCISet{Close;returnFALSE;}//找到视频文件的开始位置mciSendCommandm_DeviceID,MCI_SEEK,MCI_SEEK_TO_START,NULL;//将播放画面置于主窗口之中MCI_DGV_PUT_PARMSMCIPut;MCIPut.rc.left=left;MCIPut.rc.top=top;MCIPut.rc.right=width;MCIPut.rc.bottom=height;ifmciSendCommandm_DeviceID,MCI_PUT,MCI_WAIT|MCI_DGV_PUT_CLIENT|MCI_DGV_PUT_WINDOW|MCI_DGV_RECT,DWORDLPVOID&MCIPut{Close;returnFALSE;}}returnTRUE;}voidCDigitalvideo::Closevoid{ifm_Open{//停止播放并关闭设备ifm_Playing||m_PausemciSendCommandm_DeviceID,MCI_STOP,NULL,NULL;mciSendCommandm_DeviceID,MCI_CLOSE,NULL,NULL;//清空成员变量m_Open=m_Pause=m_Playing=FALSE;m_DeviceID=NULL;}}//获得视频文件窗口的宽度intCDigitalvideo::GetWidthvoid{ifm_Open{MCI_DGV_WHERE_PARMSMCIWhere;ifmciSendCommandm_DeviceID,MCI_WHERE,MCI_DGV_WHERE_SOURCE,DWORDLPVOID&MCIWhere{return0;}returnintMCIWhere.rc.right;}return0;}//获得视频文件窗口的高度intCDigitalvideo::GetHeightvoid{ifm_Open{MCI_DGV_WHERE_PARMSMCIWhere;ifmciSendCommandm_DeviceID,MCI_WHERE,MCI_DGV_WHERE_SOURCE,DWORDLPVOID&MCIWhere{return0;}returnintMCIWhere.rc.bottom;}return0;}BOOLCDigitalvideo::PlayBOOLbLoop,BOOLbFullScreen{ifm_Open{//如果是视频的尾部则重新开始播放ifGetFrame>=GetFramesmciSendCommandm_DeviceID,MCI_SEEK,MCI_SEEK_TO_START,NULL;//播放MCI_DGV_PLAY_PARMSMCIPlay;MCIPlay.dwCallback=NULL;MCIPlay.dwFrom=GetFrame;DWORDdwFlags=MCI_FROM;ifbLoopdwFlags|=MCI_DGV_PLAY_REPEAT;ifbFullScreendwFlags|=MCI_MCIAVI_PLAY_FULLSCREEN;ifmciSendCommandm_DeviceID,MCI_PLAY,dwFlags,DWORDLPVOID&MCIPlayreturnFALSE;m_Pause=FALSE;m_Playing=TRUE;returnTRUE;}returnFALSE;}voidCDigitalvideo::Stopvoid{ifm_Open&&m_Playing{mciSendCommandm_DeviceID,MCI_STOP,NULL,NULL;mciSendCommandm_DeviceID,MCI_SEEK,MCI_SEEK_TO_START,NULL;m_Playing=FALSE;m_Pause=TRUE;}}voidCDigitalvideo::Pausevoid{ifm_Open{MCI_DGV_PAUSE_PARMSMCIPause;ifmciSendCommandm_DeviceID,MCI_PAUSE,0,DWORDLPVOID&MCIPausereturn;m_Pause=TRUE;}}intCDigitalvideo::GetFramesvoid{ifm_Open{MCI_DGV_STATUS_PARMSMCIStatus;MCIStatus.dwItem=MCI_STATUS_LENGTH;ifmciSendCommandm_DeviceID,MCI_STATUS,MCI_WAIT|MCI_STATUS_ITEM,DWORDLPVOID&MCIStatusreturn0;returnintMCIStatus.dwReturn;}return0;}intCDigitalvideo::GetFramevoid{ifm_Open{MCI_DGV_STATUS_PARMSMCIStatus;MCIStatus.dwItem=MCI_STATUS_POSITION;ifmciSendCommandm_DeviceID,MCI_STATUS,MCI_WAIT|MCI_STATUS_ITEM,DWORDLPVOID&MCIStatusreturn-1;returnintMCIStatus.dwReturn;}return-1;}BOOLCDigitalvideo::IsPlaying{ifm_Open{MCI_DGV_STATUS_PARMSMCIStatus;MCIStatus.dwItem=MCI_STATUS_MODE;ifmciSendCommandm_DeviceID,MCI_STATUS,MCI_WAIT|MCI_STATUS_ITEM,DWORDLPVOID&MCIStatusreturnFALSE;ifMCIStatus.dwReturn==MCI_MODE_PLAY{m_Playing=TRUE;m_Pause=FALSE;returnTRUE;}elseifMCIStatus.dwReturn==MCI_MODE_PAUSE{m_Playing=TRUE;m_Pause=FALSE;returnTRUE;}else{m_Playing=FALSE;m_Pause=FALSE;returnFALSE;}}returnFALSE;}BOOLCDigitalvideo::SeekTointnFrame{ifm_Open{MCI_SEEK_PARMSMCISeek;MCISeek.dwTo=nFrame;ifm_Playing&&!m_PausemciSendCommandm_DeviceID,MCI_PAUSE,0,NULL;ifmciSendCommandm_DeviceID,MCI_SEEK,MCI_TO|MCI_WAIT,DWORDLPVOID&MCISeekreturnFALSE;ifm_Playing&&!m_PausePlay;returnTRUE;}returnFALSE;}voidCDigitalvideo::ForwardintnFrames{ifm_Open{ifm_Playing&&!m_PausePause;MCI_DGV_STEP_PARMSMCIStep;MCIStep.dwFrames=nFrames;mciSendCommandm_DeviceID,MCI_STEP,MCI_DGV_STEP_FRAMES,DWORDLPVOID&MCIStep;}}voidCDigitalvideo::BackwardintnFrames{ifm_Open{ifm_Playing&&!m_PausePause;MCI_DGV_STEP_PARMSMCIStep;MCIStep.dwFrames=nFrames;mciSendCommandm_DeviceID,MCI_STEP,MCI_DGV_STEP_REVERSE|MCI_DGV_STEP_FRAMES,DWORDLPVOID&MCIStep;}}intCDigitalvideo::GetSpeedvoid{ifm_Open{MCI_DGV_STATUS_PARMSMCIStatus;MCIStatus.dwItem=MCI_DGV_STATUS_SPEED;ifmciSendCommandm_DeviceID,MCI_STATUS,MCI_WAIT|MCI_STATUS_ITEM,DWORDLPVOID&MCIStatusreturn-1;returnintMCIStatus.dwReturn;}return-1;}voidCDigitalvideo::SetSpeedintnSpeed{ifm_Open{MCI_DGV_SET_PARMSMCISet;MCISet.dwSpeed=nSpeed;mciSendCommandm_DeviceID,MCI_SET,MCI_WAIT|MCI_DGV_SET_SPEED,DWORDLPVOID&MCISet;}}/*voidCDigitalvideo::SetSoundBOOLbSound{ifm_Open{MCI_DGV_SET_PARMSMCISet;MCISet.dwAudio=MCI_SET_AUDIO_ALL;DWORDdwFlags=MCI_SET_AUDIO;ifbSounddwFlags|=MCI_SET_ON;elsedwFlags|=MCI_SET_OFF;mciSendCommandm_DeviceID,MCI_SET,dwFlags,DWORDLPVOID&MCISet;}}BOOLCDigitalvideo::GetSoundvoid{ifm_Open{MCI_DGV_STATUS_PARMSMCIStatus;MCIStatus.dwItem=MCI_DGV_STATUS_AUDIO;ifmciSendCommandm_DeviceID,MCI_STATUS,MCI_WAIT|MCI_STATUS_ITEM,DWORDLPVOID&MCIStatusreturnFALSE;ifMCIStatus.dwReturn==MCI_ONreturnTRUE;elsereturnFALSE;}returnFALSE;}*。
齐文瑞2019-11-09 16:46:05

提示您:回答为网友贡献,仅供参考。

其他回答

  • DVD拆机改全区zt1.AIWA华DVD机AiwaDV-370型DVD机DVD机碟片取,关机,再重新机按PAUSE/SETP键,输入3、1、4、5、9DVD机屏现CODE字再输入所需要区码0=全区1=1区依类推再按PAUSE/STEP键关机再机即2.AKAI雅佳DVD机AKAIDV-P100全文。
    连传宝2019-11-05 23:03:17
  • 一般光盘是只读的,无法更改。更不用说遥控了...全文。
    齐晓勇2019-11-05 22:37:43
  • Weisyearning,becauseourancestorsareallChinese;Westopwatching,becausehuaxiafivethousandyearshadbrilliance;Wesighstray,because100-year-oldgloomy.Oftenthink全文。
    连亚欣2019-11-05 22:20:53
  • Weminddream,becauseourancestriesareburningyellow;Wehaltenoughtohesitate,becausethebrilliancyoncehadforChina5,000years;WesightoresembleHuang,becauseahund全文。
    龙家铸2019-11-05 22:07:02

相关问答