Struct TRTCVideoFrame
6.6 视频帧数据
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct TRTCVideoFrame
Fields
bufferType
视频数据结构类型
Declaration
public TRTCVideoBufferType bufferType
Field Value
| Type | Description |
|---|---|
| TRTCVideoBufferType |
data
视频数据,字段bufferType是LiteAVVideoBufferType_Buffer时生效
Declaration
public byte[] data
Field Value
| Type | Description |
|---|---|
| System.Byte[] |
height
画面的高度
Declaration
public UInt32 height
Field Value
| Type | Description |
|---|---|
| UInt32 |
length
视频数据的长度,单位是字节,对于i420而言, length = width * height * 3 / 2,对于BGRA32而言, length = width * height * 4
Declaration
public UInt32 length
Field Value
| Type | Description |
|---|---|
| UInt32 |
rotation
画面旋转角度
Declaration
public TRTCVideoRotation rotation
Field Value
| Type | Description |
|---|---|
| TRTCVideoRotation |
textureId
视频纹理ID,字段bufferType是LiteAVVideoBufferType_Texture时生效
Declaration
public int textureId
Field Value
| Type | Description |
|---|---|
| System.Int32 |
timestamp
时间戳,单位ms
Declaration
public UInt64 timestamp
Field Value
| Type | Description |
|---|---|
| UInt64 |
videoFormat
视频帧的格式
Declaration
public TRTCVideoPixelFormat videoFormat
Field Value
| Type | Description |
|---|---|
| TRTCVideoPixelFormat |
width
画面的宽度
Declaration
public UInt32 width
Field Value
| Type | Description |
|---|---|
| UInt32 |