Struct Argb32VideoFrame
Single video frame encoded in ARGB interleaved format (32 bits per pixel).
The ARGB components are in the order of a little endian 32-bit integer, so 0xAARRGGBB, or (B, G, R, A) as a sequence of bytes in memory with B first and A last.
Namespace: Microsoft.MixedReality.WebRTC
Assembly: Microsoft.MixedReality.WebRTC.dll
Syntax
public struct Argb32VideoFrame
Remarks
The use of ref struct
is an optimization to avoid heap allocation on each frame while
having a nicer-to-use container to pass a frame accross methods.
Fields
| Improve this Doc View Sourcedata
Pointer to the data buffer containing the ARBG data for each pixel.
Declaration
public IntPtr data
Field Value
Type | Description |
---|---|
IntPtr |
height
Frame height, in pixels.
Declaration
public uint height
Field Value
Type | Description |
---|---|
UInt32 |
stride
Stride in bytes between the ARGB rows.
Declaration
public int stride
Field Value
Type | Description |
---|---|
Int32 |
width
Frame width, in pixels.
Declaration
public uint width
Field Value
Type | Description |
---|---|
UInt32 |