public class EglSurfaceBase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
createOffscreenSurface(int width,
int height)
Creates an offscreen surface.
|
void |
createWindowSurface(java.lang.Object surface)
Creates a window surface.
|
EGLSurface |
getEglSurface()
Gets the EGL surface.
|
int |
getHeight()
Gets the surface's height, in pixels.
|
int |
getWidth()
Gets the surface's width, in pixels.
|
void |
makeCurrent()
Makes our EGL context and surface current.
|
void |
makeCurrentReadFrom(EglSurfaceBase readSurface)
Makes our EGL context and surface current for drawing, using the supplied surface
for reading.
|
void |
releaseEglSurface()
Releases the EGL surface.
|
void |
saveFrame(java.io.File file)
Saves the EGL surface to a file.
|
void |
setPresentationTime(long nsecs)
Sends the presentation time stamp to EGL.
|
boolean |
swapBuffers()
Calls eglSwapBuffers.
|
public void createWindowSurface(java.lang.Object surface)
surface
- May be a Surface or SurfaceTexture.public void createOffscreenSurface(int width, int height)
public int getWidth()
public int getHeight()
public EGLSurface getEglSurface()
public void releaseEglSurface()
public void makeCurrent()
public void makeCurrentReadFrom(EglSurfaceBase readSurface)
public boolean swapBuffers()
public void setPresentationTime(long nsecs)
nsecs
- Timestamp, in nanoseconds.public void saveFrame(java.io.File file) throws java.io.IOException
java.io.IOException
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal