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
8
9 private boolean isLimited;
10
11 private int streamWidth;
12
13 private int streamHeight;
14
15 private int yStride;
16
17 private int uStride;
18
19 private int vStride;
20
21 private int rotation;
22
23 private long nativeHandle = -1;
24
25 public ZoomSDKPreProcessRawData(boolean isLimited, int streamWidth, int streamHeight, int rotation, int yStride, int uStride, int vStride, long handle) {
26 this.isLimited = isLimited;
27 this.streamWidth = streamWidth;
28 this.streamHeight = streamHeight;
29 this.yStride = yStride;
30 this.uStride = uStride;
31 this.vStride = vStride;
32 this.rotation = rotation;
33 this.nativeHandle = handle;
34 }
35
36 public ByteBuffer getYBuffer(int lineNum) {
37 if (nativeHandle == -1) {
38 return null;
39 }
40 return RTCConference.getInstance().getVideoRawDataHelper().getYBuffer(lineNum, nativeHandle);
41 }
42
43 public ByteBuffer getUBuffer(int lineNum) {
44 if (nativeHandle == -1) {
45 return null;
46 }
47 return RTCConference.getInstance().getVideoRawDataHelper().getUBuffer(lineNum, nativeHandle);
48 }
49
50 public ByteBuffer getVBuffer(int lineNum) {
51 if (nativeHandle == -1) {
52 return null;
53 }
54 return RTCConference.getInstance().getVideoRawDataHelper().getVBuffer(lineNum, nativeHandle);
55 }
56
57 public boolean isLimited() {
58 return isLimited;
59 }
60
61 public int getWidth() {
62 return streamWidth;
63 }
64
65 public int getHeight() {
66 return streamHeight;
67 }
68
69 public int getYStride() {
70 return yStride;
71 }
72
73 public int getUStride() {
74 return uStride;
75 }
76
77 public int getVStride() {
78 return vStride;
79 }
80
81 public int getRotation() {
82 return rotation;
83 }
84
85}
ZoomSDKPreProcessRawData(boolean isLimited, int streamWidth, int streamHeight, int rotation, int yStride, int uStride, int vStride, long handle)