EGLSurfaceTexture
@UnstableApi
class EGLSurfaceTexture : SurfaceTexture.OnFrameAvailableListener, Runnable
Generates a SurfaceTexture using EGL/GLES functions.
Summary
Nested types |
|---|
@DocumentedSecure mode to be used by the EGL surface and context. |
interface EGLSurfaceTexture.TextureImageListenerListener to be called when the texture image on |
Constants |
|
|---|---|
const Int |
SECURE_MODE_NONE = 0No secure EGL surface and context required. |
const Int |
Creating a secure surface backed by a pixel buffer. |
const Int |
Creating a surfaceless, secured EGL context. |
Public constructors |
|---|
EGLSurfaceTexture(handler: Handler!) |
EGLSurfaceTexture( |
Public functions |
|
|---|---|
SurfaceTexture! |
Returns the wrapped |
Unit |
init(@EGLSurfaceTexture.SecureMode secureMode: Int)Initializes required EGL parameters and creates the |
Unit |
onFrameAvailable(surfaceTexture: SurfaceTexture!) |
Unit |
release()Releases all allocated resources. |
Unit |
run() |
Constants
SECURE_MODE_PROTECTED_PBUFFER
const val SECURE_MODE_PROTECTED_PBUFFER = 2: Int
Creating a secure surface backed by a pixel buffer.
SECURE_MODE_SURFACELESS_CONTEXT
const val SECURE_MODE_SURFACELESS_CONTEXT = 1: Int
Creating a surfaceless, secured EGL context.
Public constructors
EGLSurfaceTexture
EGLSurfaceTexture(handler: Handler!)
| Parameters | |
|---|---|
handler: Handler! |
The |
EGLSurfaceTexture
EGLSurfaceTexture(
handler: Handler!,
callback: EGLSurfaceTexture.TextureImageListener?
)
| Parameters | |
|---|---|
handler: Handler! |
The |
callback: EGLSurfaceTexture.TextureImageListener? |
The |
Public functions
getSurfaceTexture
fun getSurfaceTexture(): SurfaceTexture!
Returns the wrapped SurfaceTexture. This can only be called after init.
init
fun init(@EGLSurfaceTexture.SecureMode secureMode: Int): Unit
Initializes required EGL parameters and creates the SurfaceTexture.
| Parameters | |
|---|---|
@EGLSurfaceTexture.SecureMode secureMode: Int |
The |