public class GlCameraTexture extends GlTexture
Modifier and Type | Class and Description |
---|---|
static interface |
GlCameraTexture.OnFrameAvailableListener |
GlTexture.Filtering, GlTexture.Slot, GlTexture.Wrap
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(SurfaceTexture surfaceTexture) |
protected void |
onRelease() |
void |
updateTexture() |
attach, bindTexture, changeBehave, getChangeCount, getMaxTextureSize, getTextureHandle, getTextureTarget, getTransformation, hasTransformation, isMipmapFilterMode, setBehave, setBehave, setBehave, setTransformation, textureChanged, updateMipmapIfNeeded, upscaleValueToPowOfTwo, useMipmap
createGlContext, destroyGlContext, finalize, 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(SurfaceTexture surfaceTexture)
public void updateTexture()