public class OutputSurface
extends java.lang.Object
implements android.graphics.SurfaceTexture.OnFrameAvailableListener
Constructor and Description |
---|
OutputSurface() |
OutputSurface(int width,
int height,
int rotate) |
Modifier and Type | Method and Description |
---|---|
void |
awaitNewImage() |
void |
changeFragmentShader(java.lang.String fragmentShader) |
void |
drawImage(boolean invert) |
java.nio.ByteBuffer |
getFrame() |
android.view.Surface |
getSurface() |
void |
makeCurrent() |
void |
onFrameAvailable(android.graphics.SurfaceTexture st) |
void |
release() |
public OutputSurface(int width, int height, int rotate)
public OutputSurface()
public void release()
public void makeCurrent()
public android.view.Surface getSurface()
public void changeFragmentShader(java.lang.String fragmentShader)
public void awaitNewImage()
public void drawImage(boolean invert)
public void onFrameAvailable(android.graphics.SurfaceTexture st)
onFrameAvailable
in interface android.graphics.SurfaceTexture.OnFrameAvailableListener
public java.nio.ByteBuffer getFrame()