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
162 public int getStreamHeight() {
163 return streamHeight;
164 }
165
171 public int getRotation() {
172 return rotation;
173 }
174
180 public int getFormat() {
181 return format;
182 }
183
189 public long getTimeStamp() {
190 return timeStamp;
191 }
192
193
194 public long getNativeHandle() {
195 return nativeHandle;
196 }
197
198 public long getNativeYBuffer() {
199 return nativeYHandle;
200 }
201
202 public long getNativeUBuffer() {
203 return nativeUHandle;
204 }
205
206 public long getNativeVBuffer() {
207 return nativeVHandle;
208 }
209
210 public long getNativeAlphaBuffer() {
211 return nativeAHandle;
212 }
213}
ByteBuffer getyBuffer()
Gets the YUVI420 Y buffer.
long getTimeStamp()
Gets the timestamp.
ByteBuffer getvBuffer()
Gets the YUVI420 V buffer.
boolean isLimited()
Determines whether video raw data is limited.
ByteBuffer getAlphaBuffer()
Gets the YUVI420 alpha buffer.
int getFormat()
Gets the video raw data format.
int getStreamWidth()
Gets the stream width.
int getStreamHeight()
Gets the stream height.
int getRotation()
Gets the video raw data rotation.
ByteBuffer getuBuffer()
Gets the 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)