TXVideoCustomProcessDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TXVideoCustomProcessDelegate.h |
– onPreProcessTexture:width:height:
在OpenGL线程中回调,在这里可以进行采集图像的二次处理
- (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height
Parameters
texture |
纹理ID |
---|---|
width |
纹理的宽度 |
height |
纹理的高度 |
Return Value
返回给SDK的纹理 说明:SDK回调出来的纹理类型是GL_TEXTURE_2D,接口返回给SDK的纹理类型也必须是GL_TEXTURE_2D; 该回调在SDK美颜之后. 纹理格式为GL_RGBA
Declared In
TXVideoCustomProcessDelegate.h
– onTextureDestoryed
在OpenGL线程中回调,可以在这里释放创建的OpenGL资源
- (void)onTextureDestoryed
Declared In
TXVideoCustomProcessDelegate.h
– onDetectFacePoints:
人脸数据回调(增值版且启用了pitu模块才有效) @prama points 人脸坐标 说明:开启pitu模块必须是打开动效或大眼瘦脸。此回调在onPreProcessTexture:width:height:之前
- (void)onDetectFacePoints:(NSArray *)points
Declared In
TXVideoCustomProcessDelegate.h
– onPlayerPixelBuffer:
视频渲染对象回调 @prarm pixelBuffer 渲染图像
- (BOOL)onPlayerPixelBuffer:(CVPixelBufferRef)pixelBuffer
Return Value
返回YES则SDK不再显示;返回NO则SDK渲染模块继续渲染 说明:渲染图像的数据类型为config中设置的renderPixelFormatType
Declared In
TXVideoCustomProcessDelegate.h