Skip to main content
Version: 20 Mar 2024

PlaneInfo

Contains both the data and information necessary to read the data for a specific buffer in a capture

Public Methods

PlaneInfo Create

Create and return an initialized version of this struct.

public static PlaneInfo Create()

Returns: Returns a new YUVBuffer structure.


override string ToString

public override string ToString()

Public Attributes

BytesPerPixel

Number of bytes used to represent a pixel


public uint BytesPerPixel;


Data

Image Data (in managed memory)


public byte [] Data;


DataPtr

Pointer to the unmanaged memory where the actual image data is found. Only valid when received via the OnRawVideoFrameAvailableYUV_NativeCallbackThread event.


public IntPtr DataPtr;


Height

Height of the output image in pixels


public uint Height;


IsValid

Indicate if this structure contains valid data


public bool IsValid;


PixelStride

Distance between 2 consecutive pixels in bytes.


public uint PixelStride;


Size

Number of bytes in the image output data


public uint Size;


Stride

Stride of the output image in pixels


public uint Stride;


Width

Width of the output image in pixels


public uint Width;