videofiledshow.h
来自「VideoMan (Video Manager) is an open-sour」· C头文件 代码 · 共 43 行
H
43 行
#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 + =
减小字号Ctrl + -
显示快捷键?