public static interface TXVideoEditer.TXVideoCustomProcessListener
Modifier and Type | Method and Description |
---|---|
int |
onTextureCustomProcess(int textureId,
int width,
int height,
long timestamp)
在OpenGL线程中回调,在这里可以进行采集图像的二次处理
|
void |
onTextureDestroyed()
在OpenGL线程中回调,可以在这里释放创建的OpenGL资源
|
int onTextureCustomProcess(int textureId, int width, int height, long timestamp)
textureId
- 纹理IDwidth
- 纹理的宽度height
- 纹理的高度说明:SDK回调出来的纹理类型是GLES20.GL_TEXTURE_2D,接口返回给SDK的纹理类型也必须是GLES20.GL_TEXTURE_2D
void onTextureDestroyed()