public class AgoraVideoFrameObserver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the video frame observer instance.
|
| Constructor and Description |
|---|
AgoraVideoFrameObserver()
Constructs a video frame observer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the video frame observer and releases native resources.
|
int |
getMirrorApplied()
Gets the mirror applied to the video frame.
|
int |
getRotationApplied()
Gets the rotation applied to the video frame.
|
int |
getVideoPixelFormatPreference()
Gets the video pixel format preference.
|
private void |
nativeDestroy(long cptr)
Releases the native video frame observer handle.
|
private int |
nativeGetMirrorApplied(long cptr)
Gets the mirror applied natively.
|
private int |
nativeGetRotationApplied(long cptr)
Gets the rotation applied natively.
|
private int |
nativeGetVideoPixelFormatPreference(long cptr)
Gets the video pixel format preference natively.
|
private long |
nativeInit()
Initializes the native video frame observer.
|
private int |
nativeThroughTheInterface(long cptr)
Checks if processed through interface natively.
|
int |
throughTheInterface()
Checks if the frame is processed through the interface.
|
public AgoraVideoFrameObserver()
public void destroy()
public int getVideoPixelFormatPreference()
public int getRotationApplied()
public int getMirrorApplied()
public int throughTheInterface()
private long nativeInit()
private void nativeDestroy(long cptr)
cptr - Native pointer to the observer instanceprivate int nativeGetVideoPixelFormatPreference(long cptr)
cptr - Native pointer to the observer instanceprivate int nativeGetRotationApplied(long cptr)
cptr - Native pointer to the observer instanceprivate int nativeGetMirrorApplied(long cptr)
cptr - Native pointer to the observer instanceprivate int nativeThroughTheInterface(long cptr)
cptr - Native pointer to the observer instance