AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches
com.alivc.component.custom.AlivcLivePushCustomFilter Interface Reference

Customizing the filter interface (Video Pre-Processing Callback) More...

Public Member Functions

void customFilterCreate ()
 
int customFilterProcess (int inputTexture, int textureWidth, int textureHeight, long extra)
 
void customFilterDestroy ()
 

Detailed Description

Customizing the filter interface (Video Pre-Processing Callback)

Author
aliyun live push sdk
Call Example
mAlivcLivePusher.setCustomFilter(new AlivcLivePushCustomFilter () {});
Customizing the filter interface (Video Pre-Processing Callback)
mAlivcLivePusher.setCustomFilter(null);
See also
com.alivc.live.pusher.AlivcLivePusher::setCustomFilter(AlivcLivePushCustomFilter)

Definition at line 14 of file AlivcLivePushCustomFilter.java.

Member Function Documentation

◆ customFilterCreate()

void com.alivc.component.custom.AlivcLivePushCustomFilter.customFilterCreate ( )

Custom filter created

Note
Triggered on AlivcLivePusher::setCustomimFilter(xxx);
You can initialize the external beauty through this callback;
Callback located on the GL thread;

◆ customFilterDestroy()

void com.alivc.component.custom.AlivcLivePushCustomFilter.customFilterDestroy ( )

custom filter destroy

Note
Triggered on AlivcLivePusher::setCustomimFilter(null);
You can destroy the external beauty through this callback
Callback located on the GL thread

◆ customFilterProcess()

int com.alivc.component.custom.AlivcLivePushCustomFilter.customFilterProcess ( int  inputTexture,
int  textureWidth,
int  textureHeight,
long  extra 
)

custom filter process

Parameters
inputTextureInput texture, Sample2D type
textureWidthtexture width
textureHeighttexture height
extraextra
Returns
Returns the processed texture, the texture which before and after processing are both Sample2D type.
Note
You can use the Sample2D texture for beauty processing in this callback.
Callback located on the GL thread