ZOOM Windows SDK  5.2.42037.1112
rawdata_renderer_interface.h
1 #ifndef _RAWDATA_RENDERER_INTERFACE_H_
2 #define _RAWDATA_RENDERER_INTERFACE_H_
3 #include "..\zoom_sdk_def.h"
4 
5 class YUVRawDataI420;
6 
7 BEGIN_ZOOM_SDK_NAMESPACE
8 typedef enum ZoomSDKResolution
9 {
10  ZoomSDKResolution_90P = 0,
11  ZoomSDKResolution_180P,
12  ZoomSDKResolution_360P,
13  ZoomSDKResolution_720P,
14  ZoomSDKResolution_1080P,
15  ZoomSDKResolution_NoUse = 100
16 }ZoomSDKResolution;
17 
18 typedef enum
19 {
20  RAW_DATA_TYPE_VIDEO = 0,
21  RAW_DATA_TYPE_SHARE,
22 }ZoomSDKRawDataType;
23 
25 {
26 public:
27  enum RawDataStatus
28  {
29  RawData_On,
30  RawData_Off,
31  };
34  virtual void onRendererBeDestroyed() = 0;
35 
36  virtual void onRawDataFrameReceived(YUVRawDataI420* data) = 0;
37  virtual void onRawDataStatusChanged(RawDataStatus status) = 0;
38  virtual ~IZoomSDKRendererDelegate() {}
39 };
40 
42 {
43 public:
44  virtual SDKError setRawDataResolution(ZoomSDKResolution resolution) = 0;
45  virtual SDKError subscribe(uint32_t userId, ZoomSDKRawDataType type) = 0;
46  virtual SDKError unSubscribe() = 0;
47  virtual ZoomSDKResolution getResolution() = 0;
48  virtual ZoomSDKRawDataType getRawDataType() = 0;
49  virtual uint32_t getUserId() = 0;
50  virtual ~IZoomSDKRenderer(){}
51 };
52 END_ZOOM_SDK_NAMESPACE
53 #endif
virtual void onRendererBeDestroyed()=0
Notify the current renderer object is going to be destroyed. After you handle this callback...
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:29
Definition: rawdata_renderer_interface.h:24
The YUV raw data handler interface.
Definition: zoom_sdk_raw_data_def.h:39
Definition: rawdata_renderer_interface.h:41