public class GlCameraTexture extends GlTexture implements android.graphics.SurfaceTexture.OnFrameAvailableListener
Modifier and Type | Class and Description |
---|---|
static interface |
GlCameraTexture.OnFrameAvailableListener |
GlTexture.Filtering, GlTexture.Slot, GlTexture.Wrap
changeCount, downScaleFiltering, horizontalWrap, textureHandle, upScaleFiltering, verticalWrap
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() |
attach, bindTexture, changeBehave, getChangeCount, getMaxTextureSize, getTextureHandle, getTextureTarget, getTransformation, hasTransformation, isMipmapFilterMode, markDirty, setBehave, setBehave, setBehave, setTransformation, textureChanged, updateMipmapIfNeeded, upscaleValueToPowOfTwo, useMipmap
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
public void bindCamera(@NonNull Camera camera, GlCameraTexture.OnFrameAvailableListener l)
public int getTextureHeight()
getTextureHeight
in class GlTexture
public int getTextureWidth()
getTextureWidth
in class GlTexture
public void getTransformMatrix(float[] mtx)
public boolean isExternalTexture()
isExternalTexture
in class GlTexture
public void onFrameAvailable(android.graphics.SurfaceTexture surfaceTexture)
onFrameAvailable
in interface android.graphics.SurfaceTexture.OnFrameAvailableListener
public void updateTexture()