Beauty function
Some users have proposed to access the beauty function when using the SDK, so we have added the interface of this beauty function.
We provide the captured video fata to the user by the delegate function.
The user can take the video data to do the beauty, and then backfill the data into the SDK after the beauty.
Firstly, you should get the XHVideoSource class instance in the class that needs to use the beauty function, and add the XHBeautyManagerDelegate delegate function.```
Secondly, “onVideoFrame” function will receive the video data captured by the camera. "onAudioFrame" will receive audio data collected by the sdk, and the user can take the video or audio data for processing, then return the processed data directly.
Note: The video data format obtained from the “onVideoFrame” method is NV12., the Processed data returned to the SDK also need to be the NV12 format. The important thing is said three times!
Note: The video data format obtained from the “onVideoFrame” method is NV12., the Processed data returned to the SDK is also in NV12 format. The important thing is said three times!
Note: The video data format obtained from the “onVideoFrame” method is NV12., the Processed data returned to the SDK also need to be the NV12 format. The important thing is said three times!
```java
/**
收到待处理的美颜数据
@param videoData 数据
*/
-(void) onFrame:(StarVideoData *) videoData
{
// 直接回填数据
[[XHClient sharedClient].beautyManager backfillData:videoData];
}