Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
ZoomSDKPreProcessRawData.java
Go to the documentation of this file.
1package us.zoom.sdk;
2
3import java.nio.ByteBuffer;
4
5import us.zoom.internal.RTCConference;
6
11
12 private boolean isLimited;
13
14 private int streamWidth;
15
16 private int streamHeight;
17
18 private int yStride;
19
20 private int uStride;
21
22 private int vStride;
23
24 private int rotation;
25
26 private long nativeHandle = -1;
27
40 public ZoomSDKPreProcessRawData(boolean isLimited, int streamWidth, int streamHeight, int rotation, int yStride, int uStride, int vStride, long handle) {
41 this.isLimited = isLimited;
42 this.streamWidth = streamWidth;
43 this.streamHeight = streamHeight;
44 this.yStride = yStride;
45 this.uStride = uStride;
46 this.vStride = vStride;
47 this.rotation = rotation;
48 this.nativeHandle = handle;
49 }
50
57 public ByteBuffer getYBuffer(int lineNum) {
58 if (nativeHandle == -1) {
59 return null;
60 }
61 return RTCConference.getInstance().getVideoRawDataHelper().getYBuffer(lineNum, nativeHandle);
62 }
63
70 public ByteBuffer getUBuffer(int lineNum) {
71 if (nativeHandle == -1) {
72 return null;
73 }
74 return RTCConference.getInstance().getVideoRawDataHelper().getUBuffer(lineNum, nativeHandle);
75 }
76
83 public ByteBuffer getVBuffer(int lineNum) {
84 if (nativeHandle == -1) {
85 return null;
86 }
87 return RTCConference.getInstance().getVideoRawDataHelper().getVBuffer(lineNum, nativeHandle);
88 }
89
95 public boolean isLimited() {
96 return isLimited;
97 }
98
104 public int getWidth() {
105 return streamWidth;
106 }
107
113 public int getHeight() {
114 return streamHeight;
115 }
116
122 public int getYStride() {
123 return yStride;
124 }
125
131 public int getUStride() {
132 return uStride;
133 }
134
140 public int getVStride() {
141 return vStride;
142 }
143
149 public int getRotation() {
150 return rotation;
151 }
152
153}
ByteBuffer getVBuffer(int lineNum)
Gets the V buffer by line number.
boolean isLimited()
Determines whether the video raw data is limited.
ZoomSDKPreProcessRawData(boolean isLimited, int streamWidth, int streamHeight, int rotation, int yStride, int uStride, int vStride, long handle)
Constructs a ZoomSDKPreProcessRawData instance.
ByteBuffer getUBuffer(int lineNum)
Gets the U buffer by line number.
ByteBuffer getYBuffer(int lineNum)
Gets the Y buffer by line number.