TuSDKSampleBufferInput Protocol Reference
Declared in | TuSDKSampleBufferInput.h |
---|
– processSampleBufferRef:mediaType:outputTime:
required method
处理媒体数据
- (void)processSampleBufferRef:(CMSampleBufferRef)sampleBufferRef mediaType:(AVMediaType)type outputTime:(CMTime)outputTime
Parameters
sampleBufferRef |
CMSampleBufferRef |
---|---|
type |
AVMediaTypeVideo / AVMediaTypeAudio |
outputTime |
当前媒体数据输出时间 |
Declared In
TuSDKSampleBufferInput.h
– processProcessPixelBuffer:outputTime:
required method
新的视频数据可用
- (void)processProcessPixelBuffer:(CVPixelBufferRef)pixelBufferRef outputTime:(CMTime)outputTime
Parameters
pixelBufferRef |
视频帧数据 |
---|---|
outputTime |
当前媒体数据输出时间 |
Declared In
TuSDKSampleBufferInput.h