Class CodecInputSurface
-
- All Implemented Interfaces:
public class CodecInputSurface
-
-
Constructor Summary
Constructors Constructor Description CodecInputSurface(Surface surface)Creates a CodecInputSurface from a Surface.
-
Method Summary
Modifier and Type Method Description voidcreateRender()SurfaceTexturegetSurfaceTexture()voidchangeFragmentShader(String fragmentShader)voidawaitNewImage()voiddrawImage()voidonFrameAvailable(SurfaceTexture st)SurfacegetSurface()voidrelease()Discards all resources held by this class, notably the EGL context. voidmakeCurrent()Makes our EGL context and surface current. booleanswapBuffers()Calls eglSwapBuffers. voidsetPresentationTime(long nsecs)Sends the presentation time stamp to EGL. -
-
Method Detail
-
createRender
void createRender()
-
getSurfaceTexture
SurfaceTexture getSurfaceTexture()
-
changeFragmentShader
void changeFragmentShader(String fragmentShader)
-
awaitNewImage
void awaitNewImage()
-
drawImage
void drawImage()
-
onFrameAvailable
void onFrameAvailable(SurfaceTexture st)
-
getSurface
Surface getSurface()
-
release
void release()
Discards all resources held by this class, notably the EGL context. Also releases the Surface that was passed to our constructor.
-
makeCurrent
void makeCurrent()
Makes our EGL context and surface current.
-
swapBuffers
boolean swapBuffers()
Calls eglSwapBuffers. Use this to "publish" the current frame.
-
setPresentationTime
void setPresentationTime(long nsecs)
Sends the presentation time stamp to EGL. Time is expressed in nanoseconds.
-
-
-
-