ZOOM Windows SDK  5.2.42037.1112
rawdata_video_source_helper_interface.h
1 #ifndef _RAWDATA_VIDEO_SOURCE_HELPER_INTERFACE_H_
2 #define _RAWDATA_VIDEO_SOURCE_HELPER_INTERFACE_H_
3 #include "..\zoom_sdk_def.h"
4 
6 
7 BEGIN_ZOOM_SDK_NAMESPACE
9 {
10 public:
11  virtual ~IZoomSDKPreProcessor(){}
12  virtual void onPreProcessRawData(YUVProcessDataI420* rawData) = 0;
13 };
14 
17 {
18 public:
19  virtual ~IZoomSDKVideoSender(){}
20  virtual SDKError sendVideoFrame(char* frameBuffer, int width, int height, int frameLength, int rotation) = 0;
21 };
22 
24 {
25  unsigned int width;
26  unsigned int height;
27  unsigned int frame;
28 
30  {
31  Reset();
32  }
33 
34  VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
35  {
36  width = w;
37  height = h;
38  frame = f;
39  }
40 
41  VideoSourceCapability& operator=(const VideoSourceCapability& ins)
42  {
43  width = ins.width;
44  height = ins.height;
45  frame = ins.frame;
46  return *this;
47  }
48 
50  {
51  *this = ins;
52  }
53 
54  void Reset()
55  {
56  width = 0;
57  height = 0;
58  frame = 0;
59  }
60 };
61 
63 {
64 public:
65  virtual ~IZoomSDKVideoSource(){}
66  virtual void onInitialize(IZoomSDKVideoSender* sender, IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability& suggest_cap) = 0;
67  virtual void onPropertyChange(IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability suggest_cap) = 0;
68  virtual void onStartSend() = 0;
69  virtual void onStopSend() = 0;
70  virtual void onUninitialized() = 0;
71 };
72 
75 {
76 public:
77  virtual ~IZoomSDKVideoSourceHelper(){}
78  virtual SDKError setPreProcessor(IZoomSDKPreProcessor* processor) = 0; //Set a PreProcessor to edit the zoom camera video source before send to other.
79  virtual SDKError setExternalVideoSource(IZoomSDKVideoSource* source) = 0; //Set external video source for capture video by self.
80 };
81 END_ZOOM_SDK_NAMESPACE
82 #endif
Definition: rawdata_video_source_helper_interface.h:8
Definition: rawdata_video_source_helper_interface.h:74
Definition: zoom_sdk_def.h:288
Definition: rawdata_video_source_helper_interface.h:62
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:29
Definition: rawdata_video_source_helper_interface.h:16
Definition: rawdata_video_source_helper_interface.h:23
Definition: zoom_sdk_raw_data_def.h:96