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.
public SurfaceTexture(int texName) sourcepublic SurfaceTexture(int texName, boolean singleBufferMode) sourcepublic SurfaceTexture(boolean singleBufferMode) sourcepublic void setOnFrameAvailableListener(OnFrameAvailableListener listener) sourcepublic void setOnFrameAvailableListener(OnFrameAvailableListener listener, Handler handler) sourcepublic void setDefaultBufferSize(int width, int height) sourcepublic void updateTexImage() sourcepublic void releaseTexImage() empty body sourcepublic void detachFromGLContext() sourcepublic void attachToGLContext(int texName) sourcepublic void getTransformMatrix(float[] mtx) sourcepublic long getTimestamp() sourcepublic long getDataSpace() sourcepublic void release() sourcepublic boolean isReleased() sourceMade 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.