Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
ZoomSDKVideoRawData.java
Go to the documentation of this file.
1package us.zoom.sdk;
2
3import java.nio.ByteBuffer;
4
5import us.zoom.internal.RTCConference;
6
12public class ZoomSDKVideoRawData {
13
14 public static final int FORMAT_TYPE_I420 = 0;
15
16 private ByteBuffer yBuffer;
17
18 private ByteBuffer uBuffer;
19
20 private ByteBuffer vBuffer;
21
22 private ByteBuffer aBuffer;
23
24 private boolean isLimited;
25
26 private int streamWidth;
27
28 private int streamHeight;
29
30 private int rotation;
31 private long timeStamp;
32
33 private int format;
34
35 private long nativeHandle = -1;
36 private long nativeYHandle = -1;
37 private long nativeUHandle = -1;
38 private long nativeVHandle = -1;
39
40 private long nativeAHandle = -1;
41
42 public ZoomSDKVideoRawData(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, ByteBuffer aBuffer,boolean isLimited, int streamWidth, int streamHeight, int rotation,long timeStamp, int format, long nativeHandle,
44 this.yBuffer = yBuffer;
45 this.uBuffer = uBuffer;
46 this.vBuffer = vBuffer;
47 this.aBuffer = aBuffer;
48 this.isLimited = isLimited;
49 this.streamWidth = streamWidth;
50 this.streamHeight = streamHeight;
51 this.rotation = rotation;
52 this.timeStamp=timeStamp;
53 this.format = format;
54 this.nativeHandle = nativeHandle;
55 this.nativeYHandle = nativeYHandle;
56 this.nativeUHandle = nativeUHandle;
57 this.nativeVHandle = nativeVHandle;
58 this.nativeAHandle = nativeAHandle;
59 }
60
65
66 public ZoomSDKVideoRawData(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, boolean isLimited, int streamWidth, int streamHeight, int rotation, long timeStamp,int format, long nativeHandle) {
67 this.yBuffer = yBuffer;
68 this.uBuffer = uBuffer;
69 this.vBuffer = vBuffer;
70 this.isLimited = isLimited;
71 this.streamWidth = streamWidth;
72 this.streamHeight = streamHeight;
73 this.rotation = rotation;
74 this.timeStamp=timeStamp;
75 this.format = format;
76 this.nativeHandle = nativeHandle;
77 }
78
79 public boolean canAddRef() {
80 if (nativeHandle == -1) {
81 return false;
82 }
83 return RTCConference.getInstance().getVideoRawDataHelper().canAddRef(nativeHandle);
84 }
85
86 public void addRef() {
87 if (nativeHandle == -1) {
88 return;
89 }
90 RTCConference.getInstance().getVideoRawDataHelper().addRef(nativeHandle);
91 }
92
93 public void releaseRef() {
94 if (nativeHandle == -1) {
95 return;
96 }
97 int count = RTCConference.getInstance().getVideoRawDataHelper().releaseRef(nativeHandle);
98 if (count <= 0) {
99 nativeHandle = -1;
100 }
101 }
102
108 public ByteBuffer getyBuffer() {
109 return yBuffer;
110 }
111
117 public ByteBuffer getuBuffer() {
118 return uBuffer;
119 }
120
126 public ByteBuffer getvBuffer() {
127 return vBuffer;
128 }
129
135 public ByteBuffer getAlphaBuffer() {
136 return aBuffer;
137 }
138
144 public boolean isLimited() {
145 return isLimited;
146 }
147
153 public int getStreamWidth() {
154 return streamWidth;
155 }
156
157 public int getStreamHeight() {
158 return streamHeight;
159 }
160
166 public int getRotation() {
167 return rotation;
168 }
169
175 public int getFormat() {
176 return format;
177 }
178
184 public long getTimeStamp() {
185 return timeStamp;
186 }
187
188
189 public long getNativeHandle() {
190 return nativeHandle;
191 }
192
193 public long getNativeYBuffer() {
194 return nativeYHandle;
195 }
196
197 public long getNativeUBuffer() {
198 return nativeUHandle;
199 }
200
201 public long getNativeVBuffer() {
202 return nativeVHandle;
203 }
204
205 public long getNativeAlphaBuffer() {
206 return nativeAHandle;
207 }
208}
Zoom SDK Video raw data bean.
ByteBuffer getyBuffer()
Get YUVI420 Y buffer.
ByteBuffer getvBuffer()
Get YUVI420 V buffer.
boolean isLimited()
Query video raw data is limited.
ByteBuffer getAlphaBuffer()
Get YUVI420 Alpha buffer.
int getFormat()
Query video raw data format.
int getStreamWidth()
Query stream width.
int getRotation()
Query video raw data rotation.
ByteBuffer getuBuffer()
Get YUVI420 U buffer.
ZoomSDKVideoRawData(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, boolean isLimited, int streamWidth, int streamHeight, int rotation, long timeStamp, int format, long nativeHandle)
ZoomSDKVideoRawData(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, boolean isLimited, int streamWidth, int streamHeight, int rotation, long timeStamp, int format, long nativeHandle, long nativeYHandle, long nativeUHandle, long nativeVHandle)
ZoomSDKVideoRawData(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, ByteBuffer aBuffer, boolean isLimited, int streamWidth, int streamHeight, int rotation, long timeStamp, int format, long nativeHandle, long nativeYHandle, long nativeUHandle, long nativeVHandle, long nativeAHandle)