Mac SDK
ZoomSDKRenderer.h
1 //
2 // ZoomSDKRenderer.h
3 // ZoomSDK
4 
5 #import <Foundation/Foundation.h>
6 #import "ZoomSDKErrors.h"
7 
9 
10 @interface ZoomSDKYUVRawDataI420 : NSObject
15 -(BOOL)canAddRef;
20 -(BOOL)addRef;
25 -(int)releaseData;
30 -(char*)getYBuffer;
35 -(char*)getUBuffer;
40 -(char*)getVBuffer;
45 -(char*)getBuffer;
50 -(unsigned int)getBufferLen;
55 -(BOOL)isLimitedI420;
60 -(unsigned int)getStreamWidth;
65 -(unsigned int)getStreamHeight;
70 -(unsigned int)getRotation;
75 - (unsigned int)getSourceID;
76 @end
77 
78 
79 @protocol ZoomSDKRendererDelegate <NSObject>
80 - (void)onSubscribedUserDataOn;
81 - (void)onSubscribedUserDataOff;
82 - (void)onSubscribedUserLeft;
83 - (void)onRawDataReceived:(ZoomSDKYUVRawDataI420*)data;
84 - (void)onRendererBeDestroyed;
85 @end
86 
87 @interface ZoomSDKRenderer : NSObject
88 {
89  unsigned int _userID;
90  ZoomSDKRawDataType _rawDataType;
91  ZoomSDKResolution _resolution;
92  id<ZoomSDKRendererDelegate> _delegate;
93 }
94 @property(nonatomic, assign)id<ZoomSDKRendererDelegate> delegate;
95 
96 
103 - (ZoomSDKError)subscribe:(unsigned int)userID rawDataType:(ZoomSDKRawDataType)rawDataType;
104 
109 - (ZoomSDKError)unSubscribe;
110 
115 - (ZoomSDKRawDataType)getRawDataType;
116 
121 - (unsigned int)getUserID;
122 
127 - (ZoomSDKResolution)getResolution;
128 
134 - (ZoomSDKError)setResolution:(ZoomSDKResolution)resolution;
135 @end
136 
-[ZoomSDKYUVRawDataI420 getYBuffer]
char * getYBuffer()
Get the Y data.
-[ZoomSDKYUVRawDataI420 getSourceID]
unsigned int getSourceID()
Get the source id of this data.
-[ZoomSDKYUVRawDataI420 getBuffer]
char * getBuffer()
Get the buffer data.
-[ZoomSDKYUVRawDataI420 addRef]
BOOL addRef()
Add reference for this object, if you doesn't add ref, this object will be released when the callback...
-[ZoomSDKYUVRawDataI420 getBufferLen]
unsigned int getBufferLen()
Get the buffer length of this data.
ZoomSDKRenderer
Definition: ZoomSDKRenderer.h:88
-[ZoomSDKYUVRawDataI420 getRotation]
unsigned int getRotation()
Get the rotation of this data.
-[ZoomSDKYUVRawDataI420 getStreamWidth]
unsigned int getStreamWidth()
Get the stream width of this data.
-[ZoomSDKYUVRawDataI420 getVBuffer]
char * getVBuffer()
Get the V data.
-[ZoomSDKYUVRawDataI420 releaseData]
int releaseData()
Release the object, if you has add ref, remeber to call this api to release when you wantn't to use t...
ZoomSDKYUVRawDataI420
Definition: ZoomSDKRenderer.h:11
ZoomSDKRendererDelegate-p
Definition: ZoomSDKRenderer.h:79
-[ZoomSDKYUVRawDataI420 canAddRef]
BOOL canAddRef()
Get if this object can add ref.
-[ZoomSDKYUVRawDataI420 isLimitedI420]
BOOL isLimitedI420()
Get if this data is limited I420 format.
-[ZoomSDKYUVRawDataI420 getStreamHeight]
unsigned int getStreamHeight()
Get the stream height of this data.
-[ZoomSDKYUVRawDataI420 getUBuffer]
char * getUBuffer()
Get the U data.