ZegoVideoFilterSampleBufferDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | zego-api-external-video-filter-oc.h |
Overview
外部滤镜同步回调,传递的数据类型为 CMSampleBufferRef,仅 iOS 平台有效,且通过 ZegoVideoFilterDelegate 给 SDK 返回处理过的 CVPixelBuffer 数据
– onProcess:size:width:height:stride:withTimeStatmp:
required method
同步处理视频帧数据
- (void)onProcess:(nonnull CMSampleBufferRef)sample_buffer size:(int)size width:(int)width height:(int)height stride:(int)stride withTimeStatmp:(unsigned long long)timestamp_100
Parameters
sample_buffer |
视频帧数据 |
---|---|
size |
数据大小 |
width |
宽度 |
height |
高度 |
stride |
视频帧数据每一行字节数 |
timestamp_100 |
当前时间戳 |
Declared In
zego-api-external-video-filter-oc.h