# CodecInputSurface

public class CodecInputSurface

## Constructors

CodecInputSurface
Link copied to clipboard
public void CodecInputSurface(Surface surface)
Creates a CodecInputSurface from a Surface.

## Functions

awaitNewImage
Link copied to clipboard
public void awaitNewImage()
changeFragmentShader
Link copied to clipboard
public void changeFragmentShader(String fragmentShader)
createRender
Link copied to clipboard
public void createRender()
drawImage
Link copied to clipboard
public void drawImage()
getSurface
Link copied to clipboard
public Surface getSurface()
getSurfaceTexture
Link copied to clipboard
public SurfaceTexture getSurfaceTexture()
makeCurrent
Link copied to clipboard
public void makeCurrent()
Makes our EGL context and surface current.
onFrameAvailable
Link copied to clipboard
public void onFrameAvailable(SurfaceTexture st)
release
Link copied to clipboard
public void release()
Discards all resources held by this class, notably the EGL context.
setPresentationTime
Link copied to clipboard
public void setPresentationTime(long nsecs)
Sends the presentation time stamp to EGL.
swapBuffers
Link copied to clipboard
public boolean swapBuffers()
Calls eglSwapBuffers.