TXVideoCustomProcessListener Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TXVideoEditerListener.h |
– onPreProcessTexture:width:height:timestamp:
在OpenGL线程中回调,在这里可以进行采集图像的二次处理
- (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height timestamp:(UInt64)timestamp
Parameters
texture |
纹理ID |
---|---|
width |
纹理的宽度 |
height |
纹理的高度 |
timestamp |
纹理timestamp 单位ms |
Return Value
返回给SDK的纹理 说明:SDK回调出来的纹理类型是GL_TEXTURE_2D,接口返回给SDK的纹理类型也必须是GL_TEXTURE_2D; 该回调在SDK美颜之后. 纹理格式为GL_RGBA timestamp 为当前视频帧的 pts ,单位是ms ,客户可以根据自己的需求自定义滤镜特效
Declared In
TXVideoEditerListener.h
– onTextureDestoryed
在OpenGL线程中回调,可以在这里释放创建的OpenGL资源
- (void)onTextureDestoryed
Declared In
TXVideoEditerListener.h