ZegoVideoBufferPool Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | zego-api-external-video-filter-oc.h |
– dequeueInputBuffer:height:stride:
required method
SDK 获取 CVPixelBufferRef 对象
- (nullable CVPixelBufferRef)dequeueInputBuffer:(int)width height:(int)height stride:(int)stride
Parameters
width |
高度 |
---|---|
height |
宽度 |
stride |
视频帧数据每一行字节数 |
Return Value
CVPixelBufferRef CVPixelBufferRef 对象
Discussion
开发者调用此 API 向 SDK 返回 CVPixelBufferRef 对象,用于保存视频帧数据
Declared In
zego-api-external-video-filter-oc.h
– queueInputBuffer:timestamp:
required method
异步处理视频帧数据
- (void)queueInputBuffer:(nonnull CVPixelBufferRef)pixel_buffer timestamp:(unsigned long long)timestamp_100n
Parameters
pixel_buffer |
视频帧数据 |
---|---|
timestamp_100n |
当前时间戳 |
Discussion
开发者在此 API 中获取采集的视频帧数据
Declared In
zego-api-external-video-filter-oc.h