public class GlCameraTexture
extends GlTexture
implements android.graphics.SurfaceTexture.OnFrameAvailableListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
GlCameraTexture.OnFrameAvailableListener |
| Constructor and Description |
|---|
GlCameraTexture() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindCamera(Camera camera,
GlCameraTexture.OnFrameAvailableListener l) |
int |
getTextureHeight() |
int |
getTextureWidth() |
void |
getTransformMatrix(float[] mtx) |
boolean |
isExternalTexture() |
void |
onAttach(int textureHandle) |
void |
onFrameAvailable(android.graphics.SurfaceTexture surfaceTexture) |
protected void |
onRelease() |
void |
updateTexture() |
public void onAttach(int textureHandle)
protected void onRelease()
public int getTextureWidth()
public int getTextureHeight()
public boolean isExternalTexture()
public void bindCamera(@NonNull
Camera camera,
GlCameraTexture.OnFrameAvailableListener l)
public void updateTexture()
public void getTransformMatrix(float[] mtx)
public void onFrameAvailable(android.graphics.SurfaceTexture surfaceTexture)
onFrameAvailable in interface android.graphics.SurfaceTexture.OnFrameAvailableListener