摄像头捕获添加获取类型接口
parent
69051e716e
commit
baa4a42520
|
@ -307,6 +307,7 @@ bool Camera::Open(std::wstring &camera_name)
|
|||
mVideoWidth = vih->bmiHeader.biWidth;
|
||||
mVideoHeight = vih->bmiHeader.biHeight;
|
||||
mPixFmt = mediaType.subtype;
|
||||
mMediaType = mediaType.subtype;
|
||||
std::cout<<"guid media type is"<<mediaType.subtype.Data1<<" "<<
|
||||
mediaType.subtype.Data2<<" "<<
|
||||
mediaType.subtype.Data3<<" "<<
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "qedit.h"
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
#include "guiddef.h"
|
||||
using namespace std;
|
||||
|
||||
class Camera
|
||||
|
@ -60,6 +60,7 @@ private:
|
|||
SampleGrabberCallback mSampleGrabberCB;
|
||||
HRESULT InitializeEnv();
|
||||
HRESULT BindFilter(int deviceID, IBaseFilter **pBaseFilter);
|
||||
GUID mMediaType;
|
||||
public:
|
||||
int SetObserver(CameraObserver *);
|
||||
int RemoveObserver(CameraObserver *p);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Debuger
|
||||
|
|
Loading…
Reference in New Issue