public class WOWZGLES
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WOWZGLES.EglEnv
The class used by the GoCoder SDK to encapsulate OpenGL ES.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_GLES_VERSION |
static float[] |
IDENTITY_MATRIX
A 4x4 array initialized as an identity matrix.
|
| Constructor and Description |
|---|
WOWZGLES() |
| Modifier and Type | Method and Description |
|---|---|
static int |
checkEglError(java.lang.String caller)
Deprecated.
Use
checkForEglError(String) instead. |
static int |
checkForEglError(java.lang.String caller)
Calls
EGL14#eglGetError() and logs an error if the last EGL call produced an error. |
static EGLContext |
createEglContext(EGLDisplay eglDisplay,
int version)
Creates an EGLContext for the specified EGLDisplay and EGL version.
|
static EGLContext |
createEglContext(EGLDisplay eglDisplay,
int version,
EGLContext eglContextShared)
Creates an EGLContext for the specified EGLDisplay and EGL version.
|
static EGLContext |
createEglContext(EGLDisplay eglDisplay,
int version,
EGLContext eglContextShared,
boolean recordable)
Creates an EGLContext for the specified EGLDisplay and EGL version.
|
static EGLSurface |
createEglWindowSurface(java.lang.Object surface,
EGLDisplay eglDisplay,
EGLConfig eglConfig)
Wraps a native Android Surface or SurfaceTexture with an EGLSurface.
|
static void |
destroyEglContext(EGLDisplay eglDisplay,
EGLContext eglContext)
Destroys the specified EGLContext.
|
static EGLConfig |
getEglConfig(EGLDisplay eglDisplay,
int version)
Gets the first matching EGLConfig for the specified EGLDisplay and version.
|
static EGLConfig |
getEglConfig(EGLDisplay eglDisplay,
int version,
boolean recordable)
Gets the first matching EGLConfig for the specified EGLDisplay and version.
|
static EGLConfig |
getEglContextConfig(EGLDisplay eglDisplay,
EGLContext eglContext)
Gets the first matching EGLConfig for the specified EGLDisplay and EGLContext.
|
static int |
getEglContextVersion(EGLDisplay eglDisplay,
EGLContext eglContext)
Gets the EGL version for the specified EGLDisplay and EGLContext.
|
static int |
getEglError()
Gets the error code produced by the last EGL call.
|
static java.lang.String |
getEglErrorString(int eglError)
Gets a human-readable string of the most common EGL errors.
|
static java.lang.String |
getEglInfo()
Deprecated.
Use
getEglInfo(boolean) instead. |
static java.lang.String |
getEglInfo(boolean includeExtensions)
Gets detailed EGL support information for the current device.
|
static WOWZDataMap |
getEglInfoDataMap()
Gets detailed EGL support information for the current device.
|
static EGLConfig |
getEglSurfaceConfig(EGLDisplay eglDisplay,
EGLSurface eglSurface)
Gets the EGLConfig for the specified EGLSurface.
|
static WOWZSize |
getEglSurfaceSize(EGLDisplay eglDisplay,
EGLSurface eglSurface)
Gets the dimensions of the specified EGLSurface.
|
static java.lang.String |
matrixToString(float[] matrix)
Converts a 4x4 matrix stored in a float[16] array to a human-readable string.
|
static java.lang.String |
matrixToString(java.lang.String header,
float[] matrix)
Converts a 4x4 matrix stored in a float[16] array to a human-readable string.
|
static int |
surfaceToEGLRotation(int surfaceRotation)
Converts a
Surface rotation angle to an EGL-based rotation angle. |
public static final int DEFAULT_GLES_VERSION
public static final float[] IDENTITY_MATRIX
public static int checkForEglError(java.lang.String caller)
EGL14#eglGetError() and logs an error if the last EGL call produced an error.caller - The name of the calling routine to log.EGL14#EGL_SUCCESS EGL_SUCCESS if no error occurred.public static int getEglError()
EGL14#EGL_SUCCESS EGL_SUCCESS if no error occurred.public static java.lang.String getEglErrorString(int eglError)
eglError - The EGL error code.public static java.lang.String getEglInfo(boolean includeExtensions)
includeExtensions - A flag that indicates whether EGL extension support information should be included.public static WOWZDataMap getEglInfoDataMap()
public static java.lang.String getEglInfo()
getEglInfo(boolean) instead.public static java.lang.String matrixToString(java.lang.String header,
float[] matrix)
header - A header to prepend to the output.matrix - A 4x4 matrix.public static java.lang.String matrixToString(float[] matrix)
matrix - A 4x4 matrix.public static EGLConfig getEglConfig(EGLDisplay eglDisplay,
int version,
boolean recordable)
eglDisplay - The EGL display.version - The EGL version.recordable - A flag indicating whether to require the EGL_ANDROID_RECORDABLE extension.public static EGLConfig getEglConfig(EGLDisplay eglDisplay,
int version)
eglDisplay - The EGL display.version - The EGL version.public static EGLContext createEglContext(EGLDisplay eglDisplay,
int version,
EGLContext eglContextShared,
boolean recordable)
eglDisplay - The EGL display.version - The EGL version.eglContextShared - Unless EGL14#EGL_NO_CONTEXT is specified, the newly created context will share EGL resources with the specified context.recordable - Indicates that the newly created context should support the EGL_ANDROID_RECORDABLE extension for use with android.media.MediaCodec.public static EGLContext createEglContext(EGLDisplay eglDisplay,
int version,
EGLContext eglContextShared)
eglDisplay - The EGL display.version - The EGL version.eglContextShared - Unless EGL14#EGL_NO_CONTEXT is specified, the newly created context will share EGL resources with the specified context.public static EGLContext createEglContext(EGLDisplay eglDisplay,
int version)
eglDisplay - The EGL display.version - The EGL version.public static EGLConfig getEglContextConfig(EGLDisplay eglDisplay,
EGLContext eglContext)
eglDisplay - The EGL display.eglContext - The EGL context.public static int getEglContextVersion(EGLDisplay eglDisplay,
EGLContext eglContext)
eglDisplay - The EGL display.eglContext - The EGL context.public static void destroyEglContext(EGLDisplay eglDisplay,
EGLContext eglContext)
eglDisplay - The EGL display.eglContext - The EGL context.public static EGLSurface createEglWindowSurface(java.lang.Object surface,
EGLDisplay eglDisplay,
EGLConfig eglConfig)
surface - A Surface or SurfaceTexture instance to wrap with an EGLSurface.eglDisplay - The EGL display.eglConfig - The EGL config to use.EGL14#EGL_NO_SURFACE if an error occurred.public static WOWZSize getEglSurfaceSize(EGLDisplay eglDisplay, EGLSurface eglSurface)
eglDisplay - The EGL display.eglSurface - The EGL surface.public static EGLConfig getEglSurfaceConfig(EGLDisplay eglDisplay,
EGLSurface eglSurface)
eglDisplay - The EGL display.eglSurface - The EGL surface.public static int surfaceToEGLRotation(int surfaceRotation)
Surface rotation angle to an EGL-based rotation angle.surfaceRotation - The rotation angle of the screen from its "natural" orientation.public static int checkEglError(java.lang.String caller)
checkForEglError(String) instead.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal