📄 capturedevicedshow.h
字号:
#pragma once
#include "camerainput.h"
#include "VideoManInputFormat.h"
#include "VideoInputDShow.h"
#include <vector>
class CaptureDeviceDShow :
public CameraInput, VideoInputDShow
{
public:
CaptureDeviceDShow(void);
virtual ~CaptureDeviceDShow(void);
bool initCamera( const std::string &friendlyName, const std::string &devicePath, VideoManInputFormat *aFormat );
inline char *getFrame( bool wait = false);
inline void releaseFrame();
void showPropertyPage();
void play();
void pause();
void stop();
static void getAvailableDevices( std::vector<inputIdentification> &deviceList );
private:
HRESULT prepareMedia( std::string &friendlyName, std::string &devicePath, VideoManInputFormat *aFormat );
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -