📄 videofiledshow.h
字号:
#pragma once
#include "VideoFileInput.h"
#include "VideoManInputFormat.h"
#include "VideoInputDShow.h"
class VideoFileDShow :
public VideoFileInput, VideoInputDShow
{
public:
VideoFileDShow(void);
virtual ~VideoFileDShow(void);
/** \brief Add a video input from a video file
\if aFormat==NULL -->> RGB24
\param name [in] the name of the video file
\param format [in/out] The preferred format of the video input, the resolution and fps will be taken from the video file
\return false if something fails
*/
bool loadVideoFile( std::string name, VideoManInputFormat *aFormat = NULL );
inline char *getFrame( bool wait = false);
inline void releaseFrame();
void play();
void pause();
void stop();
double getLength();
void goToFrame( int frame );
void goToMilisecond( double milisecond );
double getPosition();
private:
HRESULT prepareMedia( const std::string &name, VideoManInputFormat *aFormat );
bool paused;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -