TuSDKMediaVideoRender Protocol Reference

Conforms to NSObject
Declared in TuSDKMediaVideoRender.h

Overview

视频渲染接口

– renderOutputPixelFormatType required method

处理渲染完成后的图像格式 支持: kCVPixelFormatType_420YpCbCr8BiPlanarFullRange | kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange kCVPixelFormatType_32BGRA

- (OSType)renderOutputPixelFormatType

Return Value

OSType

Availability

v3.0

Declared In

TuSDKMediaVideoRender.h

– renderImageRotationMode: required method

图像方向,开发者需要根据方向信息自行纠正

- (void)renderImageRotationMode:(LSQGPUImageRotationMode)rotationMode

Parameters

rotationMode

LSQGPUImageRotationMode

Availability

v3.0

Declared In

TuSDKMediaVideoRender.h

– renderPixelBufferRef:outputTime:shouldRelease: required method

请求渲染视频数据

- (CVPixelBufferRef)renderPixelBufferRef:(CVPixelBufferRef)pixelBufferRef outputTime:(CMTime)outputTime shouldRelease:(BOOL *)shouldRelease

Parameters

pixelBufferRef

解码视频数据

outputTime

输出视频时间

shouldRelease

SDK 是否负责释放处理后的 pixelBufferRef 默认: NO

Return Value

渲染后的音频数据

Availability

v3.0

Declared In

TuSDKMediaVideoRender.h