AlivcLivePusher  v4.5.1
Aliyun Live Pusher API Reference Manual for iOS Platforms
<AlivcLivePusherCustomFilterDelegate> Protocol Reference

外置滤镜相关回调 More...

Inheritance diagram for <AlivcLivePusherCustomFilterDelegate>:

Instance Methods

(void) - onCreate:context:
 通知外置滤镜创建回调 More...
 
(void) - onDestory:
 通知外置滤镜销毁回调 More...
 
(int) - onProcess:texture:textureWidth:textureHeight:extra:
 通知外置滤镜处理回调,当前版本SDK在非互动模式下需要使用onProcess处理美颜 More...
 
(BOOL) - onProcessVideoSampleBuffer:sampleBuffer:
 通知外置滤镜处理回调,当前版本SDK在互动模式下需要使用onProcessVideoSampleBuffer处理美颜 More...
 

Detailed Description

外置滤镜相关回调

Method Documentation

◆ onCreate:context:

- (void) onCreate: (AlivcLivePusher *)  pusher
context: (void *)  context 
required

通知外置滤镜创建回调

Parameters
pusher推流引擎对象
context上下文环境

◆ onDestory:

- (void) onDestory: (AlivcLivePusher *)  pusher
required

通知外置滤镜销毁回调

Parameters
pusher推流引擎对象

◆ onProcess:texture:textureWidth:textureHeight:extra:

- (int) onProcess: (AlivcLivePusher *)  pusher
texture: (int)  texture
textureWidth: (int)  width
textureHeight: (int)  height
extra: (long)  extra 
required

通知外置滤镜处理回调,当前版本SDK在非互动模式下需要使用onProcess处理美颜

Parameters
pusher推流引擎对象
texture纹理ID
width图像宽
height图像高
extra额外信息
Returns
返回处理后的纹理ID

◆ onProcessVideoSampleBuffer:sampleBuffer:

- (BOOL) onProcessVideoSampleBuffer: (AlivcLivePusher *)  pusher
sampleBuffer: (AlivcLiveVideoDataSample *)  sampleBuffer 
required

通知外置滤镜处理回调,当前版本SDK在互动模式下需要使用onProcessVideoSampleBuffer处理美颜

Parameters
pusher推流引擎对象
sampleBuffer视频sample data AlivcLiveVideoDataSample
Returns
  • YES: 需要写回SDK
  • NO: 不需要写回SDK
Note
此回调只在livePushMode为AlivcLivePushInteractiveMode,即只在直播SDK工作在互动模式下才回回调

The documentation for this protocol was generated from the following file: