摄像头捕获添加获取类型接口

master
a7458969 2020-05-21 23:12:35 +08:00
parent 69051e716e
commit baa4a42520
3 changed files with 3 additions and 2 deletions

View File

@ -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<<" "<<

View File

@ -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);

View File

@ -1,6 +1,5 @@
#pragma once
#include <string>
using namespace std;
class Debuger