TuSDKLiveVideoCameraDelegate Protocol Reference
Conforms to | TuSDKVideoCameraDelegate |
---|---|
Declared in | TuSDKLiveVideoCamera.h |
– onVideoCamera:bufferData:time:
required method
获取滤镜处理后的帧数据, pixelFormatType 为 lsqFormatTypeBGRA 或 lsqFormatTypeYUV420F 时调用
- (void)onVideoCamera:(TuSDKLiveVideoCamera *)camera bufferData:(CVPixelBufferRef)pixelBuffer time:(CMTime)frameTime
Parameters
camera |
相机 |
---|---|
pixelBuffer |
帧数据, CVPixelBufferRef 类型, 默认为 kCVPixelFormatType_32BGRA 格式 |
frameTime |
帧时间戳 |
Declared In
TuSDKLiveVideoCamera.h
– onVideoCamera:rawData:bytesPerRow:imageSize:time:
获取滤镜处理后的帧原始数据, pixelFormatType 为 lsqFormatTypeRawData 时调用
- (void)onVideoCamera:(TuSDKLiveVideoCamera *)camera rawData:(unsigned char *)bytes bytesPerRow:(NSUInteger)bytesPerRow imageSize:(CGSize)imageSize time:(CMTime)frameTime
Parameters
camera |
相机 |
---|---|
bytes |
帧数据 |
bytesPerRow |
bytesPerRow |
imageSize |
尺寸 |
frameTime |
帧时间戳 |
Declared In
TuSDKLiveVideoCamera.h