rtc.avd_SDK-C++  3.2.0
capture.h
浏览该文件的文档.
1 #ifndef RT_Capture_H_
2 #define RT_Capture_H_
3 
4 #include "common.h"
5 
6 namespace rtc {
7 
8  class IVideoRender;
10  public:
11  static bool EnumerateCammeras(CamerasType& cameras);
12  static IVideoCapture* Create(const Camera& cam);
13  static void Destroy(IVideoCapture* capture);
14  static std::string GetVideoDeviceRealId(const DeviceId& id);
15  virtual Result Start() = 0;
16  virtual void Stop() = 0;
17 
18  virtual Result SetResolution(int fps, int width, int height) = 0;
19  virtual void AttachRender(IVideoRender* render) = 0;
20  virtual void DetachRender(IVideoRender* render) = 0;
21 
22  virtual const Camera& GetDevice() = 0;
23 
24  protected:
25  virtual ~IVideoCapture() {}
26  };
27 } // namespace rtc
28 #endif//RT_Capture_H_
视频渲染接口类
Definition: videorender.h:90
Definition: annotationobject.h:71
virtual ~IVideoCapture()
Definition: capture.h:25
视频摄像头信息结构.
Definition: common.h:328
std::vector< Camera > CamerasType
视频摄像头集合类型.
Definition: common.h:336
int Result
返回值类型
Definition: combase.h:13
String DeviceId
设备号类型,唯一标识房间内一个设备,长度不大于Max_DeviceId定义;定义如下:userId+"_"+md5[os.getdeviceid() or os.getsystemid()]
Definition: common.h:12
#define RT_API_EXPORT
Definition: defines.h:216
Definition: capture.h:9