SurfaceTexture

Class of android.graphics · SurfaceTexture.java · Android's reference

public class SurfaceTexture

A stream of images from a producer (a camera's preview, a video's frames) into a GLES external texture. No producer here gives it images yet: updateTexImage leaves the texture as it is, the transform is the identity and no frame becomes available.

Nested types

Constructors

public SurfaceTexture(int texName) source
public SurfaceTexture(int texName, boolean singleBufferMode) source
public SurfaceTexture(boolean singleBufferMode) source

Methods

public void setOnFrameAvailableListener(OnFrameAvailableListener listener) source
public void setOnFrameAvailableListener(OnFrameAvailableListener listener, Handler handler) source
public void setDefaultBufferSize(int width, int height) source
public void updateTexImage() source
public void releaseTexImage() empty body source
public void detachFromGLContext() source
public void attachToGLContext(int texName) source
public void getTransformMatrix(float[] mtx) source
public long getTimestamp() source
public long getDataSpace() source
public void release() source
public boolean isReleased() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.