My Project
MAC INSTANT SDK
InstantSDKVideoSourceHelper.h
1 //
2 // InstantSDKVideoSourceHelper.h
3 // ZoomInstantSDK
4 //
5 
6 #import <Foundation/Foundation.h>
7 
11 @interface InstantSDKYUVProcessDataI420 : NSObject
12 
16 @property (nonatomic, assign, readonly) unsigned int width;
17 
21 @property (nonatomic, assign, readonly) unsigned int height;
22 
26 @property (nonatomic, assign, readonly) unsigned int yStride;
27 
31 @property (nonatomic, assign, readonly) unsigned int uStride;
32 
36 @property (nonatomic, assign, readonly) unsigned int vStride;
37 
41 @property (nonatomic, assign, readonly) unsigned int rotation;
42 
46 @property (nonatomic, assign, readonly) BOOL isLimitedI420;
47 
53 - (char*)getYBuffer:(unsigned int)lineNum;
54 
60 - (char*)getUBuffer:(unsigned int)lineNum;
61 
67 - (char*)getVBuffer:(unsigned int)lineNum;
68 @end
74 
79 - (void)onPreProcessRawData:(InstantSDKYUVProcessDataI420*)rawData;
80 @end
81 
86 @interface InstantSDKVideoSender : NSObject
87 
96 - (void)sendVideoFrame:(char*)frameBuffer width:(int)width height:(int)height frameLength:(int)frameLength rotation:(int)rotation;
97 @end
98 
102 @interface InstantSDKVideoCapability : NSObject
106 @property(nonatomic, assign, readonly) int width;
107 
111 @property(nonatomic, assign, readonly) int height;
112 
116 @property(nonatomic, assign, readonly) int frame;
117 @end
118 
119 /*
120  @brief Get object of InstantSDKVideoSource to operate the video source action.
121  */
122 @protocol InstantSDKVideoSource <NSObject>
123 
130 - (void)onInitialize:(InstantSDKVideoSender*)sender supportedCapbilityList:(NSArray<InstantSDKVideoCapability *>*)supportedCapList suggestCapbility:(InstantSDKVideoCapability*)suggestCap;
131 
137 - (void)onPropertyChange:(NSArray<InstantSDKVideoCapability *>*)supportedCapList suggestCapbility:(InstantSDKVideoCapability*)suggestCap;
138 
142 - (void)onStartSend;
143 
147 - (void)onStopSend;
148 
152 - (void)onUninitialized;
153 @end
154 
Get object of InstantSDKVideoSourcePreProcessor to operate the video source action.
Get object of InstantSDKVideoSender to operate the video sender action.
Definition: InstantSDKVideoSourceHelper.h:86
unsigned int vStride
V data pointer of video&#39;s YUV data stride.
Definition: InstantSDKVideoSourceHelper.h:36
unsigned int yStride
Y data pointer of video&#39;s YUV data stride.
Definition: InstantSDKVideoSourceHelper.h:26
unsigned int uStride
U data pointer of video&#39;s YUV data stride.
Definition: InstantSDKVideoSourceHelper.h:31
Some information about YUV process data.
Definition: InstantSDKVideoSourceHelper.h:11
BOOL isLimitedI420
Determine if video raw data is limited.
Definition: InstantSDKVideoSourceHelper.h:46
Some infomation about video capability.
Definition: InstantSDKVideoSourceHelper.h:102
unsigned int height
Height of the video data size.
Definition: InstantSDKVideoSourceHelper.h:21
unsigned int width
Width of the video data size.
Definition: InstantSDKVideoSourceHelper.h:16
unsigned int rotation
The direction of video data.
Definition: InstantSDKVideoSourceHelper.h:41